Fix for kvm dirty logging
kvm dirty logging is broken in the presence of memory slots being removed; this breaks opensuse's boot screen. Following patch fixes:
git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/urgent
Avi Kivity (1):
kvm: flush the dirty log when unregistering a slot
kvm-all.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
kvm-all.c +0 -0
@@ -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);Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 4 lines · Avi Kivity
kvm dirty logging is broken in the presence of memory slots being removed; this breaks opensuse's boot screen. Following patch fixes:
git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.gitmemory/urgent
Pulled. Thanks.
Regards,
Anthony Liguori
Quoted 24 lines
Avi Kivity (1):
kvm: flush the dirty log when unregistering a slotkvm-all.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)kvm-all.c +4
-0@@ -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);