KVM: s390: Improve is_valid_psw()
authorThomas Huth <thuth@linux.vnet.ibm.com>
Thu, 17 Apr 2014 07:10:40 +0000 (09:10 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 16 May 2014 12:57:18 +0000 (14:57 +0200)
commita3fb577e481d64dc757f506e19685603bbf3db42
tree6075885e3d1f29a42e1afd9da01c2fe9da1b18c3
parent3a801517ad49f586f2016e1b1321e6cd28a97a04
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>
arch/s390/kvm/kvm-s390.h
arch/s390/kvm/priv.c
This page took 0.024477 seconds and 5 git commands to generate.