aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2024-06-19 18:30:36 -0400
committerFabiano Rosas <farosas@suse.de>2024-06-21 09:47:59 -0300
commit637280aeb242517ede480aa2d5ba1c29d41eac11 (patch)
tree3374a6b203af5d3eb9cb9fc1451210184cb754d8
parent31a5a3032eb3d62e045e18c80658e5e8f5341cda (diff)
downloadqemu-637280aeb242517ede480aa2d5ba1c29d41eac11.zip
qemu-637280aeb242517ede480aa2d5ba1c29d41eac11.tar.gz
qemu-637280aeb242517ede480aa2d5ba1c29d41eac11.tar.bz2
migration/multifd: Avoid the final FLUSH in complete()
We always do the flush when finishing one round of scan, and during complete() phase we should scan one more round making sure no dirty page existed. In that case we shouldn't need one explicit FLUSH at the end of complete(), as when reaching there all pages should have been flushed. Reviewed-by: Fabiano Rosas <farosas@suse.de> Tested-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Peter Xu <peterx@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de>
-rw-r--r--migration/ram.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/migration/ram.c b/migration/ram.c
index ceea586..edec1a2 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -3300,10 +3300,6 @@ static int ram_save_complete(QEMUFile *f, void *opaque)
}
}
- if (migrate_multifd() && !migrate_multifd_flush_after_each_section() &&
- !migrate_mapped_ram()) {
- qemu_put_be64(f, RAM_SAVE_FLAG_MULTIFD_FLUSH);
- }
qemu_put_be64(f, RAM_SAVE_FLAG_EOS);
return qemu_fflush(f);
}