]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_migration_params: Refactor qemuMigrationParamsReset
authorJiri Denemark <jdenemar@redhat.com>
Thu, 21 Jul 2022 14:49:09 +0000 (16:49 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 26 Jul 2022 08:09:01 +0000 (10:09 +0200)
commitc47f1abb81194461377a0c608a7ecd87f9ce9146
tree66acfb631e2a26be331a8401486f8db128ce89e7
parentc0824fd03802085db698c10fe62c98cc95a57941
qemu_migration_params: Refactor qemuMigrationParamsReset

Because qemuMigrationParamsReset used to call qemuMigrationParamsApply
for resetting migration capabilities and parameters, it did not work
well since commit v5.1.0-83-ga1dec315c9 which only allowed capabilities
to be set from an async job. However, when reconnecting to running
domains after daemon restart we do not have an async job. Thus the
capabilities were not properly reset in case the daemon was restarted
during an ongoing migration. We need to avoid calling
qemuMigrationParamsApply to make sure both parameters and capabilities
can be reset by a normal job.

https://bugzilla.redhat.com/show_bug.cgi?id=2107892

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_migration_params.c