From: Liang Li <liang.z...@intel.com> 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 <liang.z...@intel.com> Reviewed-by: Juan Quintela <quint...@redhat.com> Reviewed-by: Dr.David Alan Gilbert <dgilb...@redhat.com> Signed-off-by: Juan Quintela <quint...@redhat.com> --- arch_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch_init.c b/arch_init.c index 13423e3..3f75a62 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; } /** -- 2.4.0