mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Only check for NUMA availability if required
We only care about NUMA availability if NUMA configuration is requested in domain XML.
This commit is contained in:
parent
10208cc503
commit
6a15cc6b90
@ -1197,6 +1197,9 @@ qemuProcessInitNumaMemoryPolicy(virDomainObjPtr vm)
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
int maxnode = 0;
|
int maxnode = 0;
|
||||||
|
|
||||||
|
if (!vm->def->numatune.memory.nodemask)
|
||||||
|
return 0;
|
||||||
|
|
||||||
VIR_DEBUG("Setting NUMA memory policy");
|
VIR_DEBUG("Setting NUMA memory policy");
|
||||||
|
|
||||||
if (numa_available() < 0) {
|
if (numa_available() < 0) {
|
||||||
@ -1205,9 +1208,6 @@ qemuProcessInitNumaMemoryPolicy(virDomainObjPtr vm)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!vm->def->numatune.memory.nodemask)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (VIR_ALLOC(mask) < 0) {
|
if (VIR_ALLOC(mask) < 0) {
|
||||||
virReportOOMError();
|
virReportOOMError();
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user