]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Allow migration to be cancelled at prepare phase
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 8 Nov 2012 13:49:55 +0000 (14:49 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 12 Nov 2012 09:39:39 +0000 (10:39 +0100)
commitab5e7d4977afd68b63406c82b6220c5b998e73cc
tree84d800bd8a23cee63a53183bad8125e33abea3de
parentb1c88c14764e0b043a269d454a83a6ac7af34eac
qemu: Allow migration to be cancelled at prepare phase

Currently, if user calls virDomainAbortJob we just issue
'migrate_cancel' and hope for the best. However, if user calls
the API in wrong phase when migration hasn't been started yet
(perform phase) the cancel request is just ignored. With this
patch, the request is remembered and as soon as perform phase
starts, migration is cancelled.
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c