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)
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

Simple merge
Simple merge