]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: a VCPU may only stop when no interrupts are left pending
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 5 Aug 2014 15:40:47 +0000 (17:40 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 23 Jan 2015 12:25:34 +0000 (13:25 +0100)
commit5f92583ab6b1879bd07c32a97decfbe642a7cfcd
treef73884c87fe971a52c6f6966a20d8be695f13486
parent1d23e6eba34b9e8d2273576728b6b26d8b974d34
KVM: s390: a VCPU may only stop when no interrupts are left pending

As a SIGP STOP is an interrupt with the least priority, it may only result
in stop of the vcpu when no other interrupts are left pending.

To detect whether a non-stop irq is pending, we need a way to mask out
stop irqs from the general kvm_cpu_has_interrupt() function. For this
reason, the existing function (with an outdated name) is replaced by
kvm_s390_vcpu_has_irq() which allows to mask out pending stop irqs.

Acked-by: Cornelia Huck <cornelia.huck@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/intercept.c
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h