]> xenbits.xensource.com Git - libvirt.git/commit
qemu_migration: Properly wait for migration to be canceled
authorJiri Denemark <jdenemar@redhat.com>
Tue, 11 Oct 2022 12:00:13 +0000 (14:00 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 24 Oct 2022 13:28:47 +0000 (15:28 +0200)
commit4dd86f334bc3c9679865176f588597cf99375330
tree8b42fb805d2d11fc296ad1ed819fb8e49b09fea3
parente49313b54ed2a149c71f9073659222742ff3ffb0
qemu_migration: Properly wait for migration to be canceled

In my commit v8.7.0-57-g2d7b22b561 I attempted to make
qemuMigrationSrcCancel synchronous, but failed. When we are canceling
migration after some kind of error which is detected in
in qemuMigrationSrcWaitForCompletion, jobData->status will be set to
VIR_DOMAIN_JOB_STATUS_FAILED regardless on QEMU state. So instead of
relying on the translated jobData->status in qemuMigrationSrcIsCanceled
we need to check the migration status we get from QEMU MIGRATION event.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c