Add migration_end function

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
This commit is contained in:
Orit Wasserman 2012-06-19 18:43:17 +03:00 committed by Juan Quintela
parent 3a697f697b
commit 8e21cd3200
1 changed files with 6 additions and 1 deletions

View 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;
}