mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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
This commit is contained in:
parent
abbf1d7f9b
commit
47ad861976
3 changed files with 13 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue