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 mtosa...@redhat.com 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

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 ag...@suse.de 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 cornelia.h...@de.ibm.com Signed-off-by: Cornelia Huck cornelia.h

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 ru...@rustcorp.com.au wrote: Michael S. Tsirkin m...@redhat.com 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

[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 cornelia.h...@de.ibm.com --- arch/s390/include/asm/cio.h | 2 ++ drivers/s390/cio/css.h | 3 --- 2 files changed, 2 insertions(+), 3

[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 cornelia.h...@de.ibm.com --- 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

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

2012-10-29 Thread Cornelia Huck
. 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 console code. arch

[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 cornelia.h...@de.ibm.com --- arch/s390/include/asm/irq.h

[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 cornelia.h...@de.ibm.com --- 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

[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 cornelia.h...@de.ibm.com --- drivers/s390/kvm/Makefile | 2 +- drivers/s390/kvm/early_printk.c | 42 + drivers/s390/kvm

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 ag...@suse.de 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 confident that the host - guest interface for virtio-ccw

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 ag...@suse.de 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_ccw_device *vcdev; + struct

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 ag...@suse.de 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 virtio or sclp console

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 ag...@suse.de wrote: On 29.10.2012, at 19:34, Cornelia Huck wrote: On Mon, 29 Oct 2012 19:12:54 +0100 Alexander Graf ag...@suse.de wrote: On 29.10.2012, at 14:07, Cornelia Huck wrote: +static void virtio_ccw_kvm_notify(struct

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 ag...@suse.de wrote: On 29.10.2012, at 19:15, Cornelia Huck wrote: On Mon, 29 Oct 2012 18:55:21 +0100 Alexander Graf ag...@suse.de wrote: On 29.10.2012, at 14:07, Cornelia Huck wrote: Avi, Marcelo, I'd like to propose

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 ag...@suse.de wrote: On 10/30/2012 02:03 PM, Cornelia Huck wrote: On Mon, 29 Oct 2012 19:37:10 +0100 Alexander Grafag...@suse.de wrote: On 29.10.2012, at 19:34, Cornelia Huck wrote: On Mon, 29 Oct 2012 19:12:54 +0100 Alexander

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 ag...@suse.de wrote: On 10/30/2012 01:59 PM, Cornelia Huck wrote: On Mon, 29 Oct 2012 19:14:19 +0100 Alexander Grafag...@suse.de wrote: On 29.10.2012, at 14:07, Cornelia Huck wrote: This code is transport agnostic and can be used

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 ag...@suse.de wrote: On 30.10.2012, at 15:00, Cornelia Huck cornelia.h...@de.ibm.com wrote: On Tue, 30 Oct 2012 14:41:46 +0100 Alexander Graf ag...@suse.de wrote: On 10/30/2012 02:03 PM, Cornelia Huck wrote: On Mon, 29 Oct 2012

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 ag...@suse.de wrote: On 30.10.2012, at 15:29, Cornelia Huck cornelia.h...@de.ibm.com wrote: On Tue, 30 Oct 2012 14:43:10 +0100 Alexander Graf ag...@suse.de wrote: On 10/30/2012 01:59 PM, Cornelia Huck wrote: On Mon, 29 Oct 2012

[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 cornelia.h...@de.ibm.com 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

[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 cornelia.h...@de.ibm.com --- 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

[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 cornelia.h...@de.ibm.com --- arch/s390/include/asm/irq.h

[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 cornelia.h...@de.ibm.com --- arch/s390/include/asm/cio.h | 2 ++ drivers/s390/cio/css.h | 3 --- 2 files changed, 2 insertions(+), 3

[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 cornelia.h...@de.ibm.com --- drivers/s390/kvm/Makefile | 2 +- drivers/s390/kvm/early_printk.c | 42 + drivers/s390/kvm

[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=kvmm=135151606921361w=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 s390-virtio. s390

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

2012-10-31 Thread Cornelia Huck
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: Support for I/O

[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 Huck

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

2012-10-31 Thread Cornelia Huck
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 cornelia.h...@de.ibm.com --- arch/s390/kvm/intercept.c | 19 +--- arch/s390/kvm/kvm-s390.h | 1 + arch/s390/kvm/priv.c

[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 cornelia.h...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 30 arch/s390/include/asm/kvm_host.h | 1

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

2012-10-31 Thread Cornelia Huck
Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- 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

[PATCH 1/3] Update linux headers.

2012-10-31 Thread Cornelia Huck
Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- 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

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

2012-10-31 Thread Cornelia Huck
with trapping PSW changing instructions and watching for opened machine checks. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- 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 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 cornelia.h...@de.ibm.com --- hw/s390-virtio.c | 282

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

2012-10-31 Thread Cornelia Huck
, 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/s390x/Makefile.objs

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 je...@suse.com 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

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 mtosa...@redhat.com 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's css

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 ag...@suse.de 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 I/O and machine check

[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. Cornelia Huck

[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 cornelia.h...@de.ibm.com --- arch/s390/include/asm/cio.h | 2 ++ drivers/s390/cio/css.h | 3 --- 2 files changed, 2 insertions(+), 3

[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 mtosa...@redhat.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com cc: sta...@vger.kernel.org --- drivers/s390/kvm/kvm_virtio.c | 39 +++ 1 file changed, 31 insertions(+), 8 deletions(-) diff --git

[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 cornelia.h...@de.ibm.com --- 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

[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 mtosa...@redhat.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- drivers/s390/kvm/Makefile | 2 +- drivers/s390/kvm/early_printk.c | 42

[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 mtosa...@redhat.com Signed-off-by: Cornelia Huck

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

2012-12-07 Thread Cornelia Huck
is not 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 mtosa...@redhat.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- arch/s390/kvm/intercept.c | 19 +--- arch/s390

[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 interrupts

[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 mtosa...@redhat.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 30

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

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

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

2012-12-07 Thread Cornelia Huck
mtosa...@redhat.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- 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

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

2012-12-07 Thread Cornelia Huck
with trapping PSW changing instructions and watching for opened machine checks. Reviewed-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 4 ++ arch/s390/include/asm/kvm_host.h | 8 +++ arch/s390/kvm

[PATCH 1/8] Update linux headers.

2012-12-07 Thread Cornelia Huck
Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- 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

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

2012-12-07 Thread Cornelia Huck
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. s390: Wire up

[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 cornelia.h...@de.ibm.com --- hw/s390-virtio.c | 132 +-- 1 file changed, 79 insertions(+), 53 deletions(-) diff --git a/hw/s390

[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 cornelia.h...@de.ibm.com --- target-s390x/cpu.h| 87 +++ target-s390x/ioinst.c | 694 +- target-s390x/ioinst.h | 16 ++ trace-events | 6 + 4

[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 cornelia.h...@de.ibm.com --- hw/s390x/Makefile.objs |1 + hw/s390x/css.c | 1195 hw/s390x/css.h | 92 target

[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 cornelia.h...@de.ibm.com --- hw/s390-virtio.c | 149 ++-- hw

[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 cornelia.h...@de.ibm.com --- target-s390x/cpu.h | 11 +++ target-s390x/kvm.c | 246

[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 cornelia.h...@de.ibm.com --- target-s390x/cpu.h| 67 +++ target-s390x/helper.c | 145 ++ 2 files changed, 212

[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 cornelia.h...@de.ibm.com --- target-s390x/Makefile.objs | 2 +- target-s390x/ioinst.c | 46 ++ target-s390x/ioinst.h | 207 + 3 files changed, 254

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 peter.mayd...@linaro.org wrote: On 7 December 2012 12:50, Cornelia Huck cornelia.h...@de.ibm.com wrote: Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com I think it would be good if commit messages for linux-headers updates stated

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 ag...@suse.de 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 implement in QEMU, because

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 ag...@suse.de wrote: On 07.12.2012, at 13:50, Cornelia Huck cornelia.h...@de.ibm.com wrote: Provide handlers for (most) channel I/O instructions. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- target-s390x/cpu.h

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 ag...@suse.de 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-identifying parameters are encoded

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 ag...@suse.de 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 these reasons: - Machine

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 ag...@suse.de wrote: Missing patch description. Otherwise: Add base infrastructure for enabling capabilities would be redundant, no? Acked-by: Alexander Graf ag...@suse.de Alex On 07.12.2012, at 13:30, Cornelia Huck wrote

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 ag...@suse.de wrote: On 07.12.2012, at 13:50, Cornelia Huck wrote: Basic channel I/O structures and helper function. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- target-s390x/Makefile.objs | 2 +- target-s390x

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 ag...@suse.de 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 cornelia.h...@de.ibm.com --- target-s390x/cpu.h

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 ag...@suse.de wrote: On 07.12.2012, at 13:50, Cornelia Huck cornelia.h...@de.ibm.com wrote: Trigger the code for our virtual css in case of instruction intercepts for I/O instructions. Handle the tsch exit for the subchannel

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 ag...@suse.de 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 smaller chunks (patches 2-6), which

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 r...@landley.net 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

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 ag...@suse.de wrote: On 10.12.2012, at 10:03, Cornelia Huck wrote: On Sun, 9 Dec 2012 13:12:37 +0100 Alexander Graf ag...@suse.de wrote: On 07.12.2012, at 13:29, Cornelia Huck wrote: This will be needed by the new virtio-ccw

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 ag...@suse.de wrote: On 10.12.2012, at 11:18, Cornelia Huck wrote: On Mon, 10 Dec 2012 09:07:57 +0100 Alexander Graf ag...@suse.de wrote: On 07.12.2012, at 13:50, Cornelia Huck wrote: Basic channel I/O structures and helper

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 ag...@suse.de wrote: On 10.12.2012, at 11:27, Cornelia Huck wrote: On Mon, 10 Dec 2012 09:20:57 +0100 Alexander Graf ag...@suse.de wrote: On 07.12.2012, at 13:50, Cornelia Huck wrote: +/* CRW machine checks disabled

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 ag...@suse.de wrote: On 10.12.2012, at 10:18, Cornelia Huck wrote: On Mon, 10 Dec 2012 10:00:16 +0100 Alexander Graf ag...@suse.de wrote: On 07.12.2012, at 13:50, Cornelia Huck cornelia.h...@de.ibm.com wrote: +/* Special

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 ag...@suse.de 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 virtio-ccw transport and make

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 ag...@suse.de wrote: On 11.12.2012, at 13:34, Cornelia Huck wrote: On Tue, 11 Dec 2012 11:09:55 +0100 Alexander Graf ag...@suse.de wrote: On 10.12.2012, at 10:03, Cornelia Huck wrote: On Sun, 9 Dec 2012 13:12:37 +0100

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

2012-12-12 Thread Cornelia Huck
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 | 5

[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 cornelia.h...@de.ibm.com --- arch/s390/include/asm/cio.h | 2 ++ drivers/s390/cio/css.h | 3 --- 2 files changed, 2 insertions(+), 3

[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 mtosa...@redhat.com Signed-off-by: Cornelia Huck

[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 mtosa...@redhat.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com cc: sta...@vger.kernel.org --- drivers/s390/kvm/kvm_virtio.c | 38 ++ 1 file changed, 30 insertions(+), 8 deletions(-) diff --git

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

2012-12-12 Thread Cornelia Huck
This will be needed by the new virtio-ccw transport. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- 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

[PATCH 2/3] s390/ccwdev: Include asm/schid.h.

2012-12-14 Thread Cornelia Huck
Get the definition of struct subchannel_id. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- arch/s390/include/asm/ccwdev.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/s390/include/asm/ccwdev.h b/arch/s390/include/asm/ccwdev.h index 6d1f357..e606161

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

2012-12-14 Thread Cornelia Huck
Hi, here's the virtio-ccw guest support for kvm/next again. The not-kvm specific patches have made their way upstream via the s390 tree in the meantime. Patch 2 fixes an inconsistency there. Patch 3 lost the now unneeded schid.h include; otherwise, the patches are unchanged from v4. Cornelia

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

2012-12-14 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 mtosa...@redhat.com Signed-off-by: Cornelia Huck

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

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

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

2012-12-18 Thread Cornelia Huck
On Tue, 18 Dec 2012 09:45:27 +0100 Paolo Bonzini pbonz...@redhat.com wrote: Il 04/09/2012 17:13, Cornelia Huck ha scritto: +VirtioCcwBus *virtio_ccw_bus_init(void) +{ +VirtioCcwBus *cbus; +BusState *bus; +DeviceState *dev; + +/* Create bridge device */ +dev

[PATCH v5 0/7] s390: Host support for channel I/O.

2012-12-20 Thread Cornelia Huck
of the channel I/O patches); some things Alex pointed out in the patches apply to existing code as well. Please consider for kvm/next. Cornelia Huck (7): KVM: s390: Constify intercept handler tables. KVM: s390: Decoding helper functions. KVM: s390: Support for I/O interrupts. KVM: s390: Add

[PATCH 2/7] KVM: s390: Decoding helper functions.

2012-12-20 Thread Cornelia Huck
Introduce helper functions for decoding the various base/displacement instruction formats. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- arch/s390/kvm/intercept.c | 21 ++--- arch/s390/kvm/kvm-s390.h | 37 + arch/s390/kvm/priv.c

[PATCH 3/7] KVM: s390: Support for I/O interrupts.

2012-12-20 Thread Cornelia Huck
mtosa...@redhat.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 4 ++ arch/s390/include/asm/kvm_host.h | 2 + arch/s390/kvm/interrupt.c | 103 +- include/uapi/linux/kvm.h | 9 4 files

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

2012-12-20 Thread Cornelia Huck
is not 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 mtosa...@redhat.com Reviewed-by: Alexander Graf ag...@suse.de Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- arch/s390/kvm

[PATCH 1/7] KVM: s390: Constify intercept handler tables.

2012-12-20 Thread Cornelia Huck
These tables are never modified. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- arch/s390/kvm/intercept.c | 2 +- arch/s390/kvm/priv.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/s390/kvm/intercept.c b/arch/s390/kvm/intercept.c index 22798ec

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

2012-12-20 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 mtosa...@redhat.com Reviewed-by: Alexander Graf ag...@suse.de Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com

[PATCH 6/7] KVM: s390: Base infrastructure for enabling capabilities.

2012-12-20 Thread Cornelia Huck
Make s390 support KVM_ENABLE_CAP. Reviewed-by: Marcelo Tosatti mtosa...@redhat.com Acked-by: Alexander Graf ag...@suse.de Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 2 +- arch/s390/kvm/kvm-s390.c | 26 ++ 2

[PATCH 4/7] KVM: s390: Add support for machine checks.

2012-12-20 Thread Cornelia Huck
with trapping PSW changing instructions and watching for opened machine checks. Reviewed-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- Documentation/virtual/kvm/api.txt | 4 ++ arch/s390/include/asm/kvm_host.h | 8 +++ arch/s390/kvm

[PATCH 2/2] KVM: s390: Gracefully handle busy conditions on ccw_device_start

2013-01-07 Thread Cornelia Huck
From: Christian Borntraeger borntrae...@de.ibm.com In rare cases a virtio command might try to issue a ccw before a former ccw was answered with a tsch. This will cause CC=2 (busy). Lets just retry in that case. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Cornelia

[PATCH 1/2] KVM: s390: Dynamic allocation of virtio-ccw I/O data.

2013-01-07 Thread Cornelia Huck
Dynamically allocate any data structures like ccw used when doing channel I/O. Otherwise, we'd need to add extra serialization for the different callbacks using the same data structures. Reported-by: Christian Borntraeger borntrae...@de.ibm.com Signed-off-by: Cornelia Huck cornelia.h

[PATCH 0/2] KVM: s390: Bugfixes for virtio-ccw.

2013-01-07 Thread Cornelia Huck
conditions on ccw_device_start Cornelia Huck (1): KVM: s390: Dynamic allocation of virtio-ccw I/O data. drivers/s390/kvm/virtio_ccw.c | 291 ++ 1 file changed, 181 insertions(+), 110 deletions(-) -- 1.7.12.4 -- To unsubscribe from this list: send the line

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

2012-08-07 Thread Cornelia Huck
Hi, I've been working on a new virtio transport for s390 replacing the existing s390-virtio transport. Patches to Linux, qemu and the virtio spec will follow. Why? s390-virtio is quite limited in the number of supported devices (all related structures need to fit into a single specially mapped

[RFC PATCH 0/7] s390: virtual css host support.

2012-08-07 Thread Cornelia Huck
) are outsourced to user space. This in-kernel channel subsystem support can be enabled by user space via a new capability. Cornelia Huck (7): s390/kvm: Support for I/O interrupts. s390/kvm: Add support for machine checks. s390/kvm: In-kernel handling of I/O instructions. s390: Move css limits

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

2012-08-07 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 Huck

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

2012-08-07 Thread Cornelia Huck
with trapping PSW changing instructions and watching for opened machine checks. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- arch/s390/include/asm/kvm_host.h | 8 +++ arch/s390/kvm/intercept.c| 2 + arch/s390/kvm/interrupt.c| 111

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

2012-08-07 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 cornelia.h...@de.ibm.com --- arch/s390/include/asm/orb.h | 69 +++ arch/s390/include

  1   2   3   4   5   6   7   >