]> git.proxmox.com Git - mirror_qemu.git/commit
migration: Reference migration state around loadvm_postcopy_handle_run_bh
authorFabiano Rosas <farosas@suse.de>
Fri, 19 Jan 2024 23:39:20 +0000 (20:39 -0300)
committerPeter Xu <peterx@redhat.com>
Mon, 29 Jan 2024 03:02:12 +0000 (11:02 +0800)
commit9cf268965dba03b718c514adc06c2a5d444778e1
treeaaaa41e0c2e8d10b288e1a536335800a7f4c7108
parent59094cfa7aa3bcca85cf5ab2110431124da24d84
migration: Reference migration state around loadvm_postcopy_handle_run_bh

We need to hold a reference to the current_migration object around
async calls to avoid it been freed while still in use. Even on this
load-side function, we might still use the MigrationState, e.g to
check for capabilities.

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