]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: s390: Fix problem state check for b2 intercepts
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 22 Jan 2009 09:28:29 +0000 (10:28 +0100)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:03:07 +0000 (11:03 +0200)
commit70455a36a073cbb83ca17f92d135a6128c73cb3c
treeccc7b13f17703d9823ecb5967d09a99665d81f57
parent2c411b48af3e3c534b9cfb6a79be1df384d1ca1a
KVM: s390: Fix problem state check for b2 intercepts

The kernel handles some priviledged instruction exits. While I was
unable to trigger such an exit from guest userspace, the code should
check for supervisor state before emulating a priviledged instruction.

I also renamed kvm_s390_handle_priv to kvm_s390_handle_b2. After all
there are non priviledged b2 instructions like stck (store clock).

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