]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: enable QEMU core dump by default on Linux
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 29 Nov 2024 11:42:07 +0000 (11:42 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 5 Dec 2024 09:42:37 +0000 (09:42 +0000)
commit57835f432f5f4759931f38e2931b3e96595a3ba4
tree0ecad313c291e5ef1dfb85d86b2b0f266275ed97
parentdd217cd9382cb7d67b26c5b3b4be07e5ce88ef86
qemu: enable QEMU core dump by default on Linux

The Linux MADV_DONTDUMP flag was added to Linux kernels > 3.3,
back in 2012, and the dump-guest-core flag was added to QEMU
> 1.0 at the same time.

IOW, on Linux we have long been able to assume that QEMU core
dumps will exclude guest memory, unless the user has overridden
the host level defaults in the domain XML.

It is desirable to permit QEMU core dumps out of the box to make
it easier for users to report crashes to their OS vendor without
having to reconfigure and restart libvirt daemons and their
running guests.

While there is a risk that an admin may have set 'dump_guest_core'
to true, while leaving 'max_core' to 0, on balance the benefits
of easier troubleshooting outweigh the risk of changing the
defaults to permit core dumps.

Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu.conf.in
src/qemu/qemu_conf.c