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)
commit3d95c7d2d7cb9a1f47e9a46473413844c6245c15
tree5435ed2e09932747484887738d85bad89bcb64a3
parent3526a66b66e3a997fb7d77af2f65dbdd77d2556e
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