]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add support of optional 'autodeflate' attribute
authorDmitry Andreev <dandreev@virtuozzo.com>
Fri, 8 Jan 2016 10:45:07 +0000 (13:45 +0300)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Jan 2016 15:48:21 +0000 (10:48 -0500)
commit981c01d419782af2e38f71f42a21091aeb0754b7
tree40366187eb82cc0e2e4c622371c05d1bd3068d6f
parent3522a311ea4c9f9b2bccecfced7434f2bd6fabc4
qemu: add support of optional 'autodeflate' attribute

Autodeflate can be enabled/disabled for memballon device
of model 'virtio'.

xml:
<devices>
  <memballoon model='virtio' autodeflate='on'/>
</devices>

qemu:
qemu -device virtio-balloon-pci,...,deflate-on-oom=on

Autodeflate cannot be enabled/disabled for running domain.
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-balloon-ccw-deflate.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-balloon-ccw-deflate.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-balloon-device-deflate-off.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-balloon-device-deflate-off.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-balloon-device-deflate.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-balloon-device-deflate.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-balloon-mmio-deflate.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-balloon-mmio-deflate.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c