]> git.proxmox.com Git - qemu.git/commitdiff
Add migration_end function
authorOrit Wasserman <owasserm@redhat.com>
Tue, 19 Jun 2012 15:43:17 +0000 (18:43 +0300)
committerJuan Quintela <quintela@redhat.com>
Fri, 29 Jun 2012 11:27:28 +0000 (13:27 +0200)
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
arch_init.c

index 78b3c0c100d0e228ad89ea2d644f169dc9906a5c..f10692873e4e0dda8a38ff799b44fff6d6ecd5c4 100644 (file)
@@ -304,6 +304,11 @@ static void sort_ram_list(void)
     g_free(blocks);
 }
 
+static void migration_end(void)
+{
+    memory_global_dirty_log_stop();
+}
+
 int ram_save_live(QEMUFile *f, int stage, void *opaque)
 {
     ram_addr_t addr;
@@ -313,7 +318,7 @@ int ram_save_live(QEMUFile *f, int stage, void *opaque)
     int ret;
 
     if (stage < 0) {
-        memory_global_dirty_log_stop();
+        migration_end();
         return 0;
     }