[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH v2 0/3] Support for limiting guest coredumps



Even though I got a sparse ACK on v1, it's been some time, all the
things should be fixed. Also the QEMU patch is already upstream.

This series applies on the disable_s3/s4 series [1] and works with
qemu patch [2] (upstream already).

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.

[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 (3):
  Add support for limiting guest coredump
  qemu: add support for dump-guest-core option
  tests: Add tests for dump-core option

 docs/formatdomain.html.in                          | 12 +++-
 docs/schemas/domaincommon.rng                      |  8 +++
 src/conf/domain_conf.c                             | 25 ++++++-
 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                            | 81 +++++++++++++++++++---
 tests/qemuargv2xmltest.c                           |  2 +
 tests/qemuhelptest.c                               |  3 +-
 .../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 +
 16 files changed, 201 insertions(+), 14 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.12


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]