Patchwork [V2,5/7] migration: clear BDRV_O_INCOMING flags on end of incoming live migration

login
register
mail settings
Submitter Benoit Canet
Date March 21, 2012, 3:52 p.m.
Message ID <1332345124-381-6-git-send-email-benoit.canet@gmail.com>
Download mbox | patch
Permalink /patch/148037/
State New
Headers show

Comments

Benoit Canet - March 21, 2012, 3:52 p.m.
Signed-off-by: BenoƮt Canet <benoit.canet@gmail.com>
---
 migration.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/migration.c b/migration.c
index 8c119ba..94f7839 100644
--- a/migration.c
+++ b/migration.c
@@ -91,6 +91,7 @@  void process_incoming_migration(QEMUFile *f)
     qemu_announce_self();
     DPRINTF("successfully loaded vm state\n");
 
+    bdrv_clear_incoming_migration_all();
     /* Make sure all file formats flush their mutable metadata */
     bdrv_invalidate_cache_all();