diff options
author | Juan Quintela | 2017-03-14 18:41:03 +0100 |
---|---|---|
committer | Juan Quintela | 2017-04-21 12:25:38 +0200 |
commit | 96506894a316bdb86ce9b78e906bc8ffb9697d5e (patch) | |
tree | d6c5d47de11303a23d57f4c82e2c645974008296 /include | |
parent | ram: Move dirty_pages_rate to RAMState (diff) | |
download | qemu-96506894a316bdb86ce9b78e906bc8ffb9697d5e.tar.gz qemu-96506894a316bdb86ce9b78e906bc8ffb9697d5e.tar.xz qemu-96506894a316bdb86ce9b78e906bc8ffb9697d5e.zip |
ram: Move postcopy_requests into RAMState
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/migration/migration.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/migration/migration.h b/include/migration/migration.h index c4e3d4274f..357eaa0786 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -157,8 +157,6 @@ struct MigrationState bool enabled_capabilities[MIGRATION_CAPABILITY__MAX]; int64_t xbzrle_cache_size; int64_t setup_time; - /* Count of requests incoming from destination */ - int64_t postcopy_requests; /* Flag set once the migration has been asked to enter postcopy */ bool start_postcopy; @@ -254,6 +252,7 @@ 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); +uint64_t ram_postcopy_requests(void); void free_xbzrle_decoded_buf(void); void acct_update_position(QEMUFile *f, size_t size, bool zero); @@ -356,8 +355,7 @@ int global_state_store(void); void global_state_store_running(void); void migration_page_queue_free(void); -int ram_save_queue_pages(MigrationState *ms, const char *rbname, - ram_addr_t start, ram_addr_t len); +int ram_save_queue_pages(const char *rbname, ram_addr_t start, ram_addr_t len); uint64_t ram_pagesize_summary(void); PostcopyState postcopy_state_get(void); |