diff options
author | Juan Quintela | 2017-03-20 22:12:40 +0100 |
---|---|---|
committer | Juan Quintela | 2017-04-21 12:25:37 +0200 |
commit | ec481c6c576fbac6c4b5a7a5874e313882a49a09 (patch) | |
tree | 6045053988db35d8c8e61a97c55c239bae8eb01a /include | |
parent | ram: Move last_req_rb to RAMState (diff) | |
download | qemu-ec481c6c576fbac6c4b5a7a5874e313882a49a09.tar.gz qemu-ec481c6c576fbac6c4b5a7a5874e313882a49a09.tar.xz qemu-ec481c6c576fbac6c4b5a7a5874e313882a49a09.zip |
ram: Move src_page_req* to RAMState
This are the last postcopy fields still at MigrationState. Once there
Move MigrationSrcPageRequest to ram.c and remove MigrationState
parameters where appropiate.
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 | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/include/migration/migration.h b/include/migration/migration.h index 0f7557383b..084d195125 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -128,18 +128,6 @@ struct MigrationIncomingState { MigrationIncomingState *migration_incoming_get_current(void); void migration_incoming_state_destroy(void); -/* - * An outstanding page request, on the source, having been received - * and queued - */ -struct MigrationSrcPageRequest { - RAMBlock *rb; - hwaddr offset; - hwaddr len; - - QSIMPLEQ_ENTRY(MigrationSrcPageRequest) next_req; -}; - struct MigrationState { size_t bytes_xfer; @@ -186,9 +174,6 @@ struct MigrationState /* Flag set once the migration thread called bdrv_inactivate_all */ bool block_inactive; - /* Queue of outstanding page requests from the destination */ - QemuMutex src_page_req_mutex; - QSIMPLEQ_HEAD(src_page_requests, MigrationSrcPageRequest) src_page_requests; /* The semaphore is used to notify COLO thread that failover is finished */ QemuSemaphore colo_exit_sem; @@ -371,7 +356,7 @@ void savevm_skip_configuration(void); int global_state_store(void); void global_state_store_running(void); -void migration_page_queue_free(MigrationState *ms); +void migration_page_queue_free(void); int ram_save_queue_pages(MigrationState *ms, const char *rbname, ram_addr_t start, ram_addr_t len); uint64_t ram_pagesize_summary(void); |