mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
migration/multifd: Unify RAM_SAVE_FLAG_MULTIFD_FLUSH messages
RAM_SAVE_FLAG_MULTIFD_FLUSH message should always be correlated to a sync request on src. Unify such message into one place, and conditionally send the message only if necessary. Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20241206224755.1108686-5-peterx@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
parent
604b4749c5
commit
e5f14aa5fe
3 changed files with 30 additions and 17 deletions
|
@ -354,7 +354,7 @@ static inline uint32_t multifd_ram_page_count(void)
|
|||
|
||||
void multifd_ram_save_setup(void);
|
||||
void multifd_ram_save_cleanup(void);
|
||||
int multifd_ram_flush_and_sync(void);
|
||||
int multifd_ram_flush_and_sync(QEMUFile *f);
|
||||
size_t multifd_ram_payload_size(void);
|
||||
void multifd_ram_fill_packet(MultiFDSendParams *p);
|
||||
int multifd_ram_unfill_packet(MultiFDRecvParams *p, Error **errp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue