]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: correctly handle injection of pgm irqs and per events
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 4 May 2015 10:38:48 +0000 (12:38 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 13 Oct 2015 13:50:34 +0000 (15:50 +0200)
commit2f5a74556b4db5f0547278e36f5e924eba9eb437
treef67f8367b2c17e22d26e8a5617f868a1f9b1d81d
parentcd98286e552f8bae0e220afcfa31418cae70d4f8
KVM: s390: correctly handle injection of pgm irqs and per events

PER events can always co-exist with other program interrupts.

For now, we always overwrite all program interrupt parameters when
injecting any type of program interrupt.

Let's handle that correctly by only overwriting the relevant portion of
the program interrupt parameters. Therefore we can now inject PER events
and ordinary program interrupts concurrently, resulting in no loss of
program interrupts. This will especially by helpful when manually detecting
PER events later - as both types might be triggered during one SIE exit.

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/interrupt.c