diff options
author | Juan Quintela | 2017-03-14 18:01:38 +0100 |
---|---|---|
committer | Juan Quintela | 2017-04-21 12:25:37 +0200 |
commit | 42d219d3b0211c00432c04658dc22da66785f062 (patch) | |
tree | fbc64a702f26f1eaf9e8dca8e048a7673eac26d6 /migration/ram.c | |
parent | ram: Move src_page_req* to RAMState (diff) | |
download | qemu-42d219d3b0211c00432c04658dc22da66785f062.tar.gz qemu-42d219d3b0211c00432c04658dc22da66785f062.tar.xz qemu-42d219d3b0211c00432c04658dc22da66785f062.zip |
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>
Diffstat (limited to 'migration/ram.c')
-rw-r--r-- | migration/ram.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/migration/ram.c b/migration/ram.c index be26d0c1af..1580617b38 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -271,6 +271,11 @@ uint64_t ram_bytes_remaining(void) return ram_state.migration_dirty_pages * TARGET_PAGE_SIZE; } +uint64_t ram_dirty_sync_count(void) +{ + return ram_state.bitmap_sync_count; +} + /* used by the search for pages to send */ struct PageSearchStatus { /* Current block being searched */ @@ -727,7 +732,6 @@ static void migration_bitmap_sync(RAMState *rs) rs->time_last_bitmap_sync = end_time; rs->num_dirty_pages_period = 0; } - s->dirty_sync_count = rs->bitmap_sync_count; if (migrate_use_events()) { qapi_event_send_migration_pass(rs->bitmap_sync_count, NULL); } |