]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Adjust the cur_ballon on coldplug/unplug of dimms
authorShivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Thu, 21 Jul 2016 10:09:30 +0000 (15:39 +0530)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 27 Jul 2016 11:21:39 +0000 (13:21 +0200)
commit707063efa86a8cab3ee7d64ad203f2e517b82bce
treecadeb40d82ea2f6378a61f893f31e0a3903cd914
parentc5d0a2a38525929515337ea21cb5c19903ccb05c
qemu: Adjust the cur_ballon on coldplug/unplug of dimms

The cur_balloon also increases/decreases with dimm hotplug/unplug.
To be consistent, adjust the value for coldplug too. This was inconsistently
taken care when cur_ballon != memory to begin with. The patch fixes it
irrespective of that.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/conf/domain_conf.c
src/qemu/qemu_driver.c