mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
migration: sync all address spaces
Migrating a VM during reboot sometimes results in differences between the source and destination in the SMRAM area. This is because migration_bitmap_sync() only fetches from KVM the dirty log of address_space_memory. SMRAM memory slots are ignored and the modifications to SMRAM are not sent to the destination. Reported-by: He Rongguang <herongguang.he@huawei.com> Reviewed-by: He Rongguang <herongguang.he@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
cc9d8a3b2c
commit
9c1f8f4493
3 changed files with 37 additions and 18 deletions
|
@ -626,7 +626,7 @@ static void migration_bitmap_sync(void)
|
|||
}
|
||||
|
||||
trace_migration_bitmap_sync_start();
|
||||
address_space_sync_dirty_bitmap(&address_space_memory);
|
||||
memory_global_dirty_log_sync();
|
||||
|
||||
qemu_mutex_lock(&migration_bitmap_mutex);
|
||||
rcu_read_lock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue