]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Filter cur_balloon ABI check for certain transactions
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Thu, 9 Jun 2016 14:32:32 +0000 (17:32 +0300)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 2 Sep 2016 20:54:42 +0000 (16:54 -0400)
commitc62e79c8ca964aefa5c836d775a3977991336bdc
tree715e181f98a788e9096f051b0a274741b24e831a
parent90e9817e851d5d6e7b3f5107479d08d14e6d3d47
qemu: Filter cur_balloon ABI check for certain transactions

Since the domain lock is not held during preparation of an external XML
config, it is possible that the value can change resulting in unexpected
failures during ABI consistency checking for some save and migrate
operations.

This patch adds a new flag to skip the checking of the cur_balloon value
and then sets the destination value to the source value to ensure
subsequent checks without the skip flag will succeed.

This way it is protected from forges and is keeped up to date too.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c