aboutsummaryrefslogtreecommitdiff
path: root/migration/migration.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2019-05-15 13:37:46 +0200
committerJuan Quintela <quintela@redhat.com>2020-02-28 09:24:43 +0100
commitab7cbb0b9a3b229025cae3d132504cbb9f25170f (patch)
treefdac5ef4685dd73aa9595e449ee31cfc6032b5c1 /migration/migration.c
parenta2d07731e7e2f1462e90f9d0a7eaf9e39da29eb0 (diff)
multifd: Make no compression operations into its own structure
It will be used later. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> --- No comp value needs to be zero.
Diffstat (limited to 'migration/migration.c')
-rw-r--r--migration/migration.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/migration/migration.c b/migration/migration.c
index bc744d1734..eb7b0a2df0 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -2245,6 +2245,15 @@ int migrate_multifd_channels(void)
return s->parameters.multifd_channels;
}
+MultiFDCompression migrate_multifd_compression(void)
+{
+ MigrationState *s;
+
+ s = migrate_get_current();
+
+ return s->parameters.multifd_compression;
+}
+
int migrate_use_xbzrle(void)
{
MigrationState *s;