]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_migration: Introduce qemuMigrationDriveMirror
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Nov 2012 14:42:51 +0000 (15:42 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Sat, 23 Feb 2013 07:42:54 +0000 (08:42 +0100)
commit7b7600b3e6734117b3db39ba5c31ae33a40fb5bb
treee73ace0c24a445d884f303854f92519d983bb48f
parent86d90b3abd0afcadd60c76020d50665a07b9a0df
qemu_migration: Introduce qemuMigrationDriveMirror

This function does the source part of NBD magic. It
invokes drive-mirror on each non shared and RW disk with
a source and wait till the mirroring process completes.
When it does we can proceed with migration.

Currently, an active waiting is done: every 500ms libvirt
asks qemu if block-job is finished or not.  However, once
the job finishes, qemu doesn't report its progress so we
can only assume if the job finished successfully or not.
The better solution would be to listen to the event which
is sent as soon as the job finishes. The event does
contain the result of job.
src/qemu/qemu_migration.c