qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] kvmclock: clarify usage of cpu_clean_all_dirty
@ 2014-09-16 15:14 Marcelo Tosatti
  2014-09-16 15:42 ` Paolo Bonzini
  0 siblings, 1 reply; 10+ messages in thread
From: Marcelo Tosatti @ 2014-09-16 15:14 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel


Explain the cpu_clean_all_dirty call.

Signed-off-by: Marcelo Tosatti <mtosatti@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) {

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-09-16 18:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-16 15:14 [Qemu-devel] [PATCH] kvmclock: clarify usage of cpu_clean_all_dirty Marcelo Tosatti
2014-09-16 15:42 ` Paolo Bonzini
2014-09-16 15:55   ` Marcelo Tosatti
2014-09-16 16:03     ` Paolo Bonzini
2014-09-16 16:07       ` Marcelo Tosatti
2014-09-16 16:22         ` Paolo Bonzini
2014-09-16 16:48           ` Marcelo Tosatti
2014-09-16 16:54             ` Marcelo Tosatti
2014-09-16 18:10           ` Marcelo Tosatti
2014-09-16 16:03   ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).