aboutsummaryrefslogtreecommitdiff
path: root/migration/options.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-03-01 22:03:48 +0100
committerJuan Quintela <quintela@redhat.com>2023-04-24 15:01:46 +0200
commita7a94d14358dd7b445e20c2f26218ff987747642 (patch)
tree937b14f8c311a5078b92ab86b8ee125b80f525a3 /migration/options.c
parent5e8046445575dc5879e63c5d07af893d174813d0 (diff)
downloadqemu-a7a94d14358dd7b445e20c2f26218ff987747642.zip
qemu-a7a94d14358dd7b445e20c2f26218ff987747642.tar.gz
qemu-a7a94d14358dd7b445e20c2f26218ff987747642.tar.bz2
migration: Move migrate_use_compression() to options.c
Once that we are there, we rename the function to migrate_compress() 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 bd33c5d..fa7a13d 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -39,6 +39,15 @@ bool migrate_colo(void)
return s->capabilities[MIGRATION_CAPABILITY_X_COLO];
}
+bool migrate_compress(void)
+{
+ MigrationState *s;
+
+ s = migrate_get_current();
+
+ return s->capabilities[MIGRATION_CAPABILITY_COMPRESS];
+}
+
bool migrate_dirty_bitmaps(void)
{
MigrationState *s;