]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add vmcoreinfo support
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 16 Nov 2017 16:49:38 +0000 (17:49 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Sat, 18 Nov 2017 09:45:10 +0000 (10:45 +0100)
commit7e4177a35bae49a53b04940be04418daaa988734
tree5fd182a5f11b1565c1183ff51f479e77198726a2
parentd807014563bb25b466d5dbf718f023c18e762a4b
qemu: add vmcoreinfo support

Starting from qemu 2.11, the `-device vmcoreinfo` will create a fw_cfg
entry for a guest to store dump details, necessary to process kernel
dump with KASLR enabled and providing additional kernel details.

In essence, it is similar to -fw_cfg name=etc/vmcoreinfo,file=X but in
this case it is not backed by a file, but collected by QEMU itself.

Since the device is a singleton and shouldn't use additional hardware
resources, it is presented as a <feature> element in the libvirt
domain XML.

The device is arm/x86 only for now (targets that support fw_cfg+dma).

Related to:
https://bugzilla.redhat.com/show_bug.cgi?id=1395248

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
12 files changed:
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-vmcoreinfo.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-vmcoreinfo.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/qemuxml2xmlout-vmcoreinfo.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c