aboutsummaryrefslogtreecommitdiff
path: root/migration/migration.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2020-01-21 15:39:23 +0100
committerJuan Quintela <quintela@redhat.com>2020-01-29 11:28:59 +0100
commit392d87e21325fdb01210176faa07472b4985ccf0 (patch)
tree89fc09a4c965b4e302b3676847e6f9176f67424b /migration/migration.h
parentd795f47466ead5f189f2efbcf9080dc9c0b92443 (diff)
migration: Create migration_is_running()
This function returns true if we are in the middle of a migration. It is like migration_is_setup_or_active() with CANCELLING and COLO. Adapt all callers that are needed. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/migration.h')
-rw-r--r--migration/migration.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/migration.h b/migration/migration.h
index aa9ff6f27b..44b1d56929 100644
--- a/migration/migration.h
+++ b/migration/migration.h
@@ -279,6 +279,7 @@ void migrate_fd_error(MigrationState *s, const Error *error);
void migrate_fd_connect(MigrationState *s, Error *error_in);
bool migration_is_setup_or_active(int state);
+bool migration_is_running(int state);
void migrate_init(MigrationState *s);
bool migration_is_blocked(Error **errp);