Stop/start cpus before/after devices
commit59c9666e3986442e0997c97ffac0dfbdcf5d8323
authorYaniv Kamay <yaniv@qumranet.com>
Tue, 24 Mar 2009 17:16:52 +0000 (24 14:16 -0300)
committerAvi Kivity <avi@redhat.com>
Wed, 25 Mar 2009 14:51:30 +0000 (25 16:51 +0200)
treefebf12d10b1391cfd24fccf61f50b0a6c95d839c
parent046d43ba20311d2f8a6f9b5441b94f0d9ac470c4
Stop/start cpus before/after devices

Stop cpus before devices when stopping the VM, start cpus after devices
when starting VM.  Otherwise a vcpu could access a stopped device.

Acked-by: Dor Laor <dlaor@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu-kvm.c
qemu-kvm.h
vl.c