1
0
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:
Jiri Denemark 2011-06-21 18:37:10 +02:00
parent 10208cc503
commit 6a15cc6b90

View File

@ -1197,6 +1197,9 @@ qemuProcessInitNumaMemoryPolicy(virDomainObjPtr vm)
int i = 0;
int maxnode = 0;
if (!vm->def->numatune.memory.nodemask)
return 0;
VIR_DEBUG("Setting NUMA memory policy");
if (numa_available() < 0) {
@ -1205,9 +1208,6 @@ qemuProcessInitNumaMemoryPolicy(virDomainObjPtr vm)
return -1;
}
if (!vm->def->numatune.memory.nodemask)
return 0;
if (VIR_ALLOC(mask) < 0) {
virReportOOMError();
return -1;