diff options
author | 2024-02-02 18:28:38 +0800 | |
---|---|---|
committer | 2024-02-05 14:42:10 +0800 | |
commit | 836eca47f62f9f6d5b8e9b6fedfc3539775c4e2e (patch) | |
tree | 6ed29ec2518c52d43950696fed172e2eb716fc56 /scripts/qapi/source.py | |
parent | migration/multifd: Drop MultiFDSendParams.quit, cleanup error paths (diff) | |
download | qemu-836eca47f62f9f6d5b8e9b6fedfc3539775c4e2e.tar.xz qemu-836eca47f62f9f6d5b8e9b6fedfc3539775c4e2e.zip |
migration/multifd: Postpone reset of MultiFDPages_t
Now we reset MultiFDPages_t object in the multifd sender thread in the
middle of the sending job. That's not necessary, because the "*pages"
struct will not be reused anyway until pending_job is cleared.
Move that to the end after the job is completed, provide a helper to reset
a "*pages" object. Use that same helper when free the object too.
This prepares us to keep using p->pages in the follow up patches, where we
may drop p->normal[].
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240202102857.110210-5-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions