qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] kvmclock: clarify usage of cpu_clean_all_dirty


From: Marcelo Tosatti
Subject: [Qemu-devel] [PATCH] kvmclock: clarify usage of cpu_clean_all_dirty
Date: Tue, 16 Sep 2014 12:14:37 -0300
User-agent: Mutt/1.5.21 (2010-09-15)

Explain the cpu_clean_all_dirty call.

Signed-off-by: Marcelo Tosatti <address@hidden>

---
 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) {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]