• M
    qemu_migration: Introduce qemuMigrationDriveMirror · 7b7600b3
    Michal Privoznik 提交于
    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.
    7b7600b3
qemu_migration.c 139.9 KB