KVM: s390: do store status after handling STOP_ON_STOP bit
authorJens Freimann <jfrei@linux.vnet.ibm.com>
Mon, 6 Feb 2012 09:59:03 +0000 (10:59 +0100)
committerAvi Kivity <avi@redhat.com>
Thu, 8 Mar 2012 12:10:14 +0000 (14:10 +0200)
commit9e0d5473e2f0ba2d2fe9dab9408edef3060b710e
tree3ca883cc0c44a68480f691e1c62e3a51f7732ce2
parent851755871c1f3184f4124c466e85881f17fa3226
KVM: s390: do store status after handling STOP_ON_STOP bit

In handle_stop() handle the stop bit before doing the store status as
described for "Stop and Store Status" in the Principles of Operation.
We have to give up the local_int.lock before calling kvm store status
since it calls gmap_fault() which might sleep. Since local_int.lock
only protects local_int.* and not guest memory we can give up the lock.

Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/s390/kvm/intercept.c