migration: Add zstd support in multi-thread compression
PATCH v2 4/6 migration: Add zstd support in multi-thread compression
This patch enables zstd option in multi-thread compression.
Signed-off-by Zeyu Jin <[email protected]>
Signed-off-by Ying Fang <[email protected]>
--- hw/core/qdev-properties-system.c | 2 +- migration/ram.c | 128 ++++++++++++++++++++++++++++++- qapi/migration.json | 2 +- 3 files changed, 129 insertions(+), 3 deletions(-)
hw/core/qdev-properties-system.c +1 -1
@@ -667,7 +667,7 @@ const PropertyInfo qdev_prop_multifd_compression = {const PropertyInfo qdev_prop_compress_method = { .name ="CompressMethod" , .description ="multi-thread compression method, " -"zlib" , +"zlib/zstd" , .enum_table = &CompressMethod_lookup, .get = qdev_propinfo_get_enum, .set = qdev_propinfo_set_enum,
migration/ram.c +127 -1
166 lines not on this page · raw message
qapi/migration.json +1 -1
@@ -536,7 +536,7 @@ # ## { 'enum': 'CompressMethod', - 'data': [ 'zlib' ] } + 'data': [ 'zlib', { 'name': 'zstd', 'if': 'defined(CONFIG_ZSTD)' } ] } ## # @BitmapMigrationBitmapAlias:
Signature · 1 line
2.27.0
qapi/migration.json line 539
Quoted 13 lines · Zeyu Jin
This patch enables zstd option in multi-thread compression.
Signed-off-by Zeyu Jin <[email protected]>Signed-off-by Ying Fang <[email protected]>---
+++
b/qapi/migration.jsonqapi/migration.json +1
-1@@ -536,7 +536,7 @@ # ## { 'enum': 'CompressMethod', - 'data': [ 'zlib' ] } + 'data': [ 'zlib', { 'name': 'zstd', 'if': 'defined(CONFIG_ZSTD)' } ] }
Missing documentation of the new value, including a '(since 6.0)' marker.
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
Quoted 7 lines · Eric Blake
Quoted 5 lines · Zeyu Jin
This patch enables zstd option in multi-thread compression.
Signed-off-by Zeyu Jin <[email protected]>Signed-off-by Ying Fang <[email protected]>---
Quoted 10 lines
qapi/migration.json line 539
Quoted 7 lines
+++
b/qapi/migration.jsonqapi/migration.json +1
-1@@ -536,7 +536,7 @@ # ## { 'enum': 'CompressMethod', - 'data': [ 'zlib' ] } + 'data': [ 'zlib', { 'name': 'zstd', 'if': 'defined(CONFIG_ZSTD)' } ] }Missing documentation of the new value, including a '(since 6.0)' marker.
Yes, will fix it.