]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu_saveimage: add zstd to supported compression formats
authorAdam Julis <ajulis@redhat.com>
Fri, 26 Apr 2024 18:28:47 +0000 (20:28 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 6 May 2024 12:56:58 +0000 (14:56 +0200)
Extend the list of supported formats, update and clarify comment
in qemu.conf.in (removed misleading sentence about the order of
compression format types).

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/589
Signed-off-by: Adam Julis <ajulis@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
libvirt.spec.in
src/qemu/qemu.conf.in
src/qemu/qemu_saveimage.c

index 64018192b615b7fd006716ebaf8daff4a3c78e1c..88c62f6d922ef6e9b136db966120e1495dcce619 100644 (file)
@@ -815,6 +815,7 @@ Requires: gzip
 Requires: bzip2
 Requires: lzop
 Requires: xz
+Requires: zstd
 Requires: systemd-container
 Requires: swtpm-tools
         %if %{with_numad}
index f406df8749a2b30e1a1d7c8cb752e994b5b360d0..6bc2140dcb88b0e02221d1fd26a691687c512bd3 100644 (file)
 # memory from the domain is dumped out directly to a file.  If you have
 # guests with a large amount of memory, however, this can take up quite
 # a bit of space.  If you would like to compress the images while they
-# are being saved to disk, you can also set "lzop", "gzip", "bzip2", or "xz"
-# for save_image_format.  Note that this means you slow down the process of
-# saving a domain in order to save disk space; the list above is in descending
-# order by performance and ascending order by compression ratio.
+# are being saved to disk, you can also set "zstd", "lzop", "gzip", "bzip2",
+# or "xz" for save_image_format. Note that this means you slow down the process
+# of saving a domain in order to save disk space.
 #
 # save_image_format is used when you use 'virsh save' or 'virsh managedsave'
 # at scheduled saving, and it is an error if the specified save_image_format
index 89112e3e4488452351755538b4d05a955b9e2a7f..018ab5a222ee7c441ec4ad19cdea8ee61b1c7d54 100644 (file)
@@ -47,6 +47,7 @@ typedef enum {
      */
     QEMU_SAVE_FORMAT_XZ = 3,
     QEMU_SAVE_FORMAT_LZOP = 4,
+    QEMU_SAVE_FORMAT_ZSTD = 5,
     /* Note: add new members only at the end.
        These values are used in the on-disk format.
        Do not change or re-use numbers. */
@@ -62,6 +63,7 @@ VIR_ENUM_IMPL(qemuSaveCompression,
               "bzip2",
               "xz",
               "lzop",
+              "zstd",
 );
 
 static inline void