summaryrefslogtreecommitdiffstats
path: root/include/migration
diff options
context:
space:
mode:
authorJuan Quintela2017-03-14 18:20:30 +0100
committerJuan Quintela2017-04-21 12:25:38 +0200
commit47ad861976d8490047c53d5a80b562776f3c951b (patch)
tree0a2e183f707019153fca373e6b8ed484018c3232 /include/migration
parentram: Remove dirty_bytes_rate (diff)
downloadqemu-47ad861976d8490047c53d5a80b562776f3c951b.tar.gz
qemu-47ad861976d8490047c53d5a80b562776f3c951b.tar.xz
qemu-47ad861976d8490047c53d5a80b562776f3c951b.zip
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.h2
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);