]> git.proxmox.com Git - mirror_qemu.git/commit - block/mirror.c
mirror: implement completion
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Oct 2012 14:49:25 +0000 (16:49 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 24 Oct 2012 08:26:22 +0000 (10:26 +0200)
commitd63ffd87acad618a4a64b8812b64ad88577ae9b1
tree20851882dcdbfb9be3eb00681ec9721ff555dd29
parentd9b902db3fb71fdcdfbb2aa9cc94a410dee864e5
mirror: implement completion

Switching to the target of the migration is done mostly asynchronously,
and reported to management via the BLOCK_JOB_COMPLETED event; the only
synchronous phase is opening the backing files.  bdrv_open_backing_file
can always be done, even for migration of the full image (aka sync:
'full').  In this case, qmp_drive_mirror will create the target disk
with no backing file at all, and bdrv_open_backing_file will be a no-op.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/mirror.c