[libvirt] [PATCH 0/4] Support for limiting guest coredumps

Martin Kletzander mkletzan at redhat.com
Wed Aug 15 09:25:54 UTC 2012


This series applies on the disable_s3/s4 series [1] and works with
qemu patch [2] (not applied yet), so it shouldn't be pushed before
the qemu part is.

Basically qemu supports marking guest memory as (not)dumpable using
madvise(2) system call and in case the guest memory is not desired the
option can reduce the coredump by a reasonable size.

Martin

[1] https://www.redhat.com/archives/libvir-list/2012-August/msg00572.html
[2] http://lists.nongnu.org/archive/html/qemu-devel/2012-08/msg00554.html

Martin Kletzander (4):
  Add support for limiting guest coredump
  qemu: add support for dump-guest-core option
  tests: Add tests for dump-core option
  docs: Document dump-core memory feature

 docs/formatdomain.html.in                          |   13 ++-
 docs/schemas/domaincommon.rng                      |    8 ++
 src/conf/domain_conf.c                             |   19 ++++-
 src/conf/domain_conf.h                             |   10 ++
 src/libvirt_private.syms                           |    2 +
 src/qemu/qemu_capabilities.c                       |    4 +
 src/qemu/qemu_capabilities.h                       |    1 +
 src/qemu/qemu_command.c                            |   89 ++++++++++++++++++--
 tests/qemuargv2xmltest.c                           |    2 +
 .../qemuxml2argv-machine-core-off.args             |    5 +
 .../qemuxml2argv-machine-core-off.xml              |   26 ++++++
 .../qemuxml2argv-machine-core-on.args              |    5 +
 .../qemuxml2argv-machine-core-on.xml               |   26 ++++++
 tests/qemuxml2argvtest.c                           |    3 +
 tests/qemuxml2xmltest.c                            |    2 +
 15 files changed, 202 insertions(+), 13 deletions(-)
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-machine-core-off.args
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-machine-core-off.xml
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-machine-core-on.args
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-machine-core-on.xml

--
1.7.8.6




More information about the libvir-list mailing list