Commit 29203dcf3172d66863b7c5618c5df72e153078a6

Authored by aliguori
1 parent 8690e420

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
Showing 1 changed file with 2 additions and 0 deletions
... ... @@ -3623,6 +3623,8 @@ void qemu_system_reset(void)
3623 3623 for(re = first_reset_entry; re != NULL; re = re->next) {
3624 3624 re->func(re->opaque);
3625 3625 }
  3626 + if (kvm_enabled())
  3627 + kvm_sync_vcpus();
3626 3628 }
3627 3629  
3628 3630 void qemu_system_reset_request(void)
... ...