]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix wrong evaluation in qemuDomainSetMemoryParameters
authorSatoru Moriya <satoru.moriya@hds.com>
Mon, 4 Mar 2013 17:27:45 +0000 (17:27 +0000)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Mar 2013 17:34:28 +0000 (18:34 +0100)
commit464ad16f5ca9b286e7f9e4288e81b7e8245cf083
tree54a4b8f55c253417836022c93b4ea75295af5745
parentb95c13cd33a85606ec920df455b8606a37a18a8c
qemu: fix wrong evaluation in qemuDomainSetMemoryParameters

19c6ad9a (qemu: Refactor qemuDomainSetMemoryParameters) introduced
a new macro, VIR_GET_LIMIT_PARAMETER(PARAM, VALUE). But if statement
in the macro is not correct and so set_XXXX flags are set to false
in the wrong. As a result, libvirt ignores all memtune parameters.
This patch fixes the conditional expression to work correctly.

Signed-off-by: Satoru Moriya <satoru.moriya@hds.com>
src/qemu/qemu_driver.c