KVM: s390: introduce kvm_s390_vcpu_{start,stop}
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Fri, 14 Mar 2014 09:59:29 +0000 (10:59 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 29 Apr 2014 13:01:54 +0000 (15:01 +0200)
commit6852d7b69b4949234c3a8ae1f279f6a4c6563662
tree1fc932ccffef93c90918d435b1269b4f2e76a053
parente45efa28e578758d3c5ef0d7d3f88aadb9a61515
KVM: s390: introduce kvm_s390_vcpu_{start,stop}

This patch introduces two new functions to set/clear the CPUSTAT_STOPPED bit and
makes use of it at all applicable places. These functions prepare the additional
execution of code when starting/stopping a vcpu.

The CPUSTAT_STOPPED bit should not be touched outside of these functions.

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/diag.c
arch/s390/kvm/intercept.c
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
arch/s390/kvm/trace-s390.h