]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: sigp: move target cpu checks into dispatcher
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Wed, 19 Mar 2014 15:59:39 +0000 (16:59 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 28 Oct 2014 12:09:12 +0000 (13:09 +0100)
commitae0d43dee3f0c2d420a0d0444fe4bc2be4959e63
tree5435ed2e09932747484887738d85bad89bcb64a3
parent485837e2bd1c55049f8909c23bb1ac4689d9ff7c
KVM: s390: sigp: move target cpu checks into dispatcher

All sigp orders targeting one VCPU have to verify that the target is valid and
available.

Let's move the check from the single functions to the dispatcher. The
destination VCPU is directly passed as a pointer - instead of the cpu address of
the target.

Please note that all SIGP orders except SIGP SET ARCHITECTURE - even unknown
ones - will now check for the availability of the target VCPU. This is what the
architecture documentation specifies.

Signed-off-by: David Hildenbrand <dahi@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