KVM: s390: Fixed CC of SIGP SET_PREFIX handler
authorThomas Huth <thuth@linux.vnet.ibm.com>
Mon, 27 Jan 2014 11:06:19 +0000 (12:06 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 4 Mar 2014 09:41:02 +0000 (10:41 +0100)
commit13b191ae4afc0c29a5cd768f521ede5c72a608cb
tree9782e29f87e54962a458644cccbada51eb2b786c
parentff520a6327e83ef55515d1be3d0a1b10c084f59c
KVM: s390: Fixed CC of SIGP SET_PREFIX handler

When SIGP SET_PREFIX is called with an illegal CPU id, it must return
the condition code 3 ("not operational") instead of 1. Also fixed the
order in which the checks are done - CC3 has a higher priority than CC1.
And while we're at it, this patch also get rid of the floating interrupt
lock here by using kvm_get_vcpu() to get the local_int struct of the
destination CPU.

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/sigp.c