diff options
author | Juan Quintela <quintela@redhat.com> | 2017-03-14 18:20:30 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2017-04-21 12:25:38 +0200 |
commit | 47ad861976d8490047c53d5a80b562776f3c951b (patch) | |
tree | 0a2e183f707019153fca373e6b8ed484018c3232 /include/migration | |
parent | abbf1d7f9bb43ba5fac7a9c27b67d9a78749e67a (diff) |
ram: Move dirty_pages_rate to RAMState
Treat it like the rest of ram stats counters. Export its value the
same way. As an added bonus, no more MigrationState used in
migration_bitmap_sync();
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
--
Again, dave was the one reviewing it
Diffstat (limited to 'include/migration')
-rw-r--r-- | include/migration/migration.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/migration/migration.h b/include/migration/migration.h index e185d13c9c..c4e3d4274f 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -154,7 +154,6 @@ struct MigrationState int64_t total_time; int64_t downtime; int64_t expected_downtime; - int64_t dirty_pages_rate; bool enabled_capabilities[MIGRATION_CAPABILITY__MAX]; int64_t xbzrle_cache_size; int64_t setup_time; @@ -254,6 +253,7 @@ uint64_t ram_bytes_remaining(void); uint64_t ram_bytes_transferred(void); uint64_t ram_bytes_total(void); uint64_t ram_dirty_sync_count(void); +uint64_t ram_dirty_pages_rate(void); void free_xbzrle_decoded_buf(void); void acct_update_position(QEMUFile *f, size_t size, bool zero); |