diff options
author | Liang Li | 2015-05-07 20:31:22 +0200 |
---|---|---|
committer | Juan Quintela | 2015-05-07 18:31:54 +0200 |
commit | 362ba4e3ee801e8f5e28d72d0009547384222927 (patch) | |
tree | 84678cfdd3692484aeb59375e002bb9f32bef10a /arch_init.c | |
parent | migration: avoid divide by zero in xbzrle cache miss rate (diff) | |
download | qemu-362ba4e3ee801e8f5e28d72d0009547384222927.tar.gz qemu-362ba4e3ee801e8f5e28d72d0009547384222927.tar.xz qemu-362ba4e3ee801e8f5e28d72d0009547384222927.zip |
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 <liang.z.li@intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr.David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'arch_init.c')
-rw-r--r-- | arch_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } /** |