mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
qemuDomainGetNumaParameters: Check for the correct CGroup controller
When getting info on NUMA parameters for domain, virCgroupGetCpusetMems() may be called. However, as of 43b67f2e the call is guarded by check if memory controller is present. Even though it may be not obvious instantly, NUMA parameters are stored under cpuset controller. Therefore the check needs to look like this: if (!virCgroupHasController(priv->cgroup, VIR_CGROUP_CONTROLLER_CPUSET) || virCgroupGetCpusetMems(priv->cgroup, &nodeset) < 0) { Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
771e6e5a46
commit
53eae3e7c3
@ -10187,7 +10187,7 @@ qemuDomainGetNumaParameters(virDomainPtr dom,
|
||||
goto cleanup;
|
||||
} else {
|
||||
if (!virCgroupHasController(priv->cgroup,
|
||||
VIR_CGROUP_CONTROLLER_MEMORY) ||
|
||||
VIR_CGROUP_CONTROLLER_CPUSET) ||
|
||||
virCgroupGetCpusetMems(priv->cgroup, &nodeset) < 0) {
|
||||
nodeset = virDomainNumatuneFormatNodeset(vm->def->numa,
|
||||
NULL, -1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user