[RFC 0/2] KVM: s390: add floating irq controller

2013-07-26 Thread Jens Freimann
allow to inject all kinds of interrupts, e.g. some data for program interrupts and machine check interruptions were missing. * Patch 2 adds a kvm_device which supports getting/setting currently pending floating interrupts as well as deleting all currently pending interrupts Jens Freimann (2

[RFC 1/2] KVM: s390: add and extend interrupt information data structs

2013-07-26 Thread Jens Freimann
With the currently available struct kvm_s390_interrupt it is not possible to inject all kinds of interrupts as defined in the z/Architecture. Add interruption parameters to the structures to make sure we can inject all kinds of interrupts and move it to kvm.h Signed-off-by: Jens Freimann

[RFC 2/2] KVM: s390: add floating irq controller

2013-07-26 Thread Jens Freimann
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 floating interrupts. Signed-off-by: Jens Freimann --- arch/s390/include/uapi/asm

[PATCH 1/2] KVM: s390: add and extend interrupt information data structs

2013-07-29 Thread Jens Freimann
With the currently available struct kvm_s390_interrupt it is not possible to inject all kinds of interrupts as defined in the z/Architecture. Add interruption parameters to the structures to make sure we can inject all kinds of interrupts and move it to kvm.h Signed-off-by: Jens Freimann

[PATCH 0/2] KVM: s390: add floating irq controller

2013-07-29 Thread Jens Freimann
interrupts, e.g. some data for program interrupts and machine check interruptions were missing. * Patch 2 adds a kvm_device which supports getting/setting currently pending floating interrupts as well as deleting all currently pending interrupts Jens Freimann (2): KVM: s390: add and extend

[PATCH 2/2] KVM: s390: add floating irq controller

2013-07-29 Thread Jens Freimann
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 floating interrupts. Signed-off-by: Jens Freimann --- arch/s390/include/uapi/asm

[PATCH v2 1/2] KVM: s390: add and extend interrupt information data structs

2013-09-06 Thread Jens Freimann
With the currently available struct kvm_s390_interrupt it is not possible to inject every kind of interrupt as defined in the z/Architecture. Add additional interruption parameters to the structures and move it to kvm.h Signed-off-by: Jens Freimann Reviewed-by: Cornelia Huck --- arch/s390

[PATCH 1/2] linux-headers: update for s390 floating interrupt controller

2013-09-06 Thread Jens Freimann
Add symbols required for the s390 floating interrupt controller (flic) Signed-off-by: Jens Freimann --- linux-headers/asm-s390/kvm.h | 5 linux-headers/linux/kvm.h| 65 2 files changed, 70 insertions(+) diff --git a/linux-headers/asm-s390

[PATCH 0/2] s390x/kvm: implement floating interrupt controller

2013-09-06 Thread Jens Freimann
upstream Jens Freimann (2): linux-headers: update for s390 floating interrupt controller s390x/kvm: implement floating-interrupt controller device default-configs/s390x-softmmu.mak | 1 + hw/intc/Makefile.objs | 1 + hw/intc/s390_flic.c | 164

[PATCH v2 2/2] KVM: s390: add floating irq controller

2013-09-06 Thread Jens Freimann
This patch adds a floating irq controller as a kvm_device. It will be necessary for migration of floating interrupts as well as for hardening the reset code by allowing user space to explicitly remove all pending floating interrupts. Signed-off-by: Jens Freimann Reviewed-by: Cornelia Huck

[PATCH v2 0/2] KVM: s390: add floating irq controller

2013-09-06 Thread Jens Freimann
kind of interrupt, e.g. some data for program interrupts and machine check interruptions were missing. * Patch 2/2 adds a kvm_device which supports getting/setting currently pending floating interrupts as well as deleting all currently pending interrupts Jens Freimann (2): KVM: s390: add

[PATCH 2/2] s390x/kvm: implement floating-interrupt controller device

2013-09-06 Thread Jens Freimann
-off-by: Jens Freimann Reviewed-by: Thomas Huth --- default-configs/s390x-softmmu.mak | 1 + hw/intc/Makefile.objs | 1 + hw/intc/s390_flic.c | 164 ++ hw/s390x/s390-virtio-ccw.c| 8 +- hw/s390x/s390-virtio.c

Re: [Qemu-devel] [PATCH 1/2] linux-headers: update for s390 floating interrupt controller

2013-09-09 Thread Jens Freimann
On Fri, Sep 06, 2013 at 01:23:32PM +0100, Peter Maydell wrote: > On 6 September 2013 13:19, Jens Freimann wrote: > > Add symbols required for the s390 floating interrupt controller (flic) > > Updates to linux-headers should be the result of a sync > against a specified mainli

Re: [Qemu-devel] [PATCH 1/2] linux-headers: update for s390 floating interrupt controller

2013-09-09 Thread Jens Freimann
On Fri, Sep 06, 2013 at 01:32:52PM +0100, Peter Maydell wrote: > On 6 September 2013 13:19, Jens Freimann wrote: > > @@ -839,6 +903,7 @@ struct kvm_device_attr { > > #define KVM_DEV_TYPE_FSL_MPIC_20 1 > > #define KVM_DEV_TYPE_FSL_MPIC_42 2 > >

Re: [GIT PULL 09/11] KVM: s390: add bitmap for handling cpu-local interrupts

2014-12-01 Thread Jens Freimann
Excerpts from Paolo Bonzini's message of 2014-11-28 18:18:53 +0100: > > On 28/11/2014 14:25, Christian Borntraeger wrote: > > > > +struct kvm_s390_irq_payload { > > +struct kvm_s390_io_info io; > > +struct kvm_s390_ext_info ext; > > +struct kvm_s390_pgm_info pgm; > > +struct kvm_

Re: [GIT PULL 05/11] KVM: s390: refactor interrupt injection code

2014-12-01 Thread Jens Freimann
Excerpts from Paolo Bonzini's message of 2014-11-28 18:16:03 +0100: > > On 28/11/2014 14:25, Christian Borntraeger wrote: > > > > +static int __inject_prog_irq(struct kvm_vcpu *vcpu, > > + struct kvm_s390_interrupt_info *inti) > > +{ > > Why the __s? :) I used the __s here to s

Re: [GIT PULL 10/11] KVM: s390: handle pending local interrupts via bitmap

2014-12-01 Thread Jens Freimann
Excerpts from Heiko Carstens's message of 2014-12-01 09:19:16 +0100: > On Fri, Nov 28, 2014 at 02:25:38PM +0100, Christian Borntraeger wrote: > > +static int __must_check __deliver_mchk_floating(struct kvm_vcpu *vcpu, > > + struct kvm_s390_interrupt_info *inti) > > +{ > > +

Re: [GIT PULL 09/11] KVM: s390: add bitmap for handling cpu-local interrupts

2014-12-01 Thread Jens Freimann
Excerpts from Christian Borntraeger's message of 2014-11-29 22:05:10 +0100: > Am 28.11.2014 um 18:18 schrieb Paolo Bonzini: > > > > > > On 28/11/2014 14:25, Christian Borntraeger wrote: > >> > >> +struct kvm_s390_irq_payload { > >> +struct kvm_s390_io_info io; > >> +struct kvm_s390_ext_

Re: [PATCH v2 2/2] KVM: s390: add floating irq controller

2013-10-08 Thread Jens Freimann
On Sat, Oct 05, 2013 at 01:53:33AM +0200, Alexander Graf wrote: > > On 06.09.2013, at 14:19, Jens Freimann wrote: > [snip] > > -int kvm_s390_inject_vm(struct kvm *kvm, > > - struct kvm_s390_interrupt *s390int) > > +static void __inject

Re: [Patchv5 2/7] KVM: s390: add floating irq controller

2013-10-14 Thread Jens Freimann
On Sun, Oct 13, 2013 at 11:39:55AM +0300, Gleb Natapov wrote: > On Tue, Oct 08, 2013 at 04:54:55PM +0200, Christian Borntraeger wrote: > > From: Jens Freimann > > > > This patch adds a floating irq controller as a kvm_device. > > It will be necessary for migration of

Re: [Patchv5 2/7] KVM: s390: add floating irq controller

2013-10-14 Thread Jens Freimann
On Mon, Oct 14, 2013 at 12:07:24PM +0300, Gleb Natapov wrote: > On Mon, Oct 14, 2013 at 10:28:57AM +0200, Jens Freimann wrote: > > On Sun, Oct 13, 2013 at 11:39:55AM +0300, Gleb Natapov wrote: > > > On Tue, Oct 08, 2013 at 04:54:55PM +0200, Christian Borntraeger wrote: > >