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
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
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
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
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
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:
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
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
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
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
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
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/
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
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
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
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
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
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
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
&
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
>
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
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
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
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
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
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
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)
> > +{
> > +
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
> >
> >
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
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,
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
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
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
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
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 |
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
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 |
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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
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
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
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
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
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
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
.
- 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
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
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
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
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;
> > +
> >
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
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
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
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
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
401 - 500 of 671 matches
Mail list logo