]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: Introduce postcopy incoming setup and cleanup functions
authorJuraj Marcin <jmarcin@redhat.com>
Mon, 3 Nov 2025 18:32:53 +0000 (19:32 +0100)
committerPeter Xu <peterx@redhat.com>
Mon, 3 Nov 2025 21:04:10 +0000 (16:04 -0500)
commit67474ebacce381e51fa3e9c71af37b68faf4860a
treed5ae5c6363455b0cff302c4e1cd01f8f5ca9599a
parentc9aac1ae106e58be1c4f714793ee9170f91c5e7d
migration: Introduce postcopy incoming setup and cleanup functions

After moving postcopy_ram_listen_thread() to postcopy file, this patch
introduces a pair of functions, postcopy_incoming_setup() and
postcopy_incoming_cleanup(). These functions encapsulate setup and
cleanup of all incoming postcopy resources, postcopy-ram and postcopy
listen thread.

Furthermore, this patch also renames the postcopy_ram_listen_thread to
postcopy_listen_thread, as this thread handles not only postcopy-ram,
but also dirty-bitmaps and in the future it could handle other
postcopiable devices.

Signed-off-by: Juraj Marcin <jmarcin@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20251103183301.3840862-5-jmarcin@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/migration.c
migration/postcopy-ram.c
migration/postcopy-ram.h
migration/savevm.c