KVM: s390: Fix problem state handling in guest sigp handler
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 17 Nov 2008 13:50:35 +0000 (14:50 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 23 Nov 2008 12:34:39 +0000 (14:34 +0200)
commit3eb77d5116d78cce5b9fa9eb19d012bc636116b6
tree45d8ef487464702a2b2c12f8edf08c9f79d3caf6
parented313489badef16d700f5a3be50e8fd8f8294bc8
KVM: s390: Fix problem state handling in guest sigp handler

We can get an exit for instructions starting with 0xae, even if the guest is
in userspace. Lets make sure, that the signal processor handler is only called
in guest supervisor mode. Otherwise, send a program check.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/s390/kvm/sigp.c