diff options
author | Juan Quintela <quintela@redhat.com> | 2017-04-24 16:50:35 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2017-05-17 12:04:59 +0200 |
commit | bac3b21218925006e1f7d3cae564afb1e9aeb8ee (patch) | |
tree | d29fbb49c997df06a1068944fdd185659de42e92 /migration/migration.c | |
parent | aa3544c371748fdc2c012c2aaeeac8c66b4f0808 (diff) |
migration: Move postcopy stuff to postcopy-ram.c
Yes, we don't have a good place to put that stuff.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/migration.c')
-rw-r--r-- | migration/migration.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/migration/migration.c b/migration/migration.c index 5c9285125a..ed11c1fb53 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -78,13 +78,6 @@ static NotifierList migration_state_notifiers = static bool deferred_incoming; -/* - * Current state of incoming postcopy; note this is not part of - * MigrationIncomingState since it's state is used during cleanup - * at the end as MIS is being freed. - */ -static PostcopyState incoming_postcopy_state; - /* When we add fault tolerance, we could have several migrations at once. For now we don't need to add dynamic creation of migration */ @@ -2098,14 +2091,3 @@ void migrate_fd_connect(MigrationState *s) s->migration_thread_running = true; } -PostcopyState postcopy_state_get(void) -{ - return atomic_mb_read(&incoming_postcopy_state); -} - -/* Set the state and return the old state */ -PostcopyState postcopy_state_set(PostcopyState new_state) -{ - return atomic_xchg(&incoming_postcopy_state, new_state); -} - |