summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJuan Quintela2017-03-20 22:25:28 +0100
committerJuan Quintela2017-04-21 12:25:39 +0200
commit5727309d254b4942645888574a16d36942ec439c (patch)
tree9a09abab8e668ca62d67ffbf11289b1799a2e958 /include
parentram: Remove compression_switch and inline its logic (diff)
downloadqemu-5727309d254b4942645888574a16d36942ec439c.tar.gz
qemu-5727309d254b4942645888574a16d36942ec439c.tar.xz
qemu-5727309d254b4942645888574a16d36942ec439c.zip
migration: Remove MigrationState from migration_in_postcopy
We need to call for the migrate_get_current() in more that half of the uses, so call that inside. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'include')
-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 357eaa0786..2cd20077ac 100644
--- a/include/migration/migration.h
+++ b/include/migration/migration.h
@@ -238,7 +238,7 @@ bool migration_is_idle(MigrationState *s);
bool migration_has_finished(MigrationState *);
bool migration_has_failed(MigrationState *);
/* True if outgoing migration has entered postcopy phase */
-bool migration_in_postcopy(MigrationState *);
+bool migration_in_postcopy(void);
/* ...and after the device transmission */
bool migration_in_postcopy_after_devices(MigrationState *);
MigrationState *migrate_get_current(void);