mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:17 +00:00
migration: Don't sync volatile memory after migration completes
Syncing volatile memory provides no benefit, instead it can cause performance issues in some cases. Only sync memory that is marked as non-volatile after migration completes on destination. Signed-off-by: Ben Chaney <bchaney@akamai.com> Fixes:bd108a44bc(migration: ram: Switch to ram block writeback) Link: https://lore.kernel.org/r/1CC43F59-336F-4A12-84AD-DB89E0A17A95@akamai.com Signed-off-by: Peter Xu <peterx@redhat.com> (cherry picked from commit983899eab4) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
committed by
Michael Tokarev
parent
5e1f406424
commit
94ab5f6743
@@ -3930,7 +3930,9 @@ static int ram_load_cleanup(void *opaque)
|
||||
RAMBlock *rb;
|
||||
|
||||
RAMBLOCK_FOREACH_NOT_IGNORED(rb) {
|
||||
qemu_ram_block_writeback(rb);
|
||||
if (memory_region_is_nonvolatile(rb->mr)) {
|
||||
qemu_ram_block_writeback(rb);
|
||||
}
|
||||
}
|
||||
|
||||
xbzrle_load_cleanup();
|
||||
|
||||
Reference in New Issue
Block a user