]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Avoid false failure when resuming post-copy migration
authorJiri Denemark <jdenemar@redhat.com>
Thu, 8 Aug 2024 11:02:08 +0000 (13:02 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 8 Aug 2024 14:27:13 +0000 (16:27 +0200)
commit11f6773f198636b80e73fb3f69adc83554860172
tree64345c6822d1130d50c0f885da50d39d960599d7
parent79e0b50bb64ff6b78b897cb08c4ce0b1f02a1c92
qemu: Avoid false failure when resuming post-copy migration

Depending on timing between QEMU and libvirt an attempt to resume failed
post-copy migration could immediately report a failure in post-copy
phase again even though the migration actually resumed and is
progressing just fine.

This is caused by QEMU reporting the original migration state (i.e.,
postcopy-paused) until migration is successfully resumed and QEMU
switches to postcopy-active. QEMU 9.1 introduced a new
postcopy-recover-setup migration state which is entered immediately
after requesting migration to be resumed and we can reliably wait for
the migration to either continue or fail without being confused by the
old state.

https://issues.redhat.com/browse/RHEL-22166

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