[Qemu-devel] [PATCH 2/2] virtio-ccw: Wire up guest and host notifies.

2013-05-28 Thread Cornelia Huck
Guest and host notifiers are needed by vhost. We use ioeventfds for the guest notifiers, but need to fall back on qemu injecting interrupts for the host notifiers. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x/virtio-ccw.c | 88

[Qemu-devel] [PATCH 0/2] virtio-ccw: Add notifiers support.

2013-05-28 Thread Cornelia Huck
, host notifiers falling back to qemu injecting interrupts as we don't have irqfd for s390 yet. (I plan to implement that on top of adapter interrupts, which is the next thing I'll takle.) I'd like to get this into 1.6, so feedback is welcome. Cornelia Huck (2): virtio-ccw: Wire up ioeventfd

[Qemu-devel] [PATCH 1/2] virtio-ccw: Wire up ioeventfd.

2013-05-28 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 cornelia.h...@de.ibm.com --- hw/s390x/css.c|2 +- hw/s390x/css.h|1 + hw/s390x/virtio-ccw.c | 117

[Qemu-devel] [PATCH 0/2] virtio-ccw/css: bugfixes

2013-06-06 Thread Cornelia Huck
Two bugfixes for problems that lurked in the virtual css and virtio-ccw code since the beginning: Concurrent sense data was indicated by the wrong bit, and un-setting indicators never worked due to a thinko. Cornelia Huck (2): s390x/css: Fix concurrent sense. virtio-ccw: Fix unsetting

[Qemu-devel] [PATCH 1/2] s390x/css: Fix concurrent sense.

2013-06-06 Thread Cornelia Huck
Fix an off-by-one error when indicating availablity of concurrent sense data. Cc: qemu-sta...@nongnu.org Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x/css.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/s390x/css.c b/hw/s390x/css.c index e526a1c

[Qemu-devel] [PATCH 2/2] virtio-ccw: Fix unsetting of indicators.

2013-06-06 Thread Cornelia Huck
Interpretation of the ccws to register (configuration) indicators contained a thinko: We want to disallow reading from 0, but setting the indicator pointer to 0 is fine. Let's fix the handling for CCW_CMD_SET{,_CONF}_IND. Cc: qemu-sta...@nongnu.org Signed-off-by: Cornelia Huck cornelia.h

[Qemu-devel] [PULL 0/2] virtio-ccw/css: bugfixes

2013-06-07 Thread Cornelia Huck
virtio-ccw-upstr for you to fetch changes up to d1db1fa8dfcea9c62643f624f2a07d2fd375ce45: virtio-ccw: Fix unsetting of indicators. (2013-06-06 10:25:59 +0200) Cornelia Huck (2): s390x/css: Fix concurrent sense. virtio

[Qemu-devel] [PULL 2/2] virtio-ccw: Fix unsetting of indicators.

2013-06-07 Thread Cornelia Huck
Interpretation of the ccws to register (configuration) indicators contained a thinko: We want to disallow reading from 0, but setting the indicator pointer to 0 is fine. Let's fix the handling for CCW_CMD_SET{,_CONF}_IND. Cc: qemu-sta...@nongnu.org Signed-off-by: Cornelia Huck cornelia.h

[Qemu-devel] [PULL 1/2] s390x/css: Fix concurrent sense.

2013-06-07 Thread Cornelia Huck
Fix an off-by-one error when indicating availablity of concurrent sense data. Cc: qemu-sta...@nongnu.org Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x/css.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/s390x/css.c b/hw/s390x/css.c index e526a1c

[Qemu-devel] [PATCH RFC] virtio-ccw: Document adapter interrupts.

2013-06-07 Thread Cornelia Huck
Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- virtio-spec.lyx | 147 +-- 1 file changed, 144 insertions(+), 3 deletions(-) diff --git a/virtio-spec.lyx b/virtio-spec.lyx index 6e188d0..697351e 100644 --- a/virtio-spec.lyx +++ b

[Qemu-devel] [PATCH RFC 2/2] KVM: s390: virtio-ccw adapter interrupt support.

2013-06-07 Thread Cornelia Huck
a summary indicator for all devices sharing the same indicator area. Indicator bits for the individual virtqueues may be contained in the same indicator area for different devices. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- arch/s390/include/asm/irq.h | 1 + arch/s390/kernel/irq.c

[Qemu-devel] [PATCH RFC] s390/virtio-ccw: Adapter interrupt support.

2013-06-07 Thread Cornelia Huck
. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x/css.c| 10 hw/s390x/css.h|2 ++ hw/s390x/virtio-ccw.c | 66 - hw/s390x/virtio-ccw.h |4 +++ target-s390x/ioinst.h |2 ++ target-s390x/kvm.c

[Qemu-devel] [PATCH RFC] Adapter interrupts for virtio-ccw.

2013-06-07 Thread Cornelia Huck
for the device). This is partially inspired by what qdio does today. I have seen some nice speedup on simple dd with my current implementation. Adapter interrupts are also a prereq for implementing irqfd on s390, since they eliminate the need for manipulating subchannel status. Cornelia Huck (1): virtio-ccw

[Qemu-devel] [PATCH RFC] qemu: Adapter interrupts for virtio-ccw.

2013-06-07 Thread Cornelia Huck
Hi, here's the qemu patch that implements the new adapter indicators ccw in virtio-ccw and injects adapter interrupts for the devices enabled for it. Cornelia Huck (1): s390/virtio-ccw: Adapter interrupt support. hw/s390x/css.c| 10 hw/s390x/css.h|2 ++ hw

[Qemu-devel] [PATCH RFC 0/2] KVM: s390: virtio-ccw adapter interrupts.

2013-06-07 Thread Cornelia Huck
. Cornelia Huck (2): KVM: s390: virtio-ccw: Handle command rejects. KVM: s390: virtio-ccw adapter interrupt support. arch/s390/include/asm/irq.h | 1 + arch/s390/kernel/irq.c| 1 + drivers/s390/kvm/virtio_ccw.c | 307 -- 3 files changed, 298

[Qemu-devel] [PATCH RFC 1/2] KVM: s390: virtio-ccw: Handle command rejects.

2013-06-07 Thread Cornelia Huck
A command reject for a ccw may happen if we run on a host not supporting a certain feature. We want to be able to handle this as special case of command failure, so let's split this off from the generic -EIO error code. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- drivers/s390/kvm

Re: [Qemu-devel] [PATCH 8/8] [PATCH RFC v2] s390-qemu: cpu hotplug - Treat S390 cpus as devices

2013-06-10 Thread Cornelia Huck
On Sun, 09 Jun 2013 03:11:35 +0200 Andreas Färber afaer...@suse.de wrote: Am 07.06.2013 19:28, schrieb Jason J. Herne: From: Jason J. Herne jjhe...@us.ibm.com Modify cpu initialization and QOM routines associated with s390-cpu such that all cpus on S390 are now created via the QOM

Re: [Qemu-devel] [PATCH v2 01/12] virtio-ccw: move virtio_ccw_stop_ioeventfd to virtio_ccw_busdev_unplug

2013-10-15 Thread Cornelia Huck
. A better place for this could be the device_unplugged callback for the virtio-ccw bus. However, we do not yet have a callback that works: this patch avoids the problem while leaving the tree bisectable. Reported-by: Cornelia Huck cornelia.h...@de.ibm.com Suggested-by: Cornelia Huck

Re: [Qemu-devel] [PATCH v2 03/12] virtio-ccw: remove vdev field

2013-10-15 Thread Cornelia Huck
prefer virtio_ccw_get_vdev() instead. bool check_len; int len; hwaddr hw_len; Otherwise: Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com

[Qemu-devel] [PATCH RFC] dataplane: Fix startup race.

2013-09-04 Thread Cornelia Huck
be triggerable for other platforms as well. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/block/dataplane/virtio-blk.c | 9 + 1 file changed, 9 insertions(+) diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c index 5a96ccd..f2d7350 100644 --- a/hw/block

Re: [Qemu-devel] [PATCH 2/2] KVM: s390: add floating irq controller

2013-07-31 Thread Cornelia Huck
On Mon, 29 Jul 2013 15:59:53 +0200 Jens Freimann jf...@linux.vnet.ibm.com wrote: This patch adds a floating irq controller as a kvm_device. It will be necesary for migration of floating interrupts as well as for hardening the reset code by allowing user space to explicitly remove all pending

Re: [Qemu-devel] [PATCH v2 for-1.7] s390x: fix flat file load on 32 bit systems

2013-11-21 Thread Cornelia Huck
-by: Michael S. Tsirkin m...@redhat.com --- Changes from v1: better fix: use int everywhere fix all places with same bug (e.g. -kernel was broken too) hw/s390x/ipl.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) Reviewed-by: Cornelia Huck cornelia.h

[Qemu-devel] [PULL] virtio-ccw build fix

2013-07-01 Thread Cornelia Huck
to cc3ac9c4a6fd0574b767c599e4a582be8f23260d: virtio-ccw: fix build breakage on windows (2013-07-01 11:00:20 +0200) Cornelia Huck (1): virtio-ccw: fix build breakage on windows hw/s390x/virtio-ccw.c |6 ++ target-s390x/cpu.h

[Qemu-devel] [PULL] virtio-ccw: fix build breakage on windows

2013-07-01 Thread Cornelia Huck
event_notifier_get_fd() is not available on windows hosts. Fix this by moving the calls to event_notifier_get_fd() to the kvm code. Reported-by: Stefan Weil s...@weilnetz.de Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x/virtio

[Qemu-devel] [RFC PATCH v2] Adapter interrupts for virtio-ccw.

2013-07-09 Thread Cornelia Huck
Hi, here's again my proposal for adapter (thin) interrupt support for virtio-ccw devices, originally posted at http://marc.info/?l=linux-virtualizationm=137060143904927w=2 The document is unchanged, only rebased against current master. Cornelia Huck (1): virtio-ccw: Document adapter

[Qemu-devel] [RFC PATCH v2] virtio-ccw: Document adapter interrupts.

2013-07-09 Thread Cornelia Huck
Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- virtio-spec.lyx | 147 +-- 1 file changed, 144 insertions(+), 3 deletions(-) diff --git a/virtio-spec.lyx b/virtio-spec.lyx index c920155..4729766 100644 --- a/virtio-spec.lyx +++ b

[Qemu-devel] [RFC PATCH v2 0/2] KVM: s390: virtio-ccw adapter interrupts.

2013-07-09 Thread Cornelia Huck
Hi, next version of the guest exploitation of virtio-ccw adapter interrupts. Changes from the last version: - adapt to latest kvm-next - changed housekeeping for indicator locations: we now use cacheline-sized and aligned areas - minor tweaks Cornelia Huck (2): KVM: s390: virtio-ccw

[Qemu-devel] [RFC PATCH v2] qemu: Adapter interrupts for virtio-ccw.

2013-07-09 Thread Cornelia Huck
Hi, here's the current implementation of virtio-ccw adapter interrupts in qemu. Code is unchanged, only rebased against current master. Cornelia Huck (1): s390/virtio-ccw: Adapter interrupt support. hw/s390x/css.c| 10 hw/s390x/css.h|2 ++ hw/s390x/virtio

[Qemu-devel] [RFC PATCH v2] s390/virtio-ccw: Adapter interrupt support.

2013-07-09 Thread Cornelia Huck
. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x/css.c| 10 hw/s390x/css.h|2 ++ hw/s390x/virtio-ccw.c | 64 - hw/s390x/virtio-ccw.h |4 target-s390x/ioinst.h |2 ++ target-s390x/kvm.c

[Qemu-devel] [RFC PATCH v2 2/2] KVM: s390: virtio-ccw adapter interrupt support.

2013-07-09 Thread Cornelia Huck
a summary indicator for all devices sharing the same indicator area. Indicator bits for the individual virtqueues may be contained in the same indicator area for different devices. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- arch/s390/include/asm/irq.h | 1 + arch/s390/kernel/irq.c

[Qemu-devel] [RFC PATCH v2 1/2] KVM: s390: virtio-ccw: Handle command rejects.

2013-07-09 Thread Cornelia Huck
A command reject for a ccw may happen if we run on a host not supporting a certain feature. We want to be able to handle this as special case of command failure, so let's split this off from the generic -EIO error code. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- drivers/s390/kvm

Re: [Qemu-devel] [RFC PATCH v2] s390/virtio-ccw: Adapter interrupt support.

2013-07-09 Thread Cornelia Huck
On Tue, 09 Jul 2013 15:27:14 +0200 Christian Borntraeger borntrae...@de.ibm.com wrote: On 09/07/13 13:34, Cornelia Huck wrote: Handle the new CCW_CMD_SET_IND_ADAPTER command enabling adapter interrupts on guest request. When active, host-guest notifications will be handled via

[Qemu-devel] [PATCH] virtio-ccw patch queue as of 2013/07/11

2013-07-11 Thread Cornelia Huck
Hi, as we have notifiers for virtio-ccw now, we can enable dataplane for virtio-blk. (This patch has been running in our internal testing for some time now and just has been redone to fit on upstream qemu.) Patch is available at git://github.com/cohuck/qemu virtio-ccw-upstr Dominik Dingel

[Qemu-devel] [PATCH] virtio-ccw: Enable x-data-plane for virtio-ccw-blk

2013-07-11 Thread Cornelia Huck
From: Dominik Dingel din...@linux.vnet.ibm.com Add property x-data-plane to virtio-ccw-blk devices. Signed-off-by: Dominik Dingel din...@linux.vnet.ibm.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x/virtio-ccw.c |3 +++ 1 file changed, 3 insertions(+) diff --git

[Qemu-devel] [PULL] virtio-ccw: Enable x-data-plane for virtio-ccw-blk

2013-07-15 Thread Cornelia Huck
From: Dominik Dingel din...@linux.vnet.ibm.com Add property x-data-plane to virtio-ccw-blk devices. Signed-off-by: Dominik Dingel din...@linux.vnet.ibm.com Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x/virtio-ccw.c |3 +++ 1 file changed, 3 insertions(+) diff --git

[Qemu-devel] [PULL] virtio-ccw: dataplane enablement

2013-07-15 Thread Cornelia Huck
The following changes since commit c3cb8e77804313e1be99b5f28a34a346736707a5: ioport: remove LITTLE_ENDIAN mark for portio (2013-07-12 14:37:47 -0500) are available in the git repository at: git://github.com/cohuck/qemu virtio-ccw-upstr for you to fetch changes up to

Re: [Qemu-devel] [PULL] virtio-ccw: dataplane enablement

2013-07-16 Thread Cornelia Huck
On Tue, 16 Jul 2013 15:10:41 +0800 Stefan Hajnoczi stefa...@gmail.com wrote: On Mon, Jul 15, 2013 at 07:15:55PM +0200, Paolo Bonzini wrote: Il 15/07/2013 18:52, Anthony Liguori ha scritto: Cornelia Huck cornelia.h...@de.ibm.com writes: The following changes since commit

[Qemu-devel] [PATCH] virtio-ccw: reset bugfix

2013-06-13 Thread Cornelia Huck
Hi, here's another virtio-ccw bugfix which makes rebooting work better here. Christian Borntraeger (1): s390/virtio-ccw: Fix virtio reset hw/s390x/virtio-ccw.c |2 ++ 1 file changed, 2 insertions(+) -- 1.7.9.5

[Qemu-devel] [PATCH] s390/virtio-ccw: Fix virtio reset

2013-06-13 Thread Cornelia Huck
From: Christian Borntraeger borntrae...@de.ibm.com On virtio reset we must reset the indicator to avoid stale interrupts, e.g. after a reset. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Cc: qemu-sta...@nongnu.org Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x

[Qemu-devel] [PATCH 3/3] virtio-ccw: Wire up guest and host notifies.

2013-06-24 Thread Cornelia Huck
Guest and host notifiers are needed by vhost. We use ioeventfds for the guest notifiers, but need to fall back on qemu injecting interrupts for the host notifiers. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x/virtio-ccw.c | 88

[Qemu-devel] [PATCH 1/3] s390/virtio-ccw: Fix virtio reset

2013-06-24 Thread Cornelia Huck
From: Christian Borntraeger borntrae...@de.ibm.com On virtio reset we must reset the indicator to avoid stale interrupts, e.g. after a reset. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Cc: qemu-sta...@nongnu.org Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x

[Qemu-devel] [PATCH 0/3] virtio-ccw patches as of 2013/06/24

2013-06-24 Thread Cornelia Huck
Hi, the following patches are currently sitting in git://github.com/cohuck/qemu virtio-ccw-upstr First, a bugfix for rebooting. Second, the wiring up of ioeventfds and enablement of notifiers. Christian Borntraeger (1): s390/virtio-ccw: Fix virtio reset Cornelia Huck (2): virtio-ccw

[Qemu-devel] [PATCH 2/3] virtio-ccw: Wire up ioeventfd.

2013-06-24 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 cornelia.h...@de.ibm.com --- hw/s390x/css.c|2 +- hw/s390x/css.h|1 + hw/s390x/virtio-ccw.c | 117

[Qemu-devel] [PULL 1/3] s390/virtio-ccw: Fix virtio reset

2013-06-25 Thread Cornelia Huck
From: Christian Borntraeger borntrae...@de.ibm.com On virtio reset we must reset the indicator to avoid stale interrupts, e.g. after a reset. Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com Cc: qemu-sta...@nongnu.org Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x

[Qemu-devel] [PULL 0/3] virtio-ccw: fix + notifiers

2013-06-25 Thread Cornelia Huck
to 320ce8503baf081725f74514d73d7bd65071a45e: virtio-ccw: Wire up guest and host notifies. (2013-06-25 17:11:12 +0200) Christian Borntraeger (1): s390/virtio-ccw: Fix virtio reset Cornelia Huck (2): virtio-ccw: Wire up ioeventfd

[Qemu-devel] [PULL 2/3] virtio-ccw: Wire up ioeventfd.

2013-06-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 cornelia.h...@de.ibm.com --- hw/s390x/css.c|2 +- hw/s390x/css.h|1 + hw/s390x/virtio-ccw.c | 117

[Qemu-devel] [PULL 3/3] virtio-ccw: Wire up guest and host notifies.

2013-06-25 Thread Cornelia Huck
Guest and host notifiers are needed by vhost. We use ioeventfds for the guest notifiers, but need to fall back on qemu injecting interrupts for the host notifiers. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x/virtio-ccw.c | 88

[Qemu-devel] [PATCH] virtio-ccw: fix build breakage on windows

2013-06-28 Thread Cornelia Huck
event_notifier_get_fd() is not available on windows hosts. Fix this by moving the calls to event_notifier_get_fd() to the kvm code. Reported-by: Stefan Weil s...@weilnetz.de Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- hw/s390x/virtio-ccw.c |6 ++ target-s390x/cpu.h

Re: [Qemu-devel] [PATCH v4 00/30] virtio: cleanup, fix hot-unplug, move to realize

2013-12-09 Thread Cornelia Huck
On Mon, 09 Dec 2013 18:57:55 +0100 Paolo Bonzini pbonz...@redhat.com wrote: Il 29/11/2013 11:17, Paolo Bonzini ha scritto: This series fixes hot-unplug of virtio devices, which can crash due to dangling pointer accesses. The current implementation supports guest-initiated hot-unplug via

[Qemu-devel] [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

[Qemu-devel] [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

[Qemu-devel] [PATCH] virtio-spec: Add virtio-ccw spec.

2012-08-07 Thread Cornelia Huck
Add specifications for the new s390 specific virtio-ccw transport. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- virtio-spec.lyx | 433 +++ 1 files changed, 433 insertions(+), 0 deletions(-) diff --git a/virtio-spec.lyx b/virtio

[Qemu-devel] [RFC PATCH] Update virtio spec for virtio-ccw.

2012-08-07 Thread Cornelia Huck
Hi, here's an update to the virtio spec describing the basics of the virtio-ccw mechanism. Cornelia Huck (1): virtio-spec: Add virtio-ccw spec. virtio-spec.lyx | 433 +++ 1 files changed, 433 insertions(+), 0 deletions(-) -- 1.7.5.4

[Qemu-devel] [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

[Qemu-devel] [PATCH 4/4] s390/kvm: Split out early console code.

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

[Qemu-devel] [PATCH 1/5] Update headers for upcoming s390 changes.

2012-08-07 Thread Cornelia Huck
Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- linux-headers/asm-s390/kvm.h | 2 +- linux-headers/asm-s390/kvm_para.h | 2 +- linux-headers/linux/kvm.h | 63 +++ 3 files changed, 65 insertions(+), 2 deletions(-) diff --git a/linux

[Qemu-devel] [PATCH 4/7] s390: Move css limits from drivers/s390/cio/ to include/asm/.

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

[Qemu-devel] [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

[Qemu-devel] [PATCH 6/7] s390/kvm: Base infrastructure for enabling capabilities.

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

[Qemu-devel] [PATCH 2/5] s390: Virtual channel subsystem support.

2012-08-07 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 cornelia.h...@de.ibm.com --- hw/s390x/Makefile.objs | 1 + hw/s390x/css.c

[Qemu-devel] [PATCH 5/5] [HACK] Handle multiple virtio aliases.

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

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

2012-08-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. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- arch/s390/include/asm/irq.h

[Qemu-devel] [PATCH 3/7] s390/kvm: In-kernel handling of I/O instructions.

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

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

2012-08-07 Thread Cornelia Huck
. 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. blockdev.c|6 +- hw

[Qemu-devel] [RFC PATCH 0/4] s390: virtio-ccw guest kernel support.

2012-08-07 Thread Cornelia Huck
. Cornelia Huck (4): s390/kvm: Handle hosts not supporting s390-virtio. s390: Add a mechanism to get the subchannel id. s390/kvm: Add a channel I/O based virtio transport driver. s390/kvm: Split out early console code. arch/s390/include/asm/ccwdev.h | 5 + arch/s390/include/asm/irq.h

[Qemu-devel] [PATCH 2/4] s390: Add a mechanism to get the subchannel id.

2012-08-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 | 10 ++ 2 files changed, 15 insertions(+) diff --git a/arch/s390/include/asm/ccwdev.h b/arch/s390

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

2012-08-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/qdev-monitor.c | 5 + hw/s390

[Qemu-devel] [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

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

2012-08-07 Thread Cornelia Huck
if it does not exist. Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- drivers/s390/kvm/kvm_virtio.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c index 47cccd5..408447c 100644 --- a/drivers/s390/kvm

Re: [Qemu-devel] [PATCH 2/5] s390: Virtual channel subsystem support.

2012-08-08 Thread Cornelia Huck
2012 IBM Corp. + * Author(s): Cornelia Huck cornelia.h...@de.ibm.com + * + * This work is licensed under the terms of the GNU GPL, version 2 or (at + * your option) any later version. See the COPYING file in the top-level + * directory. + */ + +#include qemu-thread.h +#include qemu

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

2012-08-08 Thread Cornelia Huck
+ * + * Copyright 2012 IBM Corp. + * Author(s): Cornelia Huck cornelia.h...@de.ibm.com + * + * This work is licensed under the terms of the GNU GPL, version 2 or (at + * your option) any later version. See the COPYING file in the top-level + * directory. + */ + +#include hw/hw.h

Re: [Qemu-devel] [PATCH 2/5] s390: Virtual channel subsystem support.

2012-08-08 Thread Cornelia Huck
On Wed, 8 Aug 2012 09:27:32 +0100 Peter Maydell peter.mayd...@linaro.org wrote: On 7 August 2012 15:52, Cornelia Huck cornelia.h...@de.ibm.com wrote: +static void sch_handle_clear_func(SubchDev *sch) +{ +struct pmcw *p = sch-curr_status.pmcw; +struct scsw *s = sch

Re: [Qemu-devel] [PATCH 2/5] s390: Virtual channel subsystem support.

2012-08-09 Thread Cornelia Huck
On Wed, 8 Aug 2012 19:39:33 + Blue Swirl blauwir...@gmail.com wrote: On Wed, Aug 8, 2012 at 7:34 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 8 August 2012 20:16, Blue Swirl blauwir...@gmail.com wrote: On Wed, Aug 8, 2012 at 8:17 AM, Cornelia Huck cornelia.h...@de.ibm.com

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

2012-08-09 Thread Cornelia Huck
On Wed, 8 Aug 2012 19:03:14 + Blue Swirl blauwir...@gmail.com wrote: +struct vq_info_block { +uint64_t queue; +uint16_t num; +} QEMU_PACKED; + +struct vq_config_block { +uint16_t index; +uint16_t num; +} QEMU_PACKED; Aren't these KVM structures?

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

2012-08-09 Thread Cornelia Huck
On Thu, 09 Aug 2012 13:03:57 +0300 Avi Kivity a...@redhat.com wrote: On 08/07/2012 05:52 PM, Cornelia Huck wrote: Running under a kvm host does not necessarily imply the presence of a page mapped above the main memory with the virtio information; however, the code includes a hard coded

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

2012-08-09 Thread Cornelia Huck
On Thu, 9 Aug 2012 12:34:04 +0100 Stefan Hajnoczi stefa...@gmail.com wrote: On Tue, Aug 7, 2012 at 3:52 PM, Cornelia Huck cornelia.h...@de.ibm.com wrote: Add a new virtio transport that uses channel commands to perform virtio operations. Add a new machine type s390-ccw that uses

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

2012-08-10 Thread Cornelia Huck
On Fri, 10 Aug 2012 01:09:15 +0200 Alexander Graf ag...@suse.de wrote: On 07.08.2012, at 16:52, Cornelia Huck wrote: Running under a kvm host does not necessarily imply the presence of a page mapped above the main memory with the virtio information; however, the code includes a hard

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

2012-08-10 Thread Cornelia Huck
On Fri, 10 Aug 2012 10:42:48 +0200 Heiko Carstens heiko.carst...@de.ibm.com wrote: On Thu, Aug 09, 2012 at 12:41:57PM +0200, Cornelia Huck wrote: On Thu, 09 Aug 2012 13:03:57 +0300 Avi Kivity a...@redhat.com wrote: On 08/07/2012 05:52 PM, Cornelia Huck wrote: Running under a kvm

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

2012-08-13 Thread Cornelia Huck
On Wed, 08 Aug 2012 13:52:57 +0930 Rusty Russell ru...@rustcorp.com.au wrote: On Tue, 7 Aug 2012 16:52:47 +0200, Cornelia Huck cornelia.h...@de.ibm.com wrote: Add a driver for kvm guests that matches virtual ccw devices provided by the host as virtio bridge devices. Hi Cornelia

Re: [Qemu-devel] [PATCH 2/4] s390: Add a mechanism to get the subchannel id.

2012-08-14 Thread Cornelia Huck
On Tue, 14 Aug 2012 10:52:09 +0200 (CEST) Sebastian Ott seb...@linux.vnet.ibm.com wrote: On Tue, 7 Aug 2012, Cornelia Huck wrote: +/** + * ccw_device_get_schid - obtain a subchannel id + * @cdev: device to obtain the id for + * @schid: where to fill in the values + */ +void

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

2012-08-14 Thread Cornelia Huck
On Tue, 14 Aug 2012 09:40:01 +0930 Rusty Russell ru...@rustcorp.com.au wrote: On Mon, 13 Aug 2012 10:56:38 +0200, Cornelia Huck cornelia.h...@de.ibm.com wrote: On Wed, 08 Aug 2012 13:52:57 +0930 Rusty Russell ru...@rustcorp.com.au wrote: On Tue, 7 Aug 2012 16:52:47 +0200, Cornelia

Re: [Qemu-devel] [PATCH 5/6 v5] deal with guest panicked event accoring to -onpanic parameter

2012-06-27 Thread Cornelia Huck
On Wed, 27 Jun 2012 15:02:23 +0800 Wen Congyang we...@cn.fujitsu.com wrote: When the guest is panicked, it will write 0x1 to the port KVM_PV_PORT. So if qemu reads 0x1 from this port, we can do the folloing three things according to the parameter -onpanic: 1. emit QEVENT_GUEST_PANICKED only

Re: [Qemu-devel] [PATCH] kvm: Move kvm_allows_irq0_override() to target-i386

2012-07-23 Thread Cornelia Huck
On Sat, 21 Jul 2012 15:16:56 +0200 Jan Kiszka jan.kis...@web.de wrote: On 2012-07-21 14:57, Peter Maydell wrote: On 21 July 2012 13:35, Jan Kiszka jan.kis...@web.de wrote: On 2012-07-21 14:17, Peter Maydell wrote: You still haven't really explained why we can't just ignore irqfd for now.

Re: [Qemu-devel] [PATCH] kvm: Move kvm_allows_irq0_override() to target-i386

2012-07-23 Thread Cornelia Huck
On Mon, 23 Jul 2012 15:18:49 +0300 Avi Kivity a...@redhat.com wrote: So, for example, if a specific subchannel (=device) has pending status and an I/O interrupt is to be generated, this interrupt remains pending until an arbitrary cpu is enabled for I/O interrupts. If several cpus are

Re: [Qemu-devel] [PATCH] kvm: Move kvm_allows_irq0_override() to target-i386

2012-07-23 Thread Cornelia Huck
On Mon, 23 Jul 2012 16:14:02 +0300 Avi Kivity a...@redhat.com wrote: On 07/23/2012 04:06 PM, Cornelia Huck wrote: On Mon, 23 Jul 2012 15:18:49 +0300 Avi Kivity a...@redhat.com wrote: So, for example, if a specific subchannel (=device) has pending status and an I/O interrupt

Re: [Qemu-devel] [PATCH] kvm: Move kvm_allows_irq0_override() to target-i386

2012-07-23 Thread Cornelia Huck
On Mon, 23 Jul 2012 17:27:47 +0300 Avi Kivity a...@redhat.com wrote: On 07/23/2012 04:55 PM, Cornelia Huck wrote: Basically, we have some flags in our control block we can set so that the cpu drops out of SIE whenever external/I/O/... interrupts are enabled and then have the host do

[Qemu-devel] [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=kvmm=134435141402140w=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

[Qemu-devel] [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 cornelia.h...@de.ibm.com --- Changes v1-v2: - update to virtio-ccw

[Qemu-devel] [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 cornelia.h...@de.ibm.com --- Changes v1-v2: - adapt

[Qemu-devel] [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 cornelia.h...@de.ibm.com --- Changes v1 - v2: - coding style - re-organization of hardware

[Qemu-devel] [PATCH v2 4/7] s390: Move css limits from drivers/s390/cio/ to include/asm/.

2012-09-04 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

[Qemu-devel] [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 cornelia.h...@de.ibm.com --- Changes v1-v2: - support more than 32 feature bits - allow to allocate less than requested queue size - allow to transfer alignment --- virtio-spec.lyx | 534

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

2012-09-04 Thread Cornelia Huck
-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. blockdev.c

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

2012-09-04 Thread Cornelia Huck
this :) Cornelia Huck (1): virtio-spec: Add virtio-ccw spec. virtio-spec.lyx | 534 +++ 1 files changed, 534 insertions(+), 0 deletions(-) -- 1.7.5.4

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

2012-09-04 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

[Qemu-devel] [PATCH v2 3/7] s390/kvm: In-kernel handling of I/O instructions.

2012-09-04 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. 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

[Qemu-devel] [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

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

[Qemu-devel] [RFC PATCH v2 0/7] s390: virtual css host support.

2012-09-04 Thread Cornelia Huck
introduced. 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 from drivers/s390/cio/ to include/asm/. s390: Make some css-related structures usable by non-cio code

[Qemu-devel] [PATCH v2 6/7] s390/kvm: Base infrastructure for enabling capabilities.

2012-09-04 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

  1   2   3   4   5   6   7   8   9   10   >