KVM: s390: Check for PSTATE when handling DIAGNOSE
authorThomas Huth <thuth@linux.vnet.ibm.com>
Thu, 20 Jun 2013 15:22:02 +0000 (17:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Jun 2013 21:31:59 +0000 (23:31 +0200)
commit93e1750f5ee8417e015bcb0bf2c37bf07b5ff647
treea2743482703df5d2a4e29b31bf74ae119328d8cf
parent5087dfa6c8b9f7893819f315eb24201ff5c07142
KVM: s390: Check for PSTATE when handling DIAGNOSE

DIAGNOSE is a privileged instruction and thus we must make sure that we are
in supervisor mode before taking any other actions.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/s390/kvm/diag.c