Skip to content

Commit

Permalink
migration: Fix migration state update issue
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Juan Quintela <[email protected]>
Reviewed-by: Dr.David Alan Gilbert <[email protected]>
Signed-off-by: Juan Quintela <[email protected]>
  • Loading branch information
Liang Li authored and Juan Quintela committed May 7, 2015
1 parent 27ff42e commit 362ba4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 362ba4e

Please sign in to comment.