mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
migration: Make dirty_sync_count atomic
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
parent
296a4ac2aa
commit
536b5a4e56
3 changed files with 10 additions and 8 deletions
|
@ -1148,7 +1148,8 @@ static void populate_ram_info(MigrationInfo *info, MigrationState *s)
|
|||
info->ram->normal = stat64_get(&ram_counters.normal);
|
||||
info->ram->normal_bytes = info->ram->normal * page_size;
|
||||
info->ram->mbps = s->mbps;
|
||||
info->ram->dirty_sync_count = ram_counters.dirty_sync_count;
|
||||
info->ram->dirty_sync_count =
|
||||
stat64_get(&ram_counters.dirty_sync_count);
|
||||
info->ram->dirty_sync_missed_zero_copy =
|
||||
stat64_get(&ram_counters.dirty_sync_missed_zero_copy);
|
||||
info->ram->postcopy_requests = ram_counters.postcopy_requests;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue