[libvirt] [PATCH v2] qemu: process: Improve update of maximum baloon state at startup
pkrempa at redhat.com
Fri Jul 10 07:51:43 UTC 2015
On Wed, Jul 01, 2015 at 10:13:27 +0200, Peter Krempa wrote:
> In commit 641a145d73fdc3dd9350fd57b3d3247abf101c05 I've added code that
> resets the ballon memory value to full size prior to resuming the vCPUs
> since the size certainly was not reduced at that point.
> Since qemuProcess start is used also in code paths with already booted
> up guests (migration, save/restore) the assumption is not entirely true
> since the guest might already been running before.
> This patch adds a function that queries the monitor rather than using
> the full size since a balloon event would not be reissued in case we are
> recovering a saved migration state.
> Additionally the new function is used also when reconnecting to a VM
> after libvirtd restart since we might have missed a few ballon events
> while libvirtd was not running.
> src/qemu/qemu_process.c | 38 +++++++++++++++++++++++++++++++++++++-
> 1 file changed, 37 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: Digital signature
More information about the libvir-list