diff options
author | Orit Wasserman <owasserm@redhat.com> | 2012-06-19 18:43:17 +0300 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2012-06-29 13:27:28 +0200 |
commit | 8e21cd32005f6be7475349eaeadde8d4ec8cf2e4 (patch) | |
tree | ae2661e245e05e845fd7b6ec2e21fbb42a773e12 /arch_init.c | |
parent | 3a697f697b611923d04598105859103d8b27a933 (diff) |
Add migration_end function
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Diffstat (limited to 'arch_init.c')
-rw-r--r-- | arch_init.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch_init.c b/arch_init.c index 78b3c0c100..f10692873e 100644 --- a/arch_init.c +++ b/arch_init.c @@ -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; } |