mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
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>
This commit is contained in:
parent
b95c13cd33
commit
464ad16f5c
@ -7280,7 +7280,7 @@ qemuDomainSetMemoryParameters(virDomainPtr dom,
|
||||
}
|
||||
|
||||
#define VIR_GET_LIMIT_PARAMETER(PARAM, VALUE) \
|
||||
if ((rc = virTypedParamsGetULLong(params, nparams, PARAM, &VALUE) < 0)) \
|
||||
if ((rc = virTypedParamsGetULLong(params, nparams, PARAM, &VALUE)) < 0) \
|
||||
goto cleanup; \
|
||||
\
|
||||
if (rc == 1) \
|
||||
|
Loading…
Reference in New Issue
Block a user