]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Send migrate_cancel when aborting migration
authorJiri Denemark <jdenemar@redhat.com>
Thu, 22 May 2014 10:29:20 +0000 (12:29 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 23 May 2014 07:05:44 +0000 (09:05 +0200)
commite27d28970fb1eaaa3c34f75081bf3ca706abacda
treebbac90938849c00dbffb1ab6cc20186192ebdf13
parent7bdc7702f31ac9123e1ec9787368a8fbfe365496
qemu: Send migrate_cancel when aborting migration

When QEMU reports failed or cancelled migration, we don't need to send
it migrate_cancel QMP command. But in all other error paths, such as if
we detect broken connection to a destination daemon or something else
happens inside libvirt, we need to explicitly send migrate_cancel
command instead of relying on the migration to be implicitly cancelled
when destination QEMU is killed.

Because we were not doing so, one could end up with a paused domain
after failed migration.

https://bugzilla.redhat.com/show_bug.cgi?id=1098833
src/qemu/qemu_migration.c