]> xenbits.xensource.com Git - libvirt.git/commit
qemu: migration: use sync block job helpers
authorMichael Chapman <mike@very.puzzling.org>
Thu, 16 Apr 2015 09:24:23 +0000 (19:24 +1000)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 29 Apr 2015 11:11:42 +0000 (13:11 +0200)
commit99725f946c18af0d0df2453f776207bbaa3de770
treec2e63498a04c66598c24a4ab623af6b3b6586744
parent1e106fee577c39b626e15dc577b9cc33ef1faed1
qemu: migration: use sync block job helpers

In qemuMigrationDriveMirror we can start all disk mirrors in parallel.
We wait until they are all ready, or one of them aborts.

In qemuMigrationCancelDriveMirror, we wait until all mirrors are
properly stopped. This is necessary to ensure that destination VM is
fully in sync with the (paused) source VM.

If a drive mirror can not be cancelled, then the destination is not in a
consistent state. In this case it is not safe to continue with the
migration.

Signed-off-by: Michael Chapman <mike@very.puzzling.org>
src/qemu/qemu_migration.c