aboutsummaryrefslogtreecommitdiff
path: root/monitor
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2020-01-23 17:08:52 +0100
committerJuan Quintela <quintela@redhat.com>2020-02-28 09:24:43 +0100
commit9004db48c080632aef2329c1ac154c448d7da276 (patch)
tree323c5db26876b58006633ee3622dcff8a93564da /monitor
parentab7cbb0b9a3b229025cae3d132504cbb9f25170f (diff)
downloadqemu-9004db48c080632aef2329c1ac154c448d7da276.zip
qemu-9004db48c080632aef2329c1ac154c448d7da276.tar.gz
qemu-9004db48c080632aef2329c1ac154c448d7da276.tar.bz2
multifd: Add multifd-zlib-level parameter
This parameter specifies the zlib compression level. The next patch will put it to use. Signed-off-by: Juan Quintela <quintela@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'monitor')
-rw-r--r--monitor/hmp-cmds.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c
index d9b4861..409ebb2 100644
--- a/monitor/hmp-cmds.c
+++ b/monitor/hmp-cmds.c
@@ -1837,6 +1837,10 @@ void hmp_migrate_set_parameter(Monitor *mon, const QDict *qdict)
}
p->multifd_compression = compress_type;
break;
+ case MIGRATION_PARAMETER_MULTIFD_ZLIB_LEVEL:
+ p->has_multifd_zlib_level = true;
+ visit_type_int(v, param, &p->multifd_zlib_level, &err);
+ break;
case MIGRATION_PARAMETER_XBZRLE_CACHE_SIZE:
p->has_xbzrle_cache_size = true;
visit_type_size(v, param, &cache_size, &err);