]> git.proxmox.com Git - mirror_qemu.git/commit
migration: Take reference to migration state around bg_migration_vm_start_bh
authorFabiano Rosas <farosas@suse.de>
Fri, 19 Jan 2024 23:39:19 +0000 (20:39 -0300)
committerPeter Xu <peterx@redhat.com>
Mon, 29 Jan 2024 03:02:12 +0000 (11:02 +0800)
commit59094cfa7aa3bcca85cf5ab2110431124da24d84
tree0df4354b91269e560a430f29d99847eab10e03c6
parent27eb8499edb2bc952c29ddae0bdac9fc959bf7b1
migration: Take reference to migration state around bg_migration_vm_start_bh

We need to hold a reference to the current_migration object around
async calls to avoid it been freed while still in use.

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