]> xenbits.xensource.com Git - libvirt.git/commit
qemu_migration: Store original migration params in status XML
authorJiri Denemark <jdenemar@redhat.com>
Tue, 19 Jul 2022 11:48:44 +0000 (13:48 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 26 Jul 2022 08:09:00 +0000 (10:09 +0200)
commitc7238941357f0d2e94524cf8c5ad7d9c82dcf2f9
tree0ea442e9c274851f51c10eea8b6297c5616afdb9
parent32b9d4390e6b5c4da23d76a8b824816dcb4695f2
qemu_migration: Store original migration params in status XML

We keep original values of migration parameters so that we can restore
them at the end of migration to make sure later migration does not use
some random values. However, this does not really work when libvirt
daemon is restarted on the source host because we failed to explicitly
save the status XML after getting the migration parameters from QEMU.
Actually it might work if the status XML is written later for some other
reason such as domain state change, but that's not how it should work.

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.c