]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8aae0d2b1199e388e720e4d2e9ae29189532b96
tree9782e29f87e54962a458644cccbada51eb2b786c
parent3536058661ffd68c94487a01ff260b85f897ebed
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