mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: fix the error cover issue in SetMemoryParameters
https://bugzilla.redhat.com/show_bug.cgi?id=1245476 We won't return the errno after commit 0d7f45ae, and the more clearly error will be set in the code in vircgroup*. Also We will always report error "Operation not permitted", because the return is -1. Signed-off-by: Luyao Huang <lhuang@redhat.com>
This commit is contained in:
parent
6395ec1cf0
commit
704cf06a14
@ -9809,12 +9809,8 @@ qemuDomainSetMemoryParameters(virDomainPtr dom,
|
||||
#define QEMU_SET_MEM_PARAMETER(FUNC, VALUE) \
|
||||
if (set_ ## VALUE) { \
|
||||
if (flags & VIR_DOMAIN_AFFECT_LIVE) { \
|
||||
if ((rc = FUNC(priv->cgroup, VALUE)) < 0) { \
|
||||
virReportSystemError(-rc, _("unable to set memory %s tunable"), \
|
||||
#VALUE); \
|
||||
\
|
||||
goto endjob; \
|
||||
} \
|
||||
if ((rc = FUNC(priv->cgroup, VALUE)) < 0) \
|
||||
goto endjob; \
|
||||
vm->def->mem.VALUE = VALUE; \
|
||||
} \
|
||||
\
|
||||
|
Loading…
x
Reference in New Issue
Block a user