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
This commit is contained in:
parent
8690e42010
commit
29203dcf31
2
vl.c
2
vl.c
@ -3623,6 +3623,8 @@ void qemu_system_reset(void)
|
|||||||
for(re = first_reset_entry; re != NULL; re = re->next) {
|
for(re = first_reset_entry; re != NULL; re = re->next) {
|
||||||
re->func(re->opaque);
|
re->func(re->opaque);
|
||||||
}
|
}
|
||||||
|
if (kvm_enabled())
|
||||||
|
kvm_sync_vcpus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void qemu_system_reset_request(void)
|
void qemu_system_reset_request(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user