]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: process: Update current balloon state to maximum on vm startup
authorPeter Krempa <pkrempa@redhat.com>
Wed, 27 May 2015 13:04:14 +0000 (15:04 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 4 Jun 2015 08:52:30 +0000 (10:52 +0200)
commit641a145d73fdc3dd9350fd57b3d3247abf101c05
tree5d1fc70febf738bc2b0d3c0b504a1875f2b7b3c2
parent8728a78e904de7ddfa32b7761b40d6339fa15030
qemu: process: Update current balloon state to maximum on vm startup

After libvirt issues the balloon resize command, the current balloon
size needs to be changed to the maximum memory size since the vCPUs were
not started and thus the balloon driver could not return the memory.

Since GetXMLDesc and other APIs return the balloon size without updating
it in case they are not able to obtain the job and the memory balloon
does not support the asynchronous event the sizing might be incorrect.
src/qemu/qemu_process.c