]> git.proxmox.com Git - mirror_qemu.git/commit - migration/migration.c
postcopy: Recover block devices on early failure
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 2 Feb 2017 15:59:09 +0000 (15:59 +0000)
committerJuan Quintela <quintela@redhat.com>
Mon, 6 Feb 2017 12:36:49 +0000 (13:36 +0100)
commitef8d6488d2767fe81bb4bb9bcdc52af5ff718b56
treefe58764b604fbbc6d44157c424f9f393e9330378
parent328d4d85282e7d62f89f5b0547a493d9cd07cea0
postcopy: Recover block devices on early failure

An early postcopy failure can be recovered from as long as we know
we haven't sent the command to run the destination.
We have to undo the bdrv_inactivate_all by calling
bdrv_invalidate_cache_all

Note that I'm not using ms->block_inactive because once we've
sent the postcopy package we dont want anything else to try
and recover the block storage on the source; the destination
might have started writing to it.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20170202155909.31784-3-dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c