diff options
author | Steve Sistare <steven.sistare@oracle.com> | 2024-03-11 10:48:53 -0700 |
---|---|---|
committer | Peter Xu <peterx@redhat.com> | 2024-03-11 16:28:59 -0400 |
commit | 6e7856397641326163ef493197a849f99a9a6a44 (patch) | |
tree | 2c1994e733f33ea82efdde6602bf48c5b9332364 /include/migration | |
parent | 714f33123bfc73c6caacd19a44e082da8cdc96e3 (diff) |
migration: migration_thread_is_self
Define and export migration_thread_is_self to eliminate a dependency
on MigrationState.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Link: https://lore.kernel.org/r/1710179338-294359-7-git-send-email-steven.sistare@oracle.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'include/migration')
-rw-r--r-- | include/migration/misc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/migration/misc.h b/include/migration/misc.h index 7526977de6..c4b5416357 100644 --- a/include/migration/misc.h +++ b/include/migration/misc.h @@ -61,6 +61,7 @@ void migration_object_init(void); void migration_shutdown(void); bool migration_is_idle(void); bool migration_is_active(void); +bool migration_thread_is_self(void); bool migration_is_setup_or_active(void); bool migrate_mode_is_cpr(MigrationState *); |