diff options
author | Juan Quintela <quintela@redhat.com> | 2020-01-21 15:39:23 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2020-01-29 11:28:59 +0100 |
commit | 392d87e21325fdb01210176faa07472b4985ccf0 (patch) | |
tree | 89fc09a4c965b4e302b3676847e6f9176f67424b /migration/migration.h | |
parent | d795f47466ead5f189f2efbcf9080dc9c0b92443 (diff) | |
download | qemu-392d87e21325fdb01210176faa07472b4985ccf0.zip qemu-392d87e21325fdb01210176faa07472b4985ccf0.tar.gz qemu-392d87e21325fdb01210176faa07472b4985ccf0.tar.bz2 |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/migration.h b/migration/migration.h index aa9ff6f..44b1d56 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); |