diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2017-10-20 10:05:52 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2017-10-23 18:03:29 +0200 |
commit | e91d8951d59d483f085f7650381b8e55a1a55e4c (patch) | |
tree | ac7ddb7a6cb54f700da09aa067666399260944a0 /migration/migration.h | |
parent | 31e060774cf5c3b9945f6f16d6c18d6eae18e4d9 (diff) |
migration: Wait for semaphore before completing migration
Wait for a semaphore before completing the migration,
if the previously added capability was enabled.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/migration.h')
-rw-r--r-- | migration/migration.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/migration/migration.h b/migration/migration.h index 969866303e..cd988a99b9 100644 --- a/migration/migration.h +++ b/migration/migration.h @@ -121,6 +121,9 @@ struct MigrationState /* Flag set once the migration thread called bdrv_inactivate_all */ bool block_inactive; + /* Migration is paused due to pause-before-switchover */ + QemuSemaphore pause_sem; + /* The semaphore is used to notify COLO thread that failover is finished */ QemuSemaphore colo_exit_sem; |