qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot
@ 2012-01-15 14:17 Avi Kivity
  2012-01-15 14:26 ` Jan Kiszka
  2012-01-17 11:25 ` Marcelo Tosatti
  0 siblings, 2 replies; 10+ messages in thread
From: Avi Kivity @ 2012-01-15 14:17 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Marcelo Tosatti, qemu-devel, kvm

Otherwise, the dirty log information is lost in the kernel forever.

Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.

Signed-off-by: Avi Kivity <avi@redhat.com>
---

This patch gives me a deja vu - I'm sure I've fixed exactly the same issue
before.

Please test.

 kvm-all.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/kvm-all.c b/kvm-all.c
index 3174f42..2cc4562 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -566,6 +566,10 @@ static void kvm_set_phys_mem(MemoryRegionSection *section, bool add)
 
         old = *mem;
 
+        if (mem->flags & KVM_MEM_LOG_DIRTY_PAGES) {
+            kvm_physical_sync_dirty_bitmap(section);
+        }
+
         /* unregister the overlapping slot */
         mem->memory_size = 0;
         err = kvm_set_user_memory_region(s, mem);
-- 
1.7.7.1

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

end of thread, other threads:[~2012-01-29 10:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-15 14:17 [Qemu-devel] [PATCH] kvm: flush the dirty log when unregistering a slot Avi Kivity
2012-01-15 14:26 ` Jan Kiszka
2012-01-15 14:40   ` Gerhard Wiesinger
2012-01-15 17:01     ` Avi Kivity
2012-01-25 20:15       ` Gerhard Wiesinger
2012-01-26 12:29         ` Avi Kivity
2012-01-27  6:50           ` Gerhard Wiesinger
2012-01-29 10:15             ` Avi Kivity
2012-01-17 11:25 ` Marcelo Tosatti
2012-01-17 12:28   ` Jan Kiszka

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