Revert "migration: Don't activate block devices if using -S"
This reverts commit 0746a92612
.
Discussion with kwolf suggests this is actually an API change that
we need to gate on a capability. Push to 2.13.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
df6378eb0e
commit
a18a73d747
@ -306,21 +306,13 @@ static void process_incoming_migration_bh(void *opaque)
|
|||||||
Error *local_err = NULL;
|
Error *local_err = NULL;
|
||||||
MigrationIncomingState *mis = opaque;
|
MigrationIncomingState *mis = opaque;
|
||||||
|
|
||||||
/* Only fire up the block code now if we're going to restart the
|
/* Make sure all file formats flush their mutable metadata.
|
||||||
* VM, else 'cont' will do it.
|
* If we get an error here, just don't restart the VM yet. */
|
||||||
* This causes file locking to happen; so we don't want it to happen
|
bdrv_invalidate_cache_all(&local_err);
|
||||||
* unless we really are starting the VM.
|
if (local_err) {
|
||||||
*/
|
error_report_err(local_err);
|
||||||
if (autostart && (!global_state_received() ||
|
local_err = NULL;
|
||||||
global_state_get_runstate() == RUN_STATE_RUNNING)) {
|
autostart = false;
|
||||||
/* Make sure all file formats flush their mutable metadata.
|
|
||||||
* If we get an error here, just don't restart the VM yet. */
|
|
||||||
bdrv_invalidate_cache_all(&local_err);
|
|
||||||
if (local_err) {
|
|
||||||
error_report_err(local_err);
|
|
||||||
local_err = NULL;
|
|
||||||
autostart = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user