
On 3/27/25 11:14, Nikolai Barybin wrote:
When libvirt processes VM crash event it always dumps core in raw format.
This series makes it possible to configure dump format via domain xml. This would be especcialy helpful for Windows guests, because it requires a lot effort to convert raw dump into wingdb.
Nikolai Barybin (4): conf: schemas: add coredump_format element to events section src: conf: add parsing/formatting for 'coredump_format' value qemu: use configurable dump format in doCoreDumpToAutoDumpPath() docs: formatdomain: document 'coredump_format' element
docs/formatdomain.rst | 9 +++++ src/conf/domain_conf.c | 64 +++++++++++++++++++++++++++++++ src/conf/domain_conf.h | 2 + src/conf/schemas/domaincommon.rng | 19 +++++++++ src/libvirt_private.syms | 2 + src/qemu/qemu_driver.c | 2 +- 6 files changed, 97 insertions(+), 1 deletion(-)
The idea is that correct Windows dump could be collected only at the moment of the dump collection as dump collector code in QEMU uses some information from Windows drivers. Later conversion using external tools proven to be complex. That is why we either should specify the type of the dump inside the configuration file or autoguess the format. I though that latter could be implemented as the next step using f.e. presence of HyperV feature or checking OS type in metadata. I think that this thing would be useful. Den