multifd: Only flush once each full round of memory
commit294e5a4034e81b3d8db03b4e0f691386f20d6ed3
authorJuan Quintela <quintela@redhat.com>
Tue, 21 Jun 2022 11:36:11 +0000 (21 13:36 +0200)
committerJuan Quintela <quintela@redhat.com>
Thu, 27 Apr 2023 14:37:28 +0000 (27 16:37 +0200)
treeccec176a73a3d282ff3cb459dac5a59f40f456e9
parentb05292c237030343516d073b1a1e5f49ffc017a8
multifd: Only flush once each full round of memory

We need to add a new flag to mean to flush at that point.
Notice that we still flush at the end of setup and at the end of
complete stages.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Acked-by: Peter Xu <peterx@redhat.com>
---

Add missing qemu_fflush(), now it passes all tests always.
In the previous version, the check that changes the default value to
false got lost in some rebase.  Get it back.
migration/migration.h
migration/options.c
migration/ram.c