[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 5/6] kvm-all: Sync dirty-bitmap from kvm before kvm d
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 5/6] kvm-all: Sync dirty-bitmap from kvm before kvm destroy the corresponding dirty_bitmap |
Date: |
Thu, 2 Apr 2015 16:21:30 +0200 |
From: zhanghailiang <address@hidden>
Sometimes, we destroy the dirty_bitmap in kvm_memory_slot before any sync action
occur, this bit in dirty_bitmap will be missed, and which will lead the
corresponding
dirty pages to be missed in migration.
This usually happens when do migration during VM's Start-up or Reboot.
Signed-off-by: zhanghailiang <address@hidden>
[Use s->migration_log instead of exec.c's in_migration. - Paolo]
Signed-off-by: Paolo Bonzini <address@hidden>
---
kvm-all.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kvm-all.c b/kvm-all.c
index 335438a..dd44f8c 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -715,7 +715,7 @@ static void kvm_set_phys_mem(MemoryRegionSection *section,
bool add)
old = *mem;
- if (mem->flags & KVM_MEM_LOG_DIRTY_PAGES) {
+ if ((mem->flags & KVM_MEM_LOG_DIRTY_PAGES) || s->migration_log) {
kvm_physical_sync_dirty_bitmap(section);
}
--
2.3.4
- [Qemu-devel] [PULL 0/6] More changes for QEMU 2.3.0-rc2, Paolo Bonzini, 2015/04/02
- [Qemu-devel] [PULL 1/6] target-i386: save 64-bit CR3 in 64-bit SMM state save area, Paolo Bonzini, 2015/04/02
- [Qemu-devel] [PULL 2/6] qga: fitering out -fstack-protector-strong, Paolo Bonzini, 2015/04/02
- [Qemu-devel] [PULL 4/6] util/qemu-config: fix regression of qmp_query_command_line_options, Paolo Bonzini, 2015/04/02
- [Qemu-devel] [PULL 3/6] target-i386: clear bsp bit when designating bsp, Paolo Bonzini, 2015/04/02
- [Qemu-devel] [PULL 6/6] Use $(MAKE) for recursive make, Paolo Bonzini, 2015/04/02
- [Qemu-devel] [PULL 5/6] kvm-all: Sync dirty-bitmap from kvm before kvm destroy the corresponding dirty_bitmap,
Paolo Bonzini <=
- Re: [Qemu-devel] [PULL 0/6] More changes for QEMU 2.3.0-rc2, Peter Maydell, 2015/04/02