]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: trigger the right CPU exit for floating interrupts
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 21 Nov 2014 08:38:12 +0000 (09:38 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 28 Nov 2014 11:33:00 +0000 (12:33 +0100)
commitfa48600bab91b70a5d7ca5b2e765e43359c39c4f
tree1aa1aa6d02b5440e4d277dcc96f6528ea6e7e9be
parent562174bf96ed15fcdad23ec8d0a4600ce7870dd4
KVM: s390: trigger the right CPU exit for floating interrupts

When injecting a floating interrupt and no CPU is idle we
kick one CPU to do an external exit. In case of I/O we
should trigger an I/O exit instead. This does not matter
for Linux guests as external and I/O interrupts are
enabled/disabled at the same time, but play safe anyway.

The same holds true for machine checks. Since there is no
special exit, just reuse the generic stop exit. The injection
code inside the VCPU loop will recheck anyway and rearm the
proper exits (e.g. control registers) if necessary.

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