From 9004db48c080632aef2329c1ac154c448d7da276 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Thu, 23 Jan 2020 17:08:52 +0100 Subject: 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 Acked-by: Markus Armbruster Reviewed-by: Dr. David Alan Gilbert --- monitor/hmp-cmds.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'monitor/hmp-cmds.c') diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c index d9b4861f94..409ebb2b03 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); -- cgit v1.2.3