From: Liang Li Date: Thu, 7 May 2015 18:31:22 +0000 (+0800) Subject: migration: Fix migration state update issue X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=362ba4e3ee801e8f5e28d72d0009547384222927;p=qemu.git migration: Fix migration state update issue If live migration is very fast and can be completed in 1 second, the dirty_sync_count of MigrationState will not be updated. Then you will see "dirty sync count: 0" in qemu monitor even if the actual dirty sync count is not 0. Signed-off-by: Liang Li Reviewed-by: Juan Quintela Reviewed-by: Dr.David Alan Gilbert Signed-off-by: Juan Quintela --- diff --git a/arch_init.c b/arch_init.c index bbf0031019..23d3feba44 100644 --- a/arch_init.c +++ b/arch_init.c @@ -744,8 +744,8 @@ static void migration_bitmap_sync(void) s->dirty_bytes_rate = s->dirty_pages_rate * TARGET_PAGE_SIZE; start_time = end_time; num_dirty_pages_period = 0; - s->dirty_sync_count = bitmap_sync_count; } + s->dirty_sync_count = bitmap_sync_count; } /**