qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 21/21] migration: Add zstd compression multifd support


From: Eric Blake
Subject: Re: [PATCH v3 21/21] migration: Add zstd compression multifd support
Date: Fri, 24 Jan 2020 10:18:11 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 1/23/20 5:58 AM, Juan Quintela wrote:
Signed-off-by: Juan Quintela <address@hidden>
---
  hw/core/qdev-properties.c    |   2 +-
  migration/Makefile.objs      |   1 +
  migration/migration.c        |   6 +
  migration/multifd-zstd.c     | 304 +++++++++++++++++++++++++++++++++++
  migration/multifd.h          |  20 +++
  migration/ram.c              |   1 -
  qapi/migration.json          |   2 +-
  tests/qtest/migration-test.c |  10 ++
  8 files changed, 343 insertions(+), 3 deletions(-)
  create mode 100644 migration/multifd-zstd.c


+++ b/migration/Makefile.objs
@@ -9,6 +9,7 @@ common-obj-y += qjson.o
  common-obj-y += block-dirty-bitmap.o
  common-obj-y += multifd.o
  common-obj-y += multifd-zlib.o
+common-obj-$(CONFIG_ZSTD) += multifd-zstd.o

zstd support is conditional...


+++ b/qapi/migration.json
@@ -499,7 +499,7 @@
  #
  ##
  { 'enum': 'MultifdCompress',
-  'data': [ 'none', 'zlib' ] }
+  'data': [ 'none', 'zlib', 'zstd' ] }

...so I would expect an 'if' conditional here when declaring the enum. It also needs documentation.


--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]