lib: Add win-dmp crashdump format

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>
This commit is contained in:
Michal Privoznik 2021-05-20 14:32:11 +02:00
parent 8e75ecefd7
commit c2707c7e3c
2 changed files with 2 additions and 0 deletions

View 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
/*

View File

@ -143,6 +143,7 @@ VIR_ENUM_IMPL(qemuDumpFormat,
"kdump-zlib",
"kdump-lzo",
"kdump-snappy",
"win-dmp",
);