]> 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)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 23 Sep 2015 12:22:29 +0000 (14:22 +0200)
commitd7a0386e229176ec67531aac1412b8a98914da8e
tree9e42fd83077edeb673b5137d312c7803b3456b75
parent624ec1c2f9157082db415711cd3b347d1af7f5c4
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
src/qemu/qemu_process.c