KVM: s390: move finalization of SIGP STOP orders to kvm_s390_vcpu_stop
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 14 Apr 2014 10:40:03 +0000 (12:40 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 10 Jul 2014 12:09:44 +0000 (14:09 +0200)
commit32f5ff63ff9c87195d06896e6ab4086b6369546a
treef58d782380f402e03dcac5bbbe92776437a0052a
parent7dfc63cf977447e09b1072911c22564f900fc578
KVM: s390: move finalization of SIGP STOP orders to kvm_s390_vcpu_stop

Let's move the finalization of SIGP STOP and SIGP STOP AND STORE STATUS orders to
the point where the VCPU is actually stopped.

This change is needed to prepare for a user space driven VCPU state change. The
action_bits may only be cleared when setting the cpu state to STOPPED while
holding the local irq lock.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/intercept.c
arch/s390/kvm/kvm-s390.c