[PATCH 1/4] KVM: s390: Handle hosts not supporting s390-virtio.

2012-12-12 Thread Cornelia Huck
if it does not exist. Reviewed-by: Marcelo Tosatti Signed-off-by: Cornelia Huck cc: sta...@vger.kernel.org --- drivers/s390/kvm/kvm_virtio.c | 38 ++ 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm

[PATCH 4/4] KVM: s390: Add a channel I/O based virtio transport driver.

2012-12-12 Thread Cornelia Huck
Add a driver for kvm guests that matches virtual ccw devices provided by the host as virtio bridge devices. These virtio-ccw devices use a special set of channel commands in order to perform virtio functions. Reviewed-by: Marcelo Tosatti Signed-off-by: Cornelia Huck --- arch/s390/include/asm

[PATCH 2/4] s390: Move css limits from drivers/s390/cio/ to include/asm/.

2012-12-12 Thread Cornelia Huck
There's no need to keep __MAX_SUBCHANNEL and __MAX_SSID private to the common I/O layer when __MAX_CSSID is usable by everybody. Signed-off-by: Cornelia Huck --- arch/s390/include/asm/cio.h | 2 ++ drivers/s390/cio/css.h | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff

[PATCH v4 0/4] s390: Guest support for virtio-ccw.

2012-12-12 Thread Cornelia Huck
ad of casting. Cornelia Huck (4): KVM: s390: Handle hosts not supporting s390-virtio. s390: Move css limits from drivers/s390/cio/ to include/asm/. s390: Add a mechanism to get the subchannel id. KVM: s390: Add a channel I/O based virtio transport driver. arch/s390/include/asm/ccwdev.h

Re: [PATCH 3/5] s390: Add a mechanism to get the subchannel id.

2012-12-12 Thread Cornelia Huck
On Wed, 12 Dec 2012 01:33:46 +0100 Alexander Graf wrote: > > On 11.12.2012, at 13:34, Cornelia Huck wrote: > > > On Tue, 11 Dec 2012 11:09:55 +0100 > > Alexander Graf wrote: > > > >> > >> On 10.12.2012, at 10:03, Cornelia Huck wrote:

Re: [PATCH 8/8] s390: Add new channel I/O based virtio transport.

2012-12-11 Thread Cornelia Huck
On Tue, 11 Dec 2012 11:53:18 +0100 Alexander Graf wrote: > > On 07.12.2012, at 13:50, Cornelia Huck wrote: > > > Add a new virtio transport that uses channel commands to perform > > virtio operations. > > > > Add a new machine type s390-ccw that uses this vir

Re: [PATCH 4/8] s390: Add channel I/O instructions.

2012-12-11 Thread Cornelia Huck
On Tue, 11 Dec 2012 11:18:44 +0100 Alexander Graf wrote: > > On 10.12.2012, at 10:18, Cornelia Huck wrote: > > > On Mon, 10 Dec 2012 10:00:16 +0100 > > Alexander Graf wrote: > > > >> > >> > >> On 07.12.2012, at 13:50, Cornelia Huck

Re: [PATCH 3/8] s390: I/O interrupt and machine check injection.

2012-12-11 Thread Cornelia Huck
On Tue, 11 Dec 2012 11:29:16 +0100 Alexander Graf wrote: > > On 10.12.2012, at 11:27, Cornelia Huck wrote: > > > On Mon, 10 Dec 2012 09:20:57 +0100 > > Alexander Graf wrote: > > > >> > >> On 07.12.2012, at 13:50, Cornelia Huck wrote:

Re: [PATCH 2/8] s390: Channel I/O basic defintions.

2012-12-11 Thread Cornelia Huck
On Tue, 11 Dec 2012 11:27:05 +0100 Alexander Graf wrote: > > On 10.12.2012, at 11:18, Cornelia Huck wrote: > > > On Mon, 10 Dec 2012 09:07:57 +0100 > > Alexander Graf wrote: > > > >> > >> On 07.12.2012, at 13:50, Cornelia Huck wrote: > &

Re: [PATCH 1/5] KVM: s390: Support for I/O interrupts.

2012-12-11 Thread Cornelia Huck
On Tue, 11 Dec 2012 11:22:04 +0100 Alexander Graf wrote: > > On 10.12.2012, at 11:09, Cornelia Huck wrote: > > > On Mon, 10 Dec 2012 08:33:10 +0100 > > Alexander Graf wrote: > > > >> > >> On 07.12.2012, at 13:30, Cornelia Huck wrote: > &

Re: [PATCH 5/5] KVM: s390: Split out early console code.

2012-12-11 Thread Cornelia Huck
On Tue, 11 Dec 2012 11:10:39 +0100 Alexander Graf wrote: > > On 10.12.2012, at 10:06, Cornelia Huck wrote: > > > On Sun, 9 Dec 2012 13:45:47 +0100 > > Alexander Graf wrote: > > > >> > >> On 07.12.2012, at 13:29, Cornelia Huck wrote: > >

Re: [PATCH 3/5] s390: Add a mechanism to get the subchannel id.

2012-12-11 Thread Cornelia Huck
On Tue, 11 Dec 2012 11:09:55 +0100 Alexander Graf wrote: > > On 10.12.2012, at 10:03, Cornelia Huck wrote: > > > On Sun, 9 Dec 2012 13:12:37 +0100 > > Alexander Graf wrote: > > > >> > >> On 07.12.2012, at 13:29, Cornelia Huck wrote: > >

Re: [Qemu-devel] [PATCH 3/8] s390: I/O interrupt and machine check injection.

2012-12-11 Thread Cornelia Huck
On Mon, 10 Dec 2012 18:26:28 -0600 Rob Landley wrote: > What do you actually use to run Linux under this target? There are some > leads at > http://virtuallyfun.superglobalmegacorp.com/?p=1206 which more or less > leads to > http://ftp.nl.debian.org/debian/dists/Debian6.0.6/main/installer-s39

Re: [RFC PATCH v4 0/8] s390: channel I/O support in qemu.

2012-12-10 Thread Cornelia Huck
On Mon, 10 Dec 2012 09:02:51 +0100 Alexander Graf wrote: > > On 07.12.2012, at 13:50, Cornelia Huck wrote: > > > Hi, > > > > just a quick dump of my qemu patch series for channel I/O. > > > > I've managed to chop the virtual css patch into some

Re: [PATCH 6/8] s390: Wire up channel I/O in kvm.

2012-12-10 Thread Cornelia Huck
On Mon, 10 Dec 2012 10:40:15 +0100 Alexander Graf wrote: > > > On 07.12.2012, at 13:50, Cornelia Huck wrote: > > > Trigger the code for our virtual css in case of instruction > > intercepts for I/O instructions. > > > > Handle the tsch exit for

Re: [PATCH 3/8] s390: I/O interrupt and machine check injection.

2012-12-10 Thread Cornelia Huck
On Mon, 10 Dec 2012 09:20:57 +0100 Alexander Graf wrote: > > On 07.12.2012, at 13:50, Cornelia Huck wrote: > > > I/O interrupts are queued per isc. Only crw pending machine checks > > are supported. > > > > Signed-off-by: Cornelia Huck > &

Re: [PATCH 2/8] s390: Channel I/O basic defintions.

2012-12-10 Thread Cornelia Huck
On Mon, 10 Dec 2012 09:07:57 +0100 Alexander Graf wrote: > > On 07.12.2012, at 13:50, Cornelia Huck wrote: > > > Basic channel I/O structures and helper function. > > > > Signed-off-by: Cornelia Huck > > --- > > target-s390x/Makefile.objs | 2

Re: [PATCH 4/5] KVM: s390: Base infrastructure for enabling capabilities.

2012-12-10 Thread Cornelia Huck
On Mon, 10 Dec 2012 08:54:45 +0100 Alexander Graf wrote: > Missing patch description. Otherwise: "Add base infrastructure for enabling capabilities" would be redundant, no? > > Acked-by: Alexander Graf > > > Alex > > On 07.12.2012, at 13:30, Corne

Re: [PATCH 3/5] KVM: s390: In-kernel handling of I/O instructions.

2012-12-10 Thread Cornelia Huck
On Mon, 10 Dec 2012 08:53:41 +0100 Alexander Graf wrote: > > On 07.12.2012, at 13:30, Cornelia Huck wrote: > > > Explicitely catch all channel I/O related instructions intercepts > > in the kernel and set condition code 3 for them. > > > > This paves th

Re: [PATCH 2/5] KVM: s390: Add support for machine checks.

2012-12-10 Thread Cornelia Huck
On Mon, 10 Dec 2012 08:51:11 +0100 Alexander Graf wrote: > > On 07.12.2012, at 13:30, Cornelia Huck wrote: > > > Add support for injecting machine checks (only repressible > > conditions for now). > > > > This is a bit more involved than I/O interrupts, for

Re: [PATCH 1/5] KVM: s390: Support for I/O interrupts.

2012-12-10 Thread Cornelia Huck
On Mon, 10 Dec 2012 08:33:10 +0100 Alexander Graf wrote: > > On 07.12.2012, at 13:30, Cornelia Huck wrote: > > > Add support for handling I/O interrupts (standard, subchannel-related > > ones and rudimentary adapter interrupts). > > > > The subchannel-identi

Re: [PATCH 4/8] s390: Add channel I/O instructions.

2012-12-10 Thread Cornelia Huck
On Mon, 10 Dec 2012 10:00:16 +0100 Alexander Graf wrote: > > > On 07.12.2012, at 13:50, Cornelia Huck wrote: > > > Provide handlers for (most) channel I/O instructions. > > > > Signed-off-by: Cornelia Huck > > --- > > target-s390x/cpu.h|

Re: [PATCH 5/5] KVM: s390: Split out early console code.

2012-12-10 Thread Cornelia Huck
On Sun, 9 Dec 2012 13:45:47 +0100 Alexander Graf wrote: > > On 07.12.2012, at 13:29, Cornelia Huck wrote: > > > This code is transport agnostic and can be used by both the legacy > > virtio code and virtio_ccw. > > This code should die. It's a nightmare to im

Re: [PATCH 3/5] s390: Add a mechanism to get the subchannel id.

2012-12-10 Thread Cornelia Huck
On Sun, 9 Dec 2012 13:12:37 +0100 Alexander Graf wrote: > > On 07.12.2012, at 13:29, Cornelia Huck wrote: > > > This will be needed by the new virtio-ccw transport. > > > > Signed-off-by: Cornelia Huck > > --- > > arch/s390/include/asm/ccwdev.h | 5

Re: [Qemu-devel] [PATCH 1/8] Update linux headers.

2012-12-07 Thread Cornelia Huck
On Fri, 7 Dec 2012 13:01:27 + Peter Maydell wrote: > On 7 December 2012 12:50, Cornelia Huck wrote: > > Signed-off-by: Cornelia Huck > > I think it would be good if commit messages for linux-headers > updates stated the kernel tree and commit that the updated headers

[PATCH 2/8] s390: Channel I/O basic defintions.

2012-12-07 Thread Cornelia Huck
Basic channel I/O structures and helper function. Signed-off-by: Cornelia Huck --- target-s390x/Makefile.objs | 2 +- target-s390x/ioinst.c | 46 ++ target-s390x/ioinst.h | 207 + 3 files changed, 254 insertions(+), 1 deletion

[PATCH 3/8] s390: I/O interrupt and machine check injection.

2012-12-07 Thread Cornelia Huck
I/O interrupts are queued per isc. Only crw pending machine checks are supported. Signed-off-by: Cornelia Huck --- target-s390x/cpu.h| 67 +++ target-s390x/helper.c | 145 ++ 2 files changed, 212 insertions(+) diff --git

[PATCH 6/8] s390: Wire up channel I/O in kvm.

2012-12-07 Thread Cornelia Huck
Trigger the code for our virtual css in case of instruction intercepts for I/O instructions. Handle the tsch exit for the subchannel-related part of tsch. Signed-off-by: Cornelia Huck --- target-s390x/cpu.h | 11 +++ target-s390x/kvm.c | 246

[PATCH 8/8] s390: Add new channel I/O based virtio transport.

2012-12-07 Thread Cornelia Huck
Add a new virtio transport that uses channel commands to perform virtio operations. Add a new machine type s390-ccw that uses this virtio-ccw transport and make it the default machine for s390. Signed-off-by: Cornelia Huck --- hw/s390-virtio.c | 149 ++-- hw/s390x/Makefile.objs | 1

[PATCH 5/8] s390: Virtual channel subsystem support.

2012-12-07 Thread Cornelia Huck
Provide a mechanism for qemu to provide fully virtual subchannels to the guest. Signed-off-by: Cornelia Huck --- hw/s390x/Makefile.objs |1 + hw/s390x/css.c | 1195 hw/s390x/css.h | 92 target-s390x/cpu.h | 65

[PATCH 4/8] s390: Add channel I/O instructions.

2012-12-07 Thread Cornelia Huck
Provide handlers for (most) channel I/O instructions. Signed-off-by: Cornelia Huck --- target-s390x/cpu.h| 87 +++ target-s390x/ioinst.c | 694 +- target-s390x/ioinst.h | 16 ++ trace-events | 6 + 4 files changed, 796

[PATCH 7/8] s390-virtio: Factor out some initialization code.

2012-12-07 Thread Cornelia Huck
Some of the machine initialization for s390-virtio will be reused by virtio-ccw. Signed-off-by: Cornelia Huck --- hw/s390-virtio.c | 132 +-- 1 file changed, 79 insertions(+), 53 deletions(-) diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c

[RFC PATCH v4 0/8] s390: channel I/O support in qemu.

2012-12-07 Thread Cornelia Huck
t upon the virtio refactoring once that has most of the infrastructure in place. Cornelia Huck (8): Update linux headers. s390: Channel I/O basic defintions. s390: I/O interrupt and machine check injection. s390: Add channel I/O instructions. s390: Virtual channel subsystem support. s39

[PATCH 1/8] Update linux headers.

2012-12-07 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- linux-headers/asm-generic/kvm_para.h | 4 +++ linux-headers/asm-powerpc/kvm.h | 59 linux-headers/asm-powerpc/kvm_para.h | 7 +++-- linux-headers/linux/kvm.h| 36 +++--- 4 files changed, 98

[PATCH 2/5] KVM: s390: Add support for machine checks.

2012-12-07 Thread Cornelia Huck
roach with trapping PSW changing instructions and watching for opened machine checks. Reviewed-by: Marcelo Tosatti Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 4 ++ arch/s390/include/asm/kvm_host.h | 8 +++ arch/s390/kvm/intercept.c | 2 + arch/s39

[PATCH 4/5] KVM: s390: Base infrastructure for enabling capabilities.

2012-12-07 Thread Cornelia Huck
Reviewed-by: Marcelo Tosatti Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 2 +- arch/s390/kvm/kvm-s390.c | 26 ++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual

[PATCH 1/5] KVM: s390: Support for I/O interrupts.

2012-12-07 Thread Cornelia Huck
satti Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 4 ++ arch/s390/include/asm/kvm_host.h | 2 + arch/s390/kvm/interrupt.c | 115 -- include/uapi/linux/kvm.h | 6 ++ 4 files changed, 122 insertions(+), 5 deletions(-)

[PATCH 5/5] KVM: s390: Add support for channel I/O instructions.

2012-12-07 Thread Cornelia Huck
. - TEST SUBCHANNEL (tsch) dequeues pending interrupts in-kernel and exits via KVM_EXIT_S390_TSCH to userspace for subchannel- related processing. Reviewed-by: Marcelo Tosatti Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 30 arch/s390/include/asm/kvm_host.h

[PATCH v4 0/5] s390: Host support for channel I/O.

2012-12-07 Thread Cornelia Huck
Hi, here are the host support patches for virtual channel I/O, rebased against kvm/next. Changes from v3: - Corrected a wrong bitmask in machine check handling. - Added Marcelo's Reviewed-by: Please consider these patches for kvm/next. Cornelia Huck (5): KVM: s390: Support for I/O inter

[PATCH 3/5] KVM: s390: In-kernel handling of I/O instructions.

2012-12-07 Thread Cornelia Huck
t the correct thing to do for some of these instructions. For Linux guests, however, it still has the intended effect of stopping css probing. Reviewed-by: Marcelo Tosatti Signed-off-by: Cornelia Huck --- arch/s390/kvm/intercept.c | 19 +--- arch/s390/kvm/kvm-s390.h | 1 + arch/s390/kvm/p

[PATCH 4/5] KVM: s390: Add a channel I/O based virtio transport driver.

2012-12-07 Thread Cornelia Huck
Add a driver for kvm guests that matches virtual ccw devices provided by the host as virtio bridge devices. These virtio-ccw devices use a special set of channel commands in order to perform virtio functions. Reviewed-by: Marcelo Tosatti Signed-off-by: Cornelia Huck --- arch/s390/include/asm

[PATCH 5/5] KVM: s390: Split out early console code.

2012-12-07 Thread Cornelia Huck
This code is transport agnostic and can be used by both the legacy virtio code and virtio_ccw. Reviewed-by: Marcelo Tosatti Signed-off-by: Cornelia Huck --- drivers/s390/kvm/Makefile | 2 +- drivers/s390/kvm/early_printk.c | 42 + drivers/s390/kvm

[PATCH 3/5] s390: Add a mechanism to get the subchannel id.

2012-12-07 Thread Cornelia Huck
This will be needed by the new virtio-ccw transport. Signed-off-by: Cornelia Huck --- arch/s390/include/asm/ccwdev.h | 5 + drivers/s390/cio/device_ops.c | 12 2 files changed, 17 insertions(+) diff --git a/arch/s390/include/asm/ccwdev.h b/arch/s390/include/asm/ccwdev.h

[PATCH 2/5] s390: Move css limits from drivers/s390/cio/ to include/asm/.

2012-12-07 Thread Cornelia Huck
There's no need to keep __MAX_SUBCHANNEL and __MAX_SSID private to the common I/O layer when __MAX_CSSID is usable by everybody. Signed-off-by: Cornelia Huck --- arch/s390/include/asm/cio.h | 2 ++ drivers/s390/cio/css.h | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff

[PATCH 1/5] KVM: s390: Handle hosts not supporting s390-virtio.

2012-12-07 Thread Cornelia Huck
if it does not exist. Reviewed-by: Marcelo Tosatti Signed-off-by: Cornelia Huck cc: sta...@vger.kernel.org --- drivers/s390/kvm/kvm_virtio.c | 39 +++ 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390

[PATCH v3 0/5] s390: Guest support for virtio-ccw.

2012-12-07 Thread Cornelia Huck
Hi, here are the guest support patches for virtio-ccw, rebased against kvm/next. Changes from v2: - Adapted patch 4 to virtqueue interface changes. - Added Marcelo's Reviewed-by: I'd like to get these patches into kvm/next; patches 2 and 3 might also show up in the s390 patches. Cor

Re: [PATCH 2/3] s390: Virtual channel subsystem support.

2012-11-20 Thread Cornelia Huck
On Mon, 19 Nov 2012 14:30:00 +0100 Alexander Graf wrote: > > On 31.10.2012, at 17:24, Cornelia Huck wrote: > > > Provide a mechanism for qemu to provide fully virtual subchannels to > > the guest. In the KVM case, this relies on the kernel's css support > > for

Re: [PATCH 2/3] s390: Virtual channel subsystem support.

2012-11-13 Thread Cornelia Huck
On Mon, 12 Nov 2012 23:17:55 -0200 Marcelo Tosatti wrote: > Hi Cornelia, > > On Wed, Oct 31, 2012 at 05:24:47PM +0100, Cornelia Huck wrote: > > Provide a mechanism for qemu to provide fully virtual subchannels to > > the guest. In the KVM case, this relies on the kernel&#x

Re: 3.7-rc2 build failure on s390x

2012-11-06 Thread Cornelia Huck
On Mon, 05 Nov 2012 11:13:42 -0500 Jeff Mahoney wrote: > > It's a different build issue with -rc3 (and now -rc4). > > linux-3.7-rc4/include/linux/kvm_para.h:9:2: error: implicit declaration of > function 'kvm_arch_para_features' [-Werror=implicit-function-declaration] > > Config attached. >

[RFC PATCH v3 0/3] s390: channel I/O support in qemu.

2012-10-31 Thread Cornelia Huck
y accesses, for one), but I'd like some feedback about the new interface first. Cornelia Huck (3): Update linux headers. s390: Virtual channel subsystem support. s390: Add new channel I/O based virtio transport. hw/s390-virtio.c | 282 ++-- hw/s390

[PATCH 3/3] s390: Add new channel I/O based virtio transport.

2012-10-31 Thread Cornelia Huck
Add a new virtio transport that uses channel commands to perform virtio operations. Add a new machine type s390-ccw that uses this virtio-ccw transport and make it the default machine for s390. Signed-off-by: Cornelia Huck --- hw/s390-virtio.c | 282 +++ hw/s390x

[PATCH 2/5] KVM: s390: Add support for machine checks.

2012-10-31 Thread Cornelia Huck
roach with trapping PSW changing instructions and watching for opened machine checks. Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 4 ++ arch/s390/include/asm/kvm_host.h | 8 +++ arch/s390/kvm/intercept.c | 2 + arch/s390/kvm/interrupt.c

[PATCH 1/3] Update linux headers.

2012-10-31 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- linux-headers/asm-generic/kvm_para.h | 5 +++ linux-headers/asm-powerpc/kvm.h | 59 ++ linux-headers/asm-powerpc/kvm_para.h | 7 +++-- linux-headers/asm-x86/kvm.h | 17 ++ linux-headers/linux/kvm.h

[PATCH 4/5] KVM: s390: Base infrastructure for enabling capabilities.

2012-10-31 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 2 +- arch/s390/kvm/kvm-s390.c | 26 ++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 5d09948

[PATCH 5/5] KVM: s390: Add support for channel I/O instructions.

2012-10-31 Thread Cornelia Huck
. - TEST SUBCHANNEL (tsch) dequeues pending interrupts in-kernel and exits via KVM_EXIT_S390_TSCH to userspace for subchannel- related processing. Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 30 arch/s390/include/asm/kvm_host.h | 1 + arch/s390/kvm

[PATCH 3/5] KVM: s390: In-kernel handling of I/O instructions.

2012-10-31 Thread Cornelia Huck
rrect thing to do for some of these instructions. For Linux guests, however, it still has the intended effect of stopping css probing. Signed-off-by: Cornelia Huck --- arch/s390/kvm/intercept.c | 19 +--- arch/s390/kvm/kvm-s390.h | 1 + arch/s390/kvm/priv.c

[PATCH 1/5] KVM: s390: Support for I/O interrupts.

2012-10-31 Thread Cornelia Huck
Add support for handling I/O interrupts (standard, subchannel-related ones and rudimentary adapter interrupts). The subchannel-identifying parameters are encoded into the interrupt type. I/O interrupts are floating, so they can't be injected on a specific vcpu. Signed-off-by: Cornelia

[RFC PATCH v3 0/5] s390: Host support for channel I/O.

2012-10-31 Thread Cornelia Huck
ncludes two channel I/O instructions that can dequeue pending I/O interrupts: tpi and tsch (not the part actually interacting with the subchannel). This makes the interface less complex (only one new exit for tsch handling) and avoids duplicating code from qemu. Cornelia Huck (5): KVM: s390: Supp

[PATCH v2 0/5] s390: Guest support for virtio-ccw.

2012-10-30 Thread Cornelia Huck
Hi, here's the respin of the virtio-ccw guest support patches (from http://marc.info/?l=kvm&m=135151606921361&w=2). Changes to the last version: - cc'ed stable for patch 1 - coding style fixes in patches 4 and 5 Cornelia Huck (5): KVM: s390: Handle hosts not supporting s

[PATCH v2 5/5] KVM: s390: Split out early console code.

2012-10-30 Thread Cornelia Huck
This code is transport agnostic and can be used by both the legacy virtio code and virtio_ccw. Signed-off-by: Cornelia Huck --- drivers/s390/kvm/Makefile | 2 +- drivers/s390/kvm/early_printk.c | 42 + drivers/s390/kvm/kvm_virtio.c | 29

[PATCH v2 2/5] s390: Move css limits from drivers/s390/cio/ to include/asm/.

2012-10-30 Thread Cornelia Huck
There's no need to keep __MAX_SUBCHANNEL and __MAX_SSID private to the common I/O layer when __MAX_CSSID is usable by everybody. Signed-off-by: Cornelia Huck --- arch/s390/include/asm/cio.h | 2 ++ drivers/s390/cio/css.h | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff

[PATCH v2 4/5] KVM: s390: Add a channel I/O based virtio transport driver.

2012-10-30 Thread Cornelia Huck
Add a driver for kvm guests that matches virtual ccw devices provided by the host as virtio bridge devices. These virtio-ccw devices use a special set of channel commands in order to perform virtio functions. Signed-off-by: Cornelia Huck --- arch/s390/include/asm/irq.h | 1 + arch/s390

[PATCH v2 3/5] s390: Add a mechanism to get the subchannel id.

2012-10-30 Thread Cornelia Huck
This will be needed by the new virtio-ccw transport. Signed-off-by: Cornelia Huck --- arch/s390/include/asm/ccwdev.h | 5 + drivers/s390/cio/device_ops.c | 12 2 files changed, 17 insertions(+) diff --git a/arch/s390/include/asm/ccwdev.h b/arch/s390/include/asm/ccwdev.h

[PATCH v2 1/5] KVM: s390: Handle hosts not supporting s390-virtio.

2012-10-30 Thread Cornelia Huck
if it does not exist. Signed-off-by: Cornelia Huck Cc: sta...@vger.kernel.org --- drivers/s390/kvm/kvm_virtio.c | 39 +++ 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c index 47cccd5

Re: [PATCH 5/5] KVM: s390: Split out early console code.

2012-10-30 Thread Cornelia Huck
On Tue, 30 Oct 2012 16:12:47 +0100 Alexander Graf wrote: > > > On 30.10.2012, at 15:29, Cornelia Huck wrote: > > > On Tue, 30 Oct 2012 14:43:10 +0100 > > Alexander Graf wrote: > > > >> On 10/30/2012 01:59 PM, Cornelia Huck wrote: > >>>

Re: [PATCH 4/5] KVM: s390: Add a channel I/O based virtio transport driver.

2012-10-30 Thread Cornelia Huck
On Tue, 30 Oct 2012 15:05:23 +0100 Alexander Graf wrote: > > > On 30.10.2012, at 15:00, Cornelia Huck wrote: > > > On Tue, 30 Oct 2012 14:41:46 +0100 > > Alexander Graf wrote: > > > >> On 10/30/2012 02:03 PM, Cornelia Huck wrote: > >>>

Re: [PATCH 5/5] KVM: s390: Split out early console code.

2012-10-30 Thread Cornelia Huck
On Tue, 30 Oct 2012 14:43:10 +0100 Alexander Graf wrote: > On 10/30/2012 01:59 PM, Cornelia Huck wrote: > > On Mon, 29 Oct 2012 19:14:19 +0100 > > Alexander Graf wrote: > > > >> On 29.10.2012, at 14:07, Cornelia Huck wrote: > >> > >>> This cod

Re: [PATCH 4/5] KVM: s390: Add a channel I/O based virtio transport driver.

2012-10-30 Thread Cornelia Huck
On Tue, 30 Oct 2012 14:41:46 +0100 Alexander Graf wrote: > On 10/30/2012 02:03 PM, Cornelia Huck wrote: > > On Mon, 29 Oct 2012 19:37:10 +0100 > > Alexander Graf wrote: > > > >> On 29.10.2012, at 19:34, Cornelia Huck wrote: > >> > >>> On M

Re: [PATCH 0/5] s390: Guest support for virtio-ccw.

2012-10-30 Thread Cornelia Huck
On Mon, 29 Oct 2012 19:33:14 +0100 Alexander Graf wrote: > > On 29.10.2012, at 19:15, Cornelia Huck wrote: > > > On Mon, 29 Oct 2012 18:55:21 +0100 > > Alexander Graf wrote: > > > >> > >> On 29.10.2012, at 14:07, Cornelia Huck wrote: >

Re: [PATCH 4/5] KVM: s390: Add a channel I/O based virtio transport driver.

2012-10-30 Thread Cornelia Huck
On Mon, 29 Oct 2012 19:37:10 +0100 Alexander Graf wrote: > > On 29.10.2012, at 19:34, Cornelia Huck wrote: > > > On Mon, 29 Oct 2012 19:12:54 +0100 > > Alexander Graf wrote: > > > >> > >> On 29.10.2012, at 14:07, Cornelia Huck wrote: > &g

Re: [PATCH 5/5] KVM: s390: Split out early console code.

2012-10-30 Thread Cornelia Huck
On Mon, 29 Oct 2012 19:14:19 +0100 Alexander Graf wrote: > > On 29.10.2012, at 14:07, Cornelia Huck wrote: > > > This code is transport agnostic and can be used by both the legacy > > virtio code and virtio_ccw. > > Would it be possible to actually send real virt

Re: [PATCH 4/5] KVM: s390: Add a channel I/O based virtio transport driver.

2012-10-29 Thread Cornelia Huck
On Mon, 29 Oct 2012 19:12:54 +0100 Alexander Graf wrote: > > On 29.10.2012, at 14:07, Cornelia Huck wrote: > > +static void virtio_ccw_kvm_notify(struct virtqueue *vq) > > +{ > > + struct virtio_ccw_vq_info *info = vq->priv; > > + struct virtio_

Re: [PATCH 0/5] s390: Guest support for virtio-ccw.

2012-10-29 Thread Cornelia Huck
On Mon, 29 Oct 2012 18:55:21 +0100 Alexander Graf wrote: > > On 29.10.2012, at 14:07, Cornelia Huck wrote: > > > Avi, Marcelo, > > > > I'd like to propose inclusion of the guest support patches for > > virtio-ccw into 3.8. > > > > I'm

[PATCH 5/5] KVM: s390: Split out early console code.

2012-10-29 Thread Cornelia Huck
This code is transport agnostic and can be used by both the legacy virtio code and virtio_ccw. Signed-off-by: Cornelia Huck --- drivers/s390/kvm/Makefile | 2 +- drivers/s390/kvm/early_printk.c | 42 + drivers/s390/kvm/kvm_virtio.c | 29

[PATCH 3/5] s390: Add a mechanism to get the subchannel id.

2012-10-29 Thread Cornelia Huck
This will be needed by the new virtio-ccw transport. Signed-off-by: Cornelia Huck --- arch/s390/include/asm/ccwdev.h | 5 + drivers/s390/cio/device_ops.c | 12 2 files changed, 17 insertions(+) diff --git a/arch/s390/include/asm/ccwdev.h b/arch/s390/include/asm/ccwdev.h

[PATCH 4/5] KVM: s390: Add a channel I/O based virtio transport driver.

2012-10-29 Thread Cornelia Huck
Add a driver for kvm guests that matches virtual ccw devices provided by the host as virtio bridge devices. These virtio-ccw devices use a special set of channel commands in order to perform virtio functions. Signed-off-by: Cornelia Huck --- arch/s390/include/asm/irq.h | 1 + arch/s390

[PATCH 0/5] s390: Guest support for virtio-ccw.

2012-10-29 Thread Cornelia Huck
internal environment. Cornelia Huck (5): KVM: s390: Handle hosts not supporting s390-virtio. s390: Move css limits from drivers/s390/cio/ to include/asm/. s390: Add a mechanism to get the subchannel id. KVM: s390: Add a channel I/O based virtio transport driver. KVM: s390: Split out early

[PATCH 1/5] KVM: s390: Handle hosts not supporting s390-virtio.

2012-10-29 Thread Cornelia Huck
if it does not exist. Signed-off-by: Cornelia Huck --- drivers/s390/kvm/kvm_virtio.c | 39 +++ 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c index 47cccd5..76b95f3 100644 --- a

[PATCH 2/5] s390: Move css limits from drivers/s390/cio/ to include/asm/.

2012-10-29 Thread Cornelia Huck
There's no need to keep __MAX_SUBCHANNEL and __MAX_SSID private to the common I/O layer when __MAX_CSSID is usable by everybody. Signed-off-by: Cornelia Huck --- arch/s390/include/asm/cio.h | 2 ++ drivers/s390/cio/css.h | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff

Re: [PATCH 0/3] virtio-net: inline header support

2012-10-12 Thread Cornelia Huck
On Fri, 12 Oct 2012 09:07:46 +1030 Rusty Russell wrote: > "Michael S. Tsirkin" writes: > > On Thu, Oct 11, 2012 at 10:33:31AM +1030, Rusty Russell wrote: > >> OK. Well, Anthony wants qemu to be robust in this regard, so I am > >> tempted to rework all the qemu drivers to handle arbitrary layout

Re: [PATCH 2/3] s390/kvm: Add documentation for KVM_S390_INTERRUPT.

2012-10-10 Thread Cornelia Huck
On Wed, 10 Oct 2012 18:32:14 +0200 Alexander Graf wrote: > > On 10.10.2012, at 18:27, Marcelo Tosatti wrote: > > > On Tue, Oct 02, 2012 at 04:25:37PM +0200, Christian Borntraeger wrote: > >> From: Cornelia Huck > >> > >> Signed-off-by: Cornelia Hu

Re: [PATCH 2/3] s390/kvm: Add documentation for KVM_S390_INTERRUPT.

2012-10-10 Thread Cornelia Huck
On Wed, 10 Oct 2012 13:27:09 -0300 Marcelo Tosatti wrote: > > +Archtectures: s390 > > typo. > > +Note that the vcpu ioctl is asynchronous to vpcu execution. > > typo > > Would you like a respin with the typos fixed? -- To unsubscribe from this list: send the line "unsubscribe kvm" in the b

Re: [PATCH v2 5/5] [HACK] Handle multiple virtio aliases.

2012-10-09 Thread Cornelia Huck
On Thu, 20 Sep 2012 09:27:00 -0500 Anthony Liguori wrote: > Cornelia Huck writes: > > > This patch enables using both virtio-xxx-s390 and virtio-xxx-ccw > > by making the alias lookup code verify that a driver is actually > > registered. > > > > (Only i

Re: [PATCH v2 3/4] s390/kvm: Add a channel I/O based virtio transport driver.

2012-10-09 Thread Cornelia Huck
On Wed, 19 Sep 2012 18:38:38 +0200 Alexander Graf wrote: > > On 04.09.2012, at 17:13, Cornelia Huck wrote: > > +static u32 virtio_ccw_get_features(struct virtio_device *vdev) > > +{ > > + struct virtio_ccw_device *vcdev = to_vc_device(vdev); > > + struc

Re: Proposal for virtio standardization.

2012-10-09 Thread Cornelia Huck
On Thu, 27 Sep 2012 09:59:33 +0930 Rusty Russell wrote: > Hi all, > > I've had several requests for a more formal approach to the > virtio draft spec, and (after some soul-searching) I'd like to try that. > > The proposal is to use OASIS as the standards body, as it's > fairly light

Re: [PATCH v2] virtio-spec: Add virtio-ccw spec.

2012-09-06 Thread Cornelia Huck
On Thu, 06 Sep 2012 11:56:31 +0930 Rusty Russell wrote: > Cornelia Huck writes: > > > Add specifications for the new s390 specific virtio-ccw transport. > > > > Signed-off-by: Cornelia Huck > > Excellent. I have applied and pushed this revision. Cool. Unf

Re: [PATCH v2 2/7] s390/kvm: Add support for machine checks.

2012-09-05 Thread Cornelia Huck
On Wed, 5 Sep 2012 09:22:32 +0200 Heiko Carstens wrote: > On Tue, Sep 04, 2012 at 05:13:25PM +0200, Cornelia Huck wrote: > > Just some quick comments: > > [...] > > > int kvm_s390_inject_program_int(struct kvm_vcpu *vcpu, u16 code) > > { > > struct

Re: [PATCH v2 1/7] s390/kvm: Support for I/O interrupts.

2012-09-05 Thread Cornelia Huck
On Wed, 05 Sep 2012 10:28:53 +0300 Avi Kivity wrote: > On 09/04/2012 06:13 PM, Cornelia Huck wrote: > > Add support for handling I/O interrupts (standard, subchannel-related > > ones and rudimentary adapter interrupts). > > > > The subchannel-identifying para

[PATCH v2 5/7] s390: Make some css-related structures usable by non-cio code.

2012-09-04 Thread Cornelia Huck
kvm will need to use some css-related structures (pmcw, schib, orb), so let's move the definitions from drivers/s390/cio/ to include/asm/. Signed-off-by: Cornelia Huck --- arch/s390/include/asm/orb.h | 69 +++ arch/s390/include/asm/schib.h

[PATCH v2 1/4] s390/kvm: Handle hosts not supporting s390-virtio.

2012-09-04 Thread Cornelia Huck
if it does not exist. Signed-off-by: Cornelia Huck --- Changes v1->v2: - check for the presence of the patch with lura - reorder init sequence - comments --- drivers/s390/kvm/kvm_virtio.c | 39 +++ 1 file changed, 31 insertions(+), 8 deletions(-) diff --

[RFC PATCH v2 0/5] qemu: s390: virtual css and virtio-ccw.

2012-09-04 Thread Cornelia Huck
irtio-ccw primitives. Cornelia Huck (5): Update headers for upcoming s390 changes. s390: Virtual channel subsystem support. s390: Add new channel I/O based virtio transport. s390: Virtual channel subsystem support for !KVM. [HACK] Handle multiple virtio aliases. block

[PATCH v2 1/5] Update headers for upcoming s390 changes.

2012-09-04 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- Changes v1->v2: - update to latest kvm interface changes --- linux-headers/asm-generic/kvm_para.h | 5 +++ linux-headers/asm-x86/kvm.h | 1 + linux-headers/linux/kvm.h| 80 ++-- 3 files changed,

[PATCH v2 2/5] s390: Virtual channel subsystem support.

2012-09-04 Thread Cornelia Huck
Provide a mechanism for qemu to provide fully virtual subchannels to the guest. In the KVM case, this relies on the kernel's css support. The !KVM case is not yet supported. Signed-off-by: Cornelia Huck --- Changes v1 -> v2: - coding style - re-organization of hardware structures

[PATCH v2 3/5] s390: Add new channel I/O based virtio transport.

2012-09-04 Thread Cornelia Huck
Add a new virtio transport that uses channel commands to perform virtio operations. Add a new machine type s390-ccw that uses this virtio-ccw transport and make it the default machine for s390. Signed-off-by: Cornelia Huck --- Changes v1->v2: - update to virtio-ccw interface changes ---

[PATCH v2] virtio-spec: Add virtio-ccw spec.

2012-09-04 Thread Cornelia Huck
Add specifications for the new s390 specific virtio-ccw transport. Signed-off-by: Cornelia Huck --- Changes v1->v2: - support more than 32 feature bits - allow to allocate less than requested queue size - allow to transfer alignment --- virtio-spec.lyx |

[PATCH v2 5/5] [HACK] Handle multiple virtio aliases.

2012-09-04 Thread Cornelia Huck
This patch enables using both virtio-xxx-s390 and virtio-xxx-ccw by making the alias lookup code verify that a driver is actually registered. (Only included in order to allow testing of virtio-ccw; should be replaced by cleaning up the virtio bus model.) Not-signed-off-by: Cornelia Huck

[PATCH v2 3/4] s390/kvm: Add a channel I/O based virtio transport driver.

2012-09-04 Thread Cornelia Huck
Add a driver for kvm guests that matches virtual ccw devices provided by the host as virtio bridge devices. These virtio-ccw devices use a special set of channel commands in order to perform virtio functions. Signed-off-by: Cornelia Huck --- Changes v1->v2: - adapt to improved virtio-

[RFC PATCH v2] Update virtio spec for virtio-ccw.

2012-09-04 Thread Cornelia Huck
:) Cornelia Huck (1): virtio-spec: Add virtio-ccw spec. virtio-spec.lyx | 534 +++ 1 files changed, 534 insertions(+), 0 deletions(-) -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a

[RFC v2] s390: virtual channel subsystem and new virtio transport.

2012-09-04 Thread Cornelia Huck
Hi, I have incorporated the feedback I received to my first RFC for virtio-ccw (http://marc.info/?l=kvm&m=134435141402140&w=2) and will post the updates shortly. Patches will again be sorted into kernel host and guest, qemu, and virtio spec. Feedback is still welcome. Cornelia -- To unsubscrib

[PATCH v2 2/7] s390/kvm: Add support for machine checks.

2012-09-04 Thread Cornelia Huck
roach with trapping PSW changing instructions and watching for opened machine checks. Signed-off-by: Cornelia Huck --- arch/s390/include/asm/kvm_host.h | 8 +++ arch/s390/kvm/intercept.c| 2 + arch/s390/kvm/interrupt.c| 111 arch/s390/kvm/kvm

<    1   2   3   4   5   6   7   >