]> git.proxmox.com Git - mirror_qemu.git/commit
migration: Don't activate block devices if using -S
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 16 Apr 2018 17:09:30 +0000 (18:09 +0100)
committerJuan Quintela <quintela@redhat.com>
Mon, 4 Jun 2018 03:46:15 +0000 (05:46 +0200)
commit0f073f44df109ea0910d67caede70dec95956ff6
tree6f519df95f4f8f982fb81def32752746948fb8e2
parentb895de502717b83b4e5f089df617cb23530c4d2d
migration: Don't activate block devices if using -S

Activating the block devices causes the locks to be taken on
the backing file.  If we're running with -S and the destination libvirt
hasn't started the destination with 'cont', it's expecting the locks are
still untaken.

Don't activate the block devices if we're not going to autostart the VM;
'cont' already will do that anyway.   This change is tied to the new
migration capability 'late-block-activate' that defaults to off, keeping
the old behaviour by default.

bz: https://bugzilla.redhat.com/show_bug.cgi?id=1560854
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c
qapi/migration.json