]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Refresh memory size only on fresh starts
authorPeter Krempa <pkrempa@redhat.com>
Wed, 23 Sep 2015 12:19:06 +0000 (14:19 +0200)
committerCole Robinson <crobinso@redhat.com>
Wed, 23 Dec 2015 23:13:59 +0000 (18:13 -0500)
commitc22a4bb52325ead4e6330543d91e6463fe580d72
tree8036bb310b2e1808717f3deb4ea8890fab108d97
parent0099781e8010c4f6286714ca423380b2a2e8808d
qemu: Refresh memory size only on fresh starts

Qemu unfortunately doesn't update internal state right after migration
and so the actual balloon size as returned by 'query-balloon' are
invalid for a while after the CPUs are started after migration. If we'd
refresh our internal state at this point we would report invalid current
memory size until the next balloon event would arrive.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1242940
(cherry picked from commit d7a0386e229176ec67531aac1412b8a98914da8e)
src/qemu/qemu_process.c