]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add helper to update domain balloon size and refactor usage places
authorPeter Krempa <pkrempa@redhat.com>
Wed, 27 May 2015 13:51:52 +0000 (15:51 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 4 Jun 2015 08:52:30 +0000 (10:52 +0200)
commiteaf4320869bdb22abc62d2d024bd726cede35d75
treeb8a603489ed70c3ddeb371492b66f9569ddb48a1
parent641a145d73fdc3dd9350fd57b3d3247abf101c05
qemu: Add helper to update domain balloon size and refactor usage places

When qemu does not support the balloon event the current memory size
needs to be queried. Since there are two places that implement the same
logic, split it out into a function and reuse.
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c