aboutsummaryrefslogtreecommitdiff
path: root/migration/options.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-03-01 22:23:57 +0100
committerJuan Quintela <quintela@redhat.com>2023-04-24 15:01:46 +0200
commit9d4b1e5f22a838285ebeb8f0eb7cc8df1161998f (patch)
tree0edfd2c28ad1a622d2c0578f98145e111c04de09 /migration/options.c
parent87dca0c9bb63014ef73ad82f7aedea1cb5a822e7 (diff)
downloadqemu-9d4b1e5f22a838285ebeb8f0eb7cc8df1161998f.zip
qemu-9d4b1e5f22a838285ebeb8f0eb7cc8df1161998f.tar.gz
qemu-9d4b1e5f22a838285ebeb8f0eb7cc8df1161998f.tar.bz2
migration: Move migrate_use_block() to options.c
Once that we are there, we rename the function to migrate_block() 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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/migration/options.c b/migration/options.c
index 25264c5..fe1eade 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -33,6 +33,15 @@ bool migrate_background_snapshot(void)
return s->capabilities[MIGRATION_CAPABILITY_BACKGROUND_SNAPSHOT];
}
+bool migrate_block(void)
+{
+ MigrationState *s;
+
+ s = migrate_get_current();
+
+ return s->capabilities[MIGRATION_CAPABILITY_BLOCK];
+}
+
bool migrate_colo(void)
{
MigrationState *s = migrate_get_current();