]> xenbits.xensource.com Git - libvirt.git/commit
conf: Introduce pstore device
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 4 Jun 2024 15:45:48 +0000 (17:45 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 25 Jul 2024 14:04:50 +0000 (16:04 +0200)
commit90e50e67c63c03d6da805e19882276660eeff179
tree5f995f1529e9cf0a18989687e29830c91c5b33c1
parent4a9c2d9bbe5b0ce0f18fa07eb6f77d1e06a247e1
conf: Introduce pstore device

The aim of pstore device is to provide a bit of NVRAM storage for
guest kernel to record oops/panic logs just before the it
crashes. Typical usage includes usage in combination with a
watchdog so that the logs can be inspected after the watchdog
rebooted the machine. While Linux kernel (and possibly Windows
too) support many backends, in QEMU there's just 'acpi-erst'
device so stick with that for now. The device must be attached to
a PCI bus and needs two additional values (well, corresponding
memory-backend-file needs them): size and path. Despite using
memory-backend-file this does NOT add any additional RAM to the
guest and thus I've decided to expose it as another device type
instead of memory model.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
23 files changed:
docs/formatdomain.rst
src/ch/ch_domain.c
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/domain_postparse.c
src/conf/domain_validate.c
src/conf/schemas/domaincommon.rng
src/conf/virconftypes.h
src/hyperv/hyperv_driver.c
src/libvirt_private.syms
src/libxl/libxl_driver.c
src/lxc/lxc_driver.c
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain_address.c
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_validate.c
src/test/test_driver.c
tests/qemuxmlconfdata/pstore-acpi-erst.x86_64-latest.args [new file with mode: 0644]
tests/qemuxmlconfdata/pstore-acpi-erst.x86_64-latest.xml [new symlink]
tests/qemuxmlconfdata/pstore-acpi-erst.xml [new file with mode: 0644]
tests/qemuxmlconftest.c