]> git.proxmox.com Git - mirror_qemu.git/commit
migration: Centralize BH creation and dispatch
authorFabiano Rosas <farosas@suse.de>
Fri, 19 Jan 2024 23:39:22 +0000 (20:39 -0300)
committerPeter Xu <peterx@redhat.com>
Mon, 29 Jan 2024 03:02:12 +0000 (11:02 +0800)
commit44d0d456d7c40c2f8900b958c01c1a2ef6acf302
tree1e070e2c61878e26ed1cf5df77051ba99810f364
parent699d9476a065881117004def5c052fbed21f862b
migration: Centralize BH creation and dispatch

Now that the migration state reference counting is correct, further
wrap the bottom half dispatch process to avoid future issues.

Move BH creation and scheduling together and wrap the dispatch with an
intermediary function that will ensure we always keep the ref/unref
balanced.

Also move the responsibility of deleting the BH into the wrapper and
remove the now unnecessary pointers.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240119233922.32588-6-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/migration.c
migration/migration.h
migration/savevm.c