diff options
author | Juan Quintela <quintela@redhat.com> | 2023-03-01 22:08:09 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-04-24 15:01:46 +0200 |
commit | b890902c9c025b87d02e718eec3090fd3525ab18 (patch) | |
tree | 8c762e49de1e36108235d0fcb5d07cd513fc4f16 /migration/options.c | |
parent | a7a94d14358dd7b445e20c2f26218ff987747642 (diff) | |
download | qemu-b890902c9c025b87d02e718eec3090fd3525ab18.zip qemu-b890902c9c025b87d02e718eec3090fd3525ab18.tar.gz qemu-b890902c9c025b87d02e718eec3090fd3525ab18.tar.bz2 |
migration: Move migrate_use_events() to options.c
Once that we are there, we rename the function to migrate_events()
to be consistent with all other capabilities.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Diffstat (limited to 'migration/options.c')
-rw-r--r-- | migration/options.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/migration/options.c b/migration/options.c index fa7a13d..d2219ee 100644 --- a/migration/options.c +++ b/migration/options.c @@ -57,6 +57,15 @@ bool migrate_dirty_bitmaps(void) return s->capabilities[MIGRATION_CAPABILITY_DIRTY_BITMAPS]; } +bool migrate_events(void) +{ + MigrationState *s; + + s = migrate_get_current(); + + return s->capabilities[MIGRATION_CAPABILITY_EVENTS]; +} + bool migrate_ignore_shared(void) { MigrationState *s; |