Explain the cpu_clean_all_dirty call. Signed-off-by: Marcelo Tosatti <mtosa...@redhat.com>
--- hw/i386/kvm/clock.c | 4 ++++ 1 file changed, 4 insertions(+) Index: qemu/hw/i386/kvm/clock.c =================================================================== --- qemu.orig/hw/i386/kvm/clock.c 2014-09-16 12:12:00.622537799 -0300 +++ qemu/hw/i386/kvm/clock.c 2014-09-16 12:12:44.696555868 -0300 @@ -127,6 +127,10 @@ } cpu_synchronize_all_states(); + /* + * Make sure that CPU state is synchronized from KVM + * once every VM state change callback has finished. + */ cpu_clean_all_dirty(); ret = kvm_vm_ioctl(kvm_state, KVM_GET_CLOCK, &data); if (ret < 0) {