mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
ram: Create ram_dirty_sync_count()
This is a ram field that was inside MigrationState. Move it to RAMState and make it the same that the other ram stats. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
parent
ec481c6c57
commit
42d219d3b0
3 changed files with 7 additions and 4 deletions
|
@ -656,7 +656,7 @@ static void populate_ram_info(MigrationInfo *info, MigrationState *s)
|
|||
info->ram->normal_bytes = norm_mig_pages_transferred() *
|
||||
(1ul << qemu_target_page_bits());
|
||||
info->ram->mbps = s->mbps;
|
||||
info->ram->dirty_sync_count = s->dirty_sync_count;
|
||||
info->ram->dirty_sync_count = ram_dirty_sync_count();
|
||||
info->ram->postcopy_requests = s->postcopy_requests;
|
||||
|
||||
if (s->state != MIGRATION_STATUS_COMPLETED) {
|
||||
|
@ -1120,7 +1120,6 @@ MigrationState *migrate_init(const MigrationParams *params)
|
|||
s->dirty_pages_rate = 0;
|
||||
s->dirty_bytes_rate = 0;
|
||||
s->setup_time = 0;
|
||||
s->dirty_sync_count = 0;
|
||||
s->start_postcopy = false;
|
||||
s->postcopy_after_devices = false;
|
||||
s->postcopy_requests = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue