summaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/kvm-s390.h
diff options
context:
space:
mode:
authorThomas Huth <thuth@linux.vnet.ibm.com>2014-04-17 09:10:40 +0200
committerChristian Borntraeger <borntraeger@de.ibm.com>2014-05-16 14:57:18 +0200
commita3fb577e481d64dc757f506e19685603bbf3db42 (patch)
tree6075885e3d1f29a42e1afd9da01c2fe9da1b18c3 /arch/s390/kvm/kvm-s390.h
parent3a801517ad49f586f2016e1b1321e6cd28a97a04 (diff)
downloadop-kernel-dev-a3fb577e481d64dc757f506e19685603bbf3db42.zip
op-kernel-dev-a3fb577e481d64dc757f506e19685603bbf3db42.tar.gz
KVM: s390: Improve is_valid_psw()
As a program status word is also invalid (and thus generates an specification exception) if the instruction address is not even, we should test this in is_valid_psw(), too. This patch also exports the function so that it becomes available for other parts of the S390 KVM code as well. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.h')
-rw-r--r--arch/s390/kvm/kvm-s390.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.h b/arch/s390/kvm/kvm-s390.h
index c28423a..38b589d 100644
--- a/arch/s390/kvm/kvm-s390.h
+++ b/arch/s390/kvm/kvm-s390.h
@@ -142,6 +142,7 @@ void kvm_s390_reinject_io_int(struct kvm *kvm,
int kvm_s390_mask_adapter(struct kvm *kvm, unsigned int id, bool masked);
/* implemented in priv.c */
+int is_valid_psw(psw_t *psw);
int kvm_s390_handle_b2(struct kvm_vcpu *vcpu);
int kvm_s390_handle_e5(struct kvm_vcpu *vcpu);
int kvm_s390_handle_01(struct kvm_vcpu *vcpu);
OpenPOWER on IntegriCloud