[PATCH v4 4/6] KVM: Introduce KVM_VIRTIO_CCW_NOTIFY_BUS.

2013-02-28 Thread Cornelia Huck
Add a new bus type for virtio-ccw devices on s390. Signed-off-by: Cornelia Huck --- include/linux/kvm_host.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 3b768ef..206247f 100644 --- a/include/linux/kvm_host.h +++ b/include/linux

[PATCH v4 5/6] KVM: ioeventfd for virtio-ccw devices.

2013-02-28 Thread Cornelia Huck
Enhance KVM_IOEVENTFD with a new flag that allows to attach to virtio-ccw devices on s390 via the KVM_VIRTIO_CCW_NOTIFY_BUS. Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 8 include/uapi/linux/kvm.h | 3 +++ virt/kvm/eventfd.c| 17

[PATCH v4 0/6] kvm: Make ioeventfd usable on s390.

2013-02-28 Thread Cornelia Huck
ications only. v1 -> v2: - Move irqfd initialization from a module init function to kvm_init, eliminating the need for a second module for kvm/s390. - Use kvm_io_device for s390 css devices. Cornelia Huck (5): KVM: s390: Export virtio-ccw api. KVM: Initialize irqfd from kvm_init(). KVM: I

[PATCH v4 1/6] virtio_ccw: pass a cookie value to kvm hypercall

2013-02-28 Thread Cornelia Huck
by: Christian Borntraeger Reviewed-by: Christian Borntraeger Signed-off-by: Michael S. Tsirkin Signed-off-by: Cornelia Huck --- drivers/s390/kvm/virtio_ccw.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/s390/kvm/virtio_ccw.c b/drivers/s390/kvm/virtio_ccw.c

Re: [Qemu-devel] [PATCH v3 4/5] KVM: ioeventfd for virtio-ccw devices.

2013-02-26 Thread Cornelia Huck
On Tue, 26 Feb 2013 15:20:52 +0100 Stefan Hajnoczi wrote: > On Tue, Feb 26, 2013 at 12:55:36PM +0200, Michael S. Tsirkin wrote: > > On Mon, Feb 25, 2013 at 04:27:49PM +0100, Cornelia Huck wrote: > > > diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c > > > in

Re: [PATCH v3 0/5] kvm: Make ioeventfd usable on s390.

2013-02-26 Thread Cornelia Huck
On Tue, 26 Feb 2013 15:56:43 +0200 "Michael S. Tsirkin" wrote: > On Tue, Feb 26, 2013 at 02:29:07PM +0100, Cornelia Huck wrote: > > On Tue, 26 Feb 2013 13:13:39 +0100 > > Christian Borntraeger wrote: > > > > > On 26/02/13 12:18, Michael S. Tsirkin wrote:

Re: [PATCH v3 0/5] kvm: Make ioeventfd usable on s390.

2013-02-26 Thread Cornelia Huck
On Tue, 26 Feb 2013 13:13:39 +0100 Christian Borntraeger wrote: > On 26/02/13 12:18, Michael S. Tsirkin wrote: > > virtio_ccw: pass a cookie value to kvm hypercall > > > > Lookups by channel/vq pair on host during virtio notifications might be > > expensive. Interpret hypercall return value as

Re: [PATCH v3 4/5] KVM: ioeventfd for virtio-ccw devices.

2013-02-26 Thread Cornelia Huck
On Tue, 26 Feb 2013 12:55:36 +0200 "Michael S. Tsirkin" wrote: > On Mon, Feb 25, 2013 at 04:27:49PM +0100, Cornelia Huck wrote: > > Enhance KVM_IOEVENTFD with a new flag that allows to attach to virtio-ccw > > devices on s390 via the KVM_VIRTIO_CCW_NOTIFY_BUS. > &g

[PATCH v3 2/5] KVM: s390: Export virtio-ccw api.

2013-02-25 Thread Cornelia Huck
Export the virtio-ccw api in a header for usage by other code. Signed-off-by: Cornelia Huck --- arch/s390/include/uapi/asm/Kbuild | 1 + arch/s390/include/uapi/asm/virtio-ccw.h | 21 + drivers/s390/kvm/virtio_ccw.c | 5 + 3 files changed, 23 insertions

[PATCH v3 2/2] virtio-ccw: Wire up ioeventfd.

2013-02-25 Thread Cornelia Huck
On hosts that support ioeventfd, make use of it for host-to-guest notifications via diagnose 500. Signed-off-by: Cornelia Huck --- hw/s390x/css.c| 2 +- hw/s390x/css.h| 1 + hw/s390x/virtio-ccw.c | 114 ++ hw/s390x/virtio-ccw.h

[PATCH v3 1/2] linux-headers: Update with ioeventfd changes.

2013-02-25 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- linux-headers/linux/kvm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index 5af9357..fc3d7ed 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -448,12 +448,15 @@ enum

[PATCH v3 0/2] qemu: ioeventfd for virtio-ccw.

2013-02-25 Thread Cornelia Huck
lease consider applying if this makes sense. v2 -> v3: - Adapt to changed ioeventfd interface again. v1 -> v2: - Adapt to changed ioeventfd interface. Cornelia Huck (2): linux-headers: Update with ioeventfd changes. virtio-ccw: Wire up ioeventfd. hw/s390x/css.c| 2 +- hw/

[PATCH v3 5/5] KVM: s390: Wire up ioeventfd.

2013-02-25 Thread Cornelia Huck
Enable ioeventfd support on s390 and hook up diagnose 500 virtio-ccw notifications. Signed-off-by: Cornelia Huck --- arch/s390/kvm/Kconfig| 1 + arch/s390/kvm/Makefile | 2 +- arch/s390/kvm/diag.c | 26 ++ arch/s390/kvm/kvm-s390.c | 1 + 4 files changed, 29

[PATCH v3 4/5] KVM: ioeventfd for virtio-ccw devices.

2013-02-25 Thread Cornelia Huck
Enhance KVM_IOEVENTFD with a new flag that allows to attach to virtio-ccw devices on s390 via the KVM_VIRTIO_CCW_NOTIFY_BUS. Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 8 include/uapi/linux/kvm.h | 3 +++ virt/kvm/eventfd.c| 14

[PATCH v3 3/5] KVM: Introduce KVM_VIRTIO_CCW_NOTIFY_BUS.

2013-02-25 Thread Cornelia Huck
Add a new bus type for virtio-ccw devices on s390. Signed-off-by: Cornelia Huck --- include/linux/kvm_host.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 3b768ef..206247f 100644 --- a/include/linux/kvm_host.h +++ b/include/linux

[PATCH v3 1/5] KVM: Initialize irqfd from kvm_init().

2013-02-25 Thread Cornelia Huck
y, it is also clearer where kvm startup may fail. Signed-off-by: Cornelia Huck --- include/linux/kvm_host.h | 13 + virt/kvm/eventfd.c | 7 ++- virt/kvm/kvm_main.c | 6 ++ 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/include/linux/kvm_host.h b/in

[PATCH v3 0/5] kvm: Make ioeventfd usable on s390.

2013-02-25 Thread Cornelia Huck
Better naming: We're dealing with virtio-ccw notifications only. v1 -> v2: - Move irqfd initialization from a module init function to kvm_init, eliminating the need for a second module for kvm/s390. - Use kvm_io_device for s390 css devices. Cornelia Huck (5): KVM: Initialize irqfd from kv

Re: [RFC PATCH v2 2/4] KVM: Introduce KVM_CSS_BUS.

2013-02-25 Thread Cornelia Huck
On Sun, 24 Feb 2013 11:57:25 +0200 "Michael S. Tsirkin" wrote: > On Fri, Feb 22, 2013 at 01:09:47PM +0100, Cornelia Huck wrote: > > Add a new bus type for s390 css kvm io devices. > > > > Signed-off-by: Cornelia Huck > > --- > > include/linux/kvm_ho

Re: [RFC PATCH v2 3/4] KVM: ioeventfd for s390 css devices.

2013-02-25 Thread Cornelia Huck
On Sun, 24 Feb 2013 11:47:50 +0200 "Michael S. Tsirkin" wrote: > On Fri, Feb 22, 2013 at 01:09:48PM +0100, Cornelia Huck wrote: > > Enhance KVM_IOEVENTFD with a new flag that allows to attach to s390 css > > devices. > > > > Signed-off-by: Cornelia Huck &

Re: [RFC PATCH v2 4/4] KVM: s390: Wire up ioeventfd.

2013-02-25 Thread Cornelia Huck
On Sun, 24 Feb 2013 11:45:22 +0200 "Michael S. Tsirkin" wrote: > On Fri, Feb 22, 2013 at 01:09:49PM +0100, Cornelia Huck wrote: > > Enable ioeventfd support on s390 and hook up diagnose 500 virtio-ccw > > notifications. > > > > Signed-off-by: Cornelia Huc

Re: [RFC PATCH v2 0/4] kvm: Make ioeventfd usable on s390.

2013-02-25 Thread Cornelia Huck
On Sun, 24 Feb 2013 11:56:39 +0200 "Michael S. Tsirkin" wrote: > On Fri, Feb 22, 2013 at 01:09:45PM +0100, Cornelia Huck wrote: > > Here's the second attempt at implementing ioeventfd for s390. > > The patchset looks fine overall. > Minor comments and q

[RFC PATCH v2 2/2] virtio-ccw: Wire up ioeventfd.

2013-02-22 Thread Cornelia Huck
On hosts that support ioeventfd, make use of it for host-to-guest notifications via diagnose 500. Signed-off-by: Cornelia Huck --- hw/s390x/css.c| 2 +- hw/s390x/css.h| 1 + hw/s390x/virtio-ccw.c | 114 ++ hw/s390x/virtio-ccw.h

[RFC PATCH v2 1/2] linux-headers: Update with ioeventfd changes.

2013-02-22 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- linux-headers/linux/kvm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index 5af9357..00f2e53 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -448,12 +448,14 @@ enum

[RFC PATCH v2 4/4] KVM: s390: Wire up ioeventfd.

2013-02-22 Thread Cornelia Huck
Enable ioeventfd support on s390 and hook up diagnose 500 virtio-ccw notifications. Signed-off-by: Cornelia Huck --- arch/s390/kvm/Kconfig| 1 + arch/s390/kvm/Makefile | 2 +- arch/s390/kvm/diag.c | 25 + arch/s390/kvm/kvm-s390.c | 1 + 4 files changed, 28

[RFC PATCH v2 3/4] KVM: ioeventfd for s390 css devices.

2013-02-22 Thread Cornelia Huck
Enhance KVM_IOEVENTFD with a new flag that allows to attach to s390 css devices. Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 7 +++ include/uapi/linux/kvm.h | 2 ++ virt/kvm/eventfd.c| 8 ++-- 3 files changed, 15 insertions(+), 2

[RFC PATCH v2 0/2] qemu: ioeventfd for virtio-ccw.

2013-02-22 Thread Cornelia Huck
Here's the next version of ioeventfd support for virtio-ccw, again against master. v1 -> v2: - Adapt to changed ioeventfd interface. Cornelia Huck (2): linux-headers: Update with ioeventfd changes. virtio-ccw: Wire up ioeventfd. hw/s390x/css.c| 2 +- hw/s39

[RFC PATCH v2 0/4] kvm: Make ioeventfd usable on s390.

2013-02-22 Thread Cornelia Huck
s per bus, which we would hit easily with a few hundred devices, but that should be fixable. v1 -> v2: - Move irqfd initialization from a module init function to kvm_init, eliminating the need for a second module for kvm/s390. - Use kvm_io_device for s390 css devices. Cornelia Huck (4

[RFC PATCH v2 1/4] KVM: Initialize irqfd from kvm_init().

2013-02-22 Thread Cornelia Huck
y, it is also clearer where kvm startup may fail. Signed-off-by: Cornelia Huck --- include/linux/kvm_host.h | 13 + virt/kvm/eventfd.c | 7 ++- virt/kvm/kvm_main.c | 6 ++ 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/include/linux/kvm_host.h b/in

[RFC PATCH v2 2/4] KVM: Introduce KVM_CSS_BUS.

2013-02-22 Thread Cornelia Huck
Add a new bus type for s390 css kvm io devices. Signed-off-by: Cornelia Huck --- include/linux/kvm_host.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 3b768ef..59be516 100644 --- a/include/linux/kvm_host.h +++ b/include/linux

Re: [RFC PATCH 3/3] KVM: s390: Hook up ioeventfds.

2013-02-21 Thread Cornelia Huck
On Thu, 21 Feb 2013 22:42:41 +0200 "Michael S. Tsirkin" wrote: > On Thu, Feb 21, 2013 at 07:14:31PM +0100, Cornelia Huck wrote: > > On Thu, 21 Feb 2013 18:34:59 +0200 > > "Michael S. Tsirkin" wrote: > > > > > On Thu, Feb 21, 2013 at 04:21:43PM

Re: [RFC PATCH 3/3] KVM: s390: Hook up ioeventfds.

2013-02-21 Thread Cornelia Huck
On Thu, 21 Feb 2013 18:34:59 +0200 "Michael S. Tsirkin" wrote: > On Thu, Feb 21, 2013 at 04:21:43PM +0100, Cornelia Huck wrote: > > On Thu, 21 Feb 2013 16:39:05 +0200 > > "Michael S. Tsirkin" wrote: > > > > > On Thu, Feb 21, 2013 at 02:1

Re: [RFC PATCH 3/3] KVM: s390: Hook up ioeventfds.

2013-02-21 Thread Cornelia Huck
On Thu, 21 Feb 2013 16:39:05 +0200 "Michael S. Tsirkin" wrote: > On Thu, Feb 21, 2013 at 02:13:00PM +0100, Cornelia Huck wrote: > > As s390 doesn't use memory writes for virtio notifcations, create > > a special kind of ioeventfd instead that hooks up into diagnose

Re: [RFC PATCH 1/3] KVM: s390: Move out initialization code.

2013-02-21 Thread Cornelia Huck
On Thu, 21 Feb 2013 16:18:34 +0200 "Michael S. Tsirkin" wrote: > On Thu, Feb 21, 2013 at 03:07:32PM +0100, Cornelia Huck wrote: > > On Thu, 21 Feb 2013 15:43:55 +0200 > > "Michael S. Tsirkin" wrote: > > > > > On Thu, Feb 21, 2013 at 02:12:5

Re: [RFC PATCH 1/3] KVM: s390: Move out initialization code.

2013-02-21 Thread Cornelia Huck
On Thu, 21 Feb 2013 15:43:55 +0200 "Michael S. Tsirkin" wrote: > On Thu, Feb 21, 2013 at 02:12:58PM +0100, Cornelia Huck wrote: > > kvm-s390's module initialization code needs to live in a separate > > module (kvm-s390.ko) if we want to include eventfd (which ha

[RFC PATCH 1/3] KVM: s390: Move out initialization code.

2013-02-21 Thread Cornelia Huck
kvm-s390's module initialization code needs to live in a separate module (kvm-s390.ko) if we want to include eventfd (which has its own module init func). Signed-off-by: Cornelia Huck --- arch/s390/kvm/Makefile | 4 +++- arch/s390/kvm/init.c

[RFC PATCH 2/2] virtio-ccw: Wire up ioeventfd.

2013-02-21 Thread Cornelia Huck
On hosts that support ioeventfd, make use of it for host-to-guest notifications via diagnose 500. Signed-off-by: Cornelia Huck --- hw/s390x/css.c| 2 +- hw/s390x/css.h| 1 + hw/s390x/virtio-ccw.c | 114 ++ hw/s390x/virtio-ccw.h

[RFC PATCH 1/2] linux-headers: Update with ioeventfd changes.

2013-02-21 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- linux-headers/linux/kvm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index 5af9357..a7f92a0 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -448,12 +448,14

[RFC PATCH 0/2] qemu: ioeventfd for virtio-ccw.

2013-02-21 Thread Cornelia Huck
entfd property that can be used to turn ioeventfd usage off for a device (similar to virtio-pci). A simple dd on a virtio-blk device dd if=/dev/vda of=/dev/null iflag=direct bs=4k count=1 is now twice as fast :) (Patches are against master.) Cornelia Huck (2): linux-headers: Update

[RFC PATCH 3/3] KVM: s390: Hook up ioeventfds.

2013-02-21 Thread Cornelia Huck
As s390 doesn't use memory writes for virtio notifcations, create a special kind of ioeventfd instead that hooks up into diagnose 0x500 (kvm hypercall) with function code 3 (virtio-ccw notification). Signed-off-by: Cornelia Huck --- arch/s390/include/asm/kvm_host.h | 23 ++ arch/s39

[RFC PATCH 2/3] KVM: Generalize ioeventfds.

2013-02-21 Thread Cornelia Huck
Currently, ioeventfds are designed to work on architectures that can trap I/O memory writes. This won't work for architectures like s390, however; therefore provide a way for architectures to override this with an architecture-specific implementation. Signed-off-by: Cornelia

[RFC PATCH 0/3] kvm: Make ioeventfd usable on s390.

2013-02-21 Thread Cornelia Huck
tch 3 implements the kvm_arch_ioeventfd_* functions for s390 and hooks up ioeventfds with diagnose 500. There's also a companion qemu patch series that makes use of this for virtio-ccw. (Patches are against kvm-next.) Cornelia Huck (3): KVM: s390: Move out initialization code. KVM: Generalize ioevent

[PATCH] KVM: s390: Fix handling of iscs.

2013-02-07 Thread Cornelia Huck
made the same mistake, and - Linux guest kernels don't check the isc value in the I/O interruption word for subchannel interrupts. Make sure that we treat the I/O interruption word correctly. Reviewed-by: Christian Borntraeger Signed-off-by: Cornelia Huck --- arch/s390/kvm/interrupt.c

[PATCH] kvm-s390: Bugfix for handling of iscs.

2013-02-07 Thread Cornelia Huck
Hi, here's another kvm-s390 bugfix for kvm-next, this time fixing a thinko in the I/O interrupt injection. Please apply. Cornelia Huck (1): KVM: s390: Fix handling of iscs. arch/s390/kvm/interrupt.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) -- 1.7

Re: [PATCH v8 0/2] s390: virtio-ccw transport.

2013-01-25 Thread Cornelia Huck
On Thu, 24 Jan 2013 17:17:46 +0100 Alexander Graf wrote: > > On 24.01.2013, at 17:08, Cornelia Huck wrote: > > > Hi, > > > > patches against s390-next again, with coding style fixes. > > Thanks, applied to s390-next. Hm, did you forget to apply 2/2? >

[PATCH 2/2] s390: Add s390-ccw-virtio machine.

2013-01-24 Thread Cornelia Huck
Add a new machine type, s390-ccw-virtio, making use of the virtio-ccw transport to present virtio devices as channel devices. Signed-off-by: Cornelia Huck --- v7 -> v8: - Coding style v5 -> v6: - Don't make virtio-ccw the default yet - Adapt to ipl device changes - Adapt to Virtio

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

2013-01-24 Thread Cornelia Huck
Add a new virtio transport that uses channel commands to perform virtio operations. Signed-off-by: Cornelia Huck --- v7 -> v8: - to_virtio_ccw_dev -> VIRTIO_CCW_DEVICE v6 -> v7: - class reset handling - header guard - coding style v5 -> v6: - Get rid of qemu_get_ram_ptr usag

[PATCH v8 0/2] s390: virtio-ccw transport.

2013-01-24 Thread Cornelia Huck
Hi, patches against s390-next again, with coding style fixes. Cornelia Huck (2): s390: Add new channel I/O based virtio transport. s390: Add s390-ccw-virtio machine. hw/s390-virtio.h | 1 + hw/s390x/Makefile.objs | 2 + hw/s390x/s390-virtio-ccw.c | 134 +++ hw/s390x

[PATCH 2/2] s390: Add s390-ccw-virtio machine.

2013-01-24 Thread Cornelia Huck
Add a new machine type, s390-ccw-virtio, making use of the virtio-ccw transport to present virtio devices as channel devices. Signed-off-by: Cornelia Huck --- v5 -> v6: - Don't make virtio-ccw the default yet - Adapt to ipl device changes - Adapt to VirtioBus changes - Default to sclp

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

2013-01-24 Thread Cornelia Huck
Add a new virtio transport that uses channel commands to perform virtio operations. Signed-off-by: Cornelia Huck --- v6 -> v7: - class reset handling - header guard - coding style v5 -> v6: - Get rid of qemu_get_ram_ptr usage - Adapt to virtual css changes - Constify TypeInfos - Prepa

[PATCH v7 0/2] s390: virtio-ccw transport.

2013-01-24 Thread Cornelia Huck
Hi, here's the next iteration of virtio-ccw and s390-ccw-virtio support, with comments addressed and rebased against s390-next. Cornelia Huck (2): s390: Add new channel I/O based virtio transport. s390: Add s390-ccw-virtio machine. hw/s390-virtio.h | 1 + hw/s390x/Makefile

Re: [Qemu-devel] [PATCH 08/11] s390: Add new channel I/O based virtio transport.

2013-01-24 Thread Cornelia Huck
On Thu, 24 Jan 2013 14:18:10 +0100 Andreas Färber wrote: Forgot one point :) > > +/* DeviceState to VirtioCcwData. Note: used on datapath, > > + * be careful and test performance if you change this. > > + */ > > +static inline VirtioCcwData *to_virtio_ccw_data_fast(DeviceState *d) > > +{ > > +

Re: [Qemu-devel] [PATCH 08/11] s390: Add new channel I/O based virtio transport.

2013-01-24 Thread Cornelia Huck
On Thu, 24 Jan 2013 14:18:10 +0100 Andreas Färber wrote: > Am 24.01.2013 13:28, schrieb Cornelia Huck: > > Add a new virtio transport that uses channel commands to perform > > virtio operations. > > > > Signed-off-by: Cornelia Huck > > > >

[PATCH 10/11] s390: Add default support for SCLP console

2013-01-24 Thread Cornelia Huck
is a lot closer to what real hardware does. Signed-off-by: Alexander Graf Signed-off-by: Cornelia Huck --- hw/boards.h | 1 + vl.c| 48 2 files changed, 49 insertions(+) diff --git a/hw/boards.h b/hw/boards.h index 3ff9665..3813d4e 1

[PATCH 09/11] s390-virtio: Factor out some initialization code.

2013-01-24 Thread Cornelia Huck
Some of the machine initialization for s390-virtio will be reused by virtio-ccw. Signed-off-by: Cornelia Huck --- v5 -> v6: - Adapt to ipl device changes --- hw/s390-virtio.c | 118 +++ hw/s390-virtio.h | 5 +++ 2 files changed,

[PATCH 11/11] s390: Add s390-ccw-virtio machine.

2013-01-24 Thread Cornelia Huck
Add a new machine type, s390-ccw-virtio, making use of the virtio-ccw transport to present virtio devices as channel devices. Signed-off-by: Cornelia Huck --- v5 -> v6: - Don't make virtio-ccw the default yet - Adapt to ipl device changes - Adapt to VirtioBus changes - Default to sclp

[PATCH 07/11] s390: Wire up channel I/O in kvm.

2013-01-24 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 | 239

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

2013-01-24 Thread Cornelia Huck
Add a new virtio transport that uses channel commands to perform virtio operations. Signed-off-by: Cornelia Huck --- v5 -> v6: - Get rid of qemu_get_ram_ptr usage - Adapt to virtual css changes - Constify TypeInfos - Prepare for VirtioBus --- hw/s390x/Makefile.objs | 1 + hw/s390x/vir

[PATCH 06/11] s390: Virtual channel subsystem support.

2013-01-24 Thread Cornelia Huck
Provide a mechanism for qemu to provide fully virtual subchannels to the guest. Signed-off-by: Cornelia Huck --- v5 -> v6: - Remove extraneous NULL pointer checks - Use helper function to build subchannel id - Endianness - Get rid of qemu_get_ram_ptr - Move kvm_enabled() check into gene

[PATCH 04/11] s390: I/O interrupt and machine check injection.

2013-01-24 Thread Cornelia Huck
I/O interrupts are queued per isc. Only crw pending machine checks are supported. Signed-off-by: Cornelia Huck --- v5 -> v6: - Adapt to cpu_map_lowcore changes --- target-s390x/cpu.h| 69 +++- target-s390x/helper.c |

[PATCH 03/11] s390: Channel I/O basic definitions.

2013-01-24 Thread Cornelia Huck
Basic channel I/O structures and helper function. Signed-off-by: Cornelia Huck --- v5 -> v6: - Move typedefs into ioinst.h and include ioinst.h in cpu.h instead --- target-s390x/Makefile.objs | 2 +- target-s390x/cpu.h | 1 + target-s390x/ioinst.c | 36 tar

[PATCH 05/11] s390: Add channel I/O instructions.

2013-01-24 Thread Cornelia Huck
Provide handlers for (most) channel I/O instructions. Signed-off-by: Cornelia Huck --- v5 -> v6: - Adapt to s390_cpu_physical_memory_map changes - Simplify chsc handling - Handle endianness --- target-s390x/cpu.h| 100 +++ target-s390x/ioinst.c |

[PATCH 01/11] s390: Lowcore mapping helper.

2013-01-24 Thread Cornelia Huck
Create a lowcore mapping helper that includes a check for sufficient length. Signed-off-by: Cornelia Huck --- v5 -> v6: - Check returned len of cpu_physical_memory_map - Don't pass lowcore len --- target-s390x/helper.c | 34 +- 1 file changed, 25 in

[PATCH 02/11] s390: Add mapping helper functions.

2013-01-24 Thread Cornelia Huck
Add s390_cpu_physical_memory_{map,unmap} with special handling for the lowcore. Signed-off-by: Cornelia Huck --- v5 -> v6: - Make lowcore/0 page handling easier to read - Make len a pointer --- target-s390x/cpu.h| 4 target-s390x/helper.c | 25 + 2 fi

[PATCH v6 00/11] s390: channel I/O support in qemu.

2013-01-24 Thread Cornelia Huck
-virtio the default machine has been deferred until after tcg support is available. Alexander Graf (1): s390: Add default support for SCLP console Cornelia Huck (10): s390: Lowcore mapping helper. s390: Add mapping helper functions. s390: Channel I/O basic definitions. s390: I/O interrupt

Re: [Qemu-devel] [PATCH 04/12] Update linux headers.

2013-01-17 Thread Cornelia Huck
On Thu, 17 Jan 2013 15:05:46 + Peter Maydell wrote: > On 17 January 2013 14:23, Cornelia Huck wrote: > > Base is kvm-next as of 2013/01/16. > > > --- a/linux-headers/asm-powerpc/kvm_para.h > > +++ b/linux-headers/asm-powerpc/kvm_para.h > > @@ -78,7 +78,7

[PATCH 02/12] s390: Lowcore mapping helper.

2013-01-17 Thread Cornelia Huck
Create a lowcore mapping helper that includes a check for sufficient length. Signed-off-by: Cornelia Huck --- target-s390x/helper.c | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/target-s390x/helper.c b/target-s390x/helper.c index 9a132e6

[PATCH 08/12] s390: Virtual channel subsystem support.

2013-01-17 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 | 1131 hw/s390x/css.h | 92 target-s390x/cpu.h | 65

[PATCH 05/12] s390: Channel I/O basic defintions.

2013-01-17 Thread Cornelia Huck
Basic channel I/O structures and helper function. Signed-off-by: Cornelia Huck --- target-s390x/Makefile.objs | 2 +- target-s390x/cpu.h | 5 ++ target-s390x/ioinst.c | 36 target-s390x/ioinst.h | 207 + 4 files changed

[PATCH 04/12] Update linux headers.

2013-01-17 Thread Cornelia Huck
Base is kvm-next as of 2013/01/16. Signed-off-by: Cornelia Huck --- linux-headers/asm-generic/kvm_para.h | 4 linux-headers/asm-powerpc/kvm_para.h | 2 +- linux-headers/linux/kvm.h| 21 + 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644

[PATCH 11/12] s390-virtio: Factor out some initialization code.

2013-01-17 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 | 155 ++- hw/s390-virtio.h | 5 ++ 2 files changed, 91 insertions(+), 69 deletions(-) diff --git a/hw/s390

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

2013-01-17 Thread Cornelia Huck
Add a new virtio transport that uses channel commands to perform virtio operations. Signed-off-by: Cornelia Huck --- hw/s390x/Makefile.objs | 1 + hw/s390x/virtio-ccw.c | 906 + hw/s390x/virtio-ccw.h | 79 + trace-events | 4

[PATCH 06/12] s390: I/O interrupt and machine check injection.

2013-01-17 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| 69 +++- target-s390x/helper.c | 143 ++ 2 files changed, 211 insertions(+), 1 deletion

[PATCH 09/12] s390: Wire up channel I/O in kvm.

2013-01-17 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 | 252

[PATCH 07/12] s390: Add channel I/O instructions.

2013-01-17 Thread Cornelia Huck
Provide handlers for (most) channel I/O instructions. Signed-off-by: Cornelia Huck --- target-s390x/cpu.h| 101 target-s390x/ioinst.c | 673 ++ target-s390x/ioinst.h | 16 ++ trace-events | 6 + 4 files changed, 796

[PATCH 12/12] s390: Add s390-ccw-virtio machine.

2013-01-17 Thread Cornelia Huck
Add a new machine type, s390-ccw-virtio, making use of the virtio-ccw transport to present virtio devices as channel devices and make it the default on s390. Signed-off-by: Cornelia Huck --- hw/s390-virtio.c | 1 - hw/s390-virtio.h | 1 + hw/s390x/Makefile.objs | 1

[PATCH v5 00/12] s390: channel I/O support in qemu.

2013-01-17 Thread Cornelia Huck
Changes include: - Add various defines for magic constants. - Introduce helpers for various mapping stuff and use them. - Adapt virtio-ccw to QOM conventions. - Move the new s390-ccw-virtio machine into an extra file (and an extra patch). - Improve cpu handling during machine init (don't pass

[PATCH 01/12] s390: Add a hypercall registration interface.

2013-01-17 Thread Cornelia Huck
Allow virtio machines to register for different diag500 function codes and convert s390-virtio to use it. Signed-off-by: Cornelia Huck --- hw/s390-virtio.c | 90 +++- hw/s390-virtio.h | 22 +++ hw/s390x/Makefile.objs

[PATCH 03/12] s390: Add mapping helper functions.

2013-01-17 Thread Cornelia Huck
Add s390_cpu_physical_memory_{map,unmap} with special handling for the lowcore. Signed-off-by: Cornelia Huck --- target-s390x/cpu.h| 4 target-s390x/helper.c | 26 ++ 2 files changed, 30 insertions(+) diff --git a/target-s390x/cpu.h b/target-s390x/cpu.h index

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

2013-01-16 Thread Cornelia Huck
On Wed, 16 Jan 2013 14:53:06 +0100 Alexander Graf wrote: > > On 16.01.2013, at 14:24, Alexander Graf wrote: > > > > > On 07.12.2012, at 13:50, Cornelia Huck wrote: > > > >> Add a new virtio transport that uses channel commands to perform > >> vi

[PATCH] KVM: s390: kvm/sigp.c: fix memory leakage

2013-01-15 Thread Cornelia Huck
From: Cong Ding the variable inti should be freed in the branch CPUSTAT_STOPPED. Signed-off-by: Cong Ding Signed-off-by: Cornelia Huck --- arch/s390/kvm/sigp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/s390/kvm/sigp.c b/arch/s390/kvm/sigp.c index 461e841

[PATCH] Bugfix for kvm/s390.

2013-01-15 Thread Cornelia Huck
Hi, here's another s390 bugfix for kvm-next. Please apply. Cong Ding (1): KVM: s390: kvm/sigp.c: fix memory leakage arch/s390/kvm/sigp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 1.7.12.4 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a m

Re: [PATCH] s390: kvm/sigp.c: fix memory leakage

2013-01-15 Thread Cornelia Huck
On Mon, 14 Jan 2013 22:39:54 +0100 Cong Ding wrote: > the variable inti should be freed in the branch CPUSTAT_STOPPED. > > Signed-off-by: Cong Ding > --- > arch/s390/kvm/sigp.c |4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/arch/s390/kvm/sigp.c b/arch/s390/kvm/

[PATCH] KVM: trace: Fix exit decoding.

2013-01-08 Thread Cornelia Huck
trace_kvm_userspace_exit has been missing the KVM_EXIT_WATCHDOG exit. CC: Bharat Bhushan Signed-off-by: Cornelia Huck --- include/trace/events/kvm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/trace/events/kvm.h b/include/trace/events/kvm.h index a23f47c

[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 Signed-off-by: Cornelia Huck --- drivers/s390/kvm/virtio_ccw.c

[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

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

2013-01-07 Thread Cornelia Huck
From: Christian Borntraeger 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 Signed-off-by: Cornelia Huck --- drivers/s390/kvm/virtio_ccw.c

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

2012-12-20 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 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 Acked-by: Alexander Graf 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

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

2012-12-20 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 Reviewed-by: Alexander Graf Signed-off-by: Cornelia Huck --- arch/s390/kvm/intercept.c | 19 +--- arch/s390/kvm/kvm-s

[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 --- 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..0c08b3f 100644 --- a/arch

[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 Reviewed-by: Alexander Graf Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 30

[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 --- arch/s390/kvm/intercept.c | 21 ++--- arch/s390/kvm/kvm-s390.h | 37 + arch/s390/kvm/priv.c | 42

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

2012-12-20 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 | 103 +- include/uapi/linux/kvm.h | 9 4 files changed, 116 insertions(+), 2 dele

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

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

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 wrote: > Il 04/09/2012 17:13, Cornelia Huck ha scritto: > > +VirtioCcwBus *virtio_ccw_bus_init(void) > > +{ > > +VirtioCcwBus *cbus; > > +BusState *bus; > > +DeviceState *dev; > > + > >

[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 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 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 Signed-off-by: Cornelia Huck --- arch/s390/include/asm

[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. Cor

[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 --- 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 100644 --- a/arch/s390

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

<    1   2   3   4   5   6   7   >