aboutsummaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-17 14:26:17 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-17 14:26:17 +0000
commit29203dcf3172d66863b7c5618c5df72e153078a6 (patch)
tree45b2c78ff2108faa742b55acdc0093f50404f5a0 /vl.c
parent8690e42010a645dfede7779be2d3013bfc453966 (diff)
kvm: Sync CPU state on reset (Jan Kiszka)
Make sure KVM gets informed about the reset CPU state. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7135 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index b69843937..7e92d55f3 100644
--- a/vl.c
+++ b/vl.c
@@ -3623,6 +3623,8 @@ void qemu_system_reset(void)
for(re = first_reset_entry; re != NULL; re = re->next) {
re->func(re->opaque);
}
+ if (kvm_enabled())
+ kvm_sync_vcpus();
}
void qemu_system_reset_request(void)