projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2be2762
)
kvm: flush the dirty log when unregistering a slot
author
Avi Kivity
<avi@redhat.com>
Sun, 15 Jan 2012 14:13:59 +0000
(16:13 +0200)
committer
Avi Kivity
<avi@redhat.com>
Sun, 15 Jan 2012 14:13:59 +0000
(16:13 +0200)
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>
kvm-all.c
patch
|
blob
|
blame
|
history
diff --git
a/kvm-all.c
b/kvm-all.c
index 3174f42a371bed602594f149eb694d6da01cee45..2cc45629212f1f12c69703b96aeca9b5dca40437 100644
(file)
--- 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);
This page took
0.026704 seconds
and
4
git commands to generate.