[PATCH] qemu: Only check for NUMA availability if required

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We only care about NUMA availability if NUMA configuration is requested
in domain XML.
---
 src/qemu/qemu_process.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 8e09e52..37d5a22 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -1197,17 +1197,17 @@ 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) {
         qemuReportError(VIR_ERR_INTERNAL_ERROR,
                         "%s", _("Host kernel is not aware of NUMA."));
         return -1;
     }
 
-    if (!vm->def->numatune.memory.nodemask)
-        return 0;
-
     if (VIR_ALLOC(mask) < 0) {
         virReportOOMError();
         return -1;
-- 
1.7.5.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]