[libvirt] [PATCH 0/2] 'deflate-on-oom' attribute for mememory balloon

Dmitry Andreev dandreev at virtuozzo.com
Mon Dec 14 11:35:29 UTC 2015


This patch-set adds support for the new feature that has
been added to the QEMU virtio memory balloon a month ago.
This feature lets a guest OS deflate balloon on OOM.

With 'deflate-on-oom' enabled virtio balloon will release
it's memory if possible right before an OOM termination of
processes.

QEMU commit with the complete feature description:
http://git.qemu.org/?p=qemu.git;a=commit;h=e3816255bf4b6377bb405331e2ee0dc14d841b80

Dmitry Andreev (2):
  conf: introduce 'deflate-on-oom' attribute for memballoon device
  qemu: add support of optional 'deflate-on-oom' attribute

 docs/formatdomain.html.in                          | 10 +++++++++
 docs/schemas/domaincommon.rng                      |  5 +++++
 src/conf/domain_conf.c                             | 23 ++++++++++++++++++++
 src/conf/domain_conf.h                             |  1 +
 src/qemu/qemu_command.c                            |  4 ++++
 .../qemuxml2argv-balloon-device-deflate-off.args   | 23 ++++++++++++++++++++
 .../qemuxml2argv-balloon-device-deflate-off.xml    | 25 ++++++++++++++++++++++
 .../qemuxml2argv-balloon-device-deflate.args       | 23 ++++++++++++++++++++
 .../qemuxml2argv-balloon-device-deflate.xml        | 25 ++++++++++++++++++++++
 tests/qemuxml2argvtest.c                           |  4 ++++
 10 files changed, 143 insertions(+)
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-balloon-device-deflate-off.args
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-balloon-device-deflate-off.xml
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-balloon-device-deflate.args
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-balloon-device-deflate.xml

-- 
1.8.3.1




More information about the libvir-list mailing list