]> xenbits.xensource.com Git - libvirt.git/commitdiff
lib: Add win-dmp crashdump format
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 20 May 2021 12:32:11 +0000 (14:32 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 20 May 2021 14:23:32 +0000 (16:23 +0200)
QEMU gained support for 'win-dmp' format in it's release of 3.0,
but libvirt doesn't implement it yet. Fortunately, there not much
needed: new value to virDomainCoreDumpFormat public enum, which
unfortunately means that QEMU driver has to be updated in the
same commit, because of VIR_ENUM_IMPL().

Luckily, we don't need any extra QEMU capability - the code
already checks supported formats via
'query-dump-guest-memory-capability' just before issuing
'dump-guest-memory'.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
include/libvirt/libvirt-domain.h
src/qemu/qemu_driver.c

index b33eede68b521b8c39aa3e283b7135aae714b489..7ef8ac51e5643a0cf07a5b2ceecb388d029ebd49 100644 (file)
@@ -691,6 +691,7 @@ typedef enum {
                                                * lzo compression */
     VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_SNAPPY, /* kdump-compressed format, with
                                                * snappy compression */
+    VIR_DOMAIN_CORE_DUMP_FORMAT_WIN_DMP,      /* Windows full crashdump format */
 # ifdef VIR_ENUM_SENTINELS
     VIR_DOMAIN_CORE_DUMP_FORMAT_LAST
     /*
index c90d52edc037acf9d09f616524e273802b4ff7e0..e10e699a1a4112162bda9919231453c2ab5ea5f1 100644 (file)
@@ -143,6 +143,7 @@ VIR_ENUM_IMPL(qemuDumpFormat,
               "kdump-zlib",
               "kdump-lzo",
               "kdump-snappy",
+              "win-dmp",
 );