projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f524e27
)
libxl: bail from placement on non-NUMA boxes
author
Dario Faggioli
<dario.faggioli@citrix.com>
Wed, 30 Apr 2014 15:44:13 +0000
(17:44 +0200)
committer
Ian Campbell
<ian.campbell@citrix.com>
Fri, 2 May 2014 12:34:35 +0000
(13:34 +0100)
If there only is 1 NUMA node, no need to go through placement
candidate selection, etc., we can just bail.
Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_numa.c
patch
|
blob
|
history
diff --git
a/tools/libxl/libxl_numa.c
b/tools/libxl/libxl_numa.c
index 4fac6641c68cbe38e41076f830c908ee32184a23..94ca4fec46be08e97cc67960f5dabb4b82770d19 100644
(file)
--- a/
tools/libxl/libxl_numa.c
+++ b/
tools/libxl/libxl_numa.c
@@
-308,6
+308,11
@@
int libxl__get_numa_candidate(libxl__gc *gc,
if (ninfo == NULL)
return ERROR_FAIL;
+ if (nr_nodes <= 1) {
+ *cndt_found = 0;
+ goto out;
+ }
+
GCNEW_ARRAY(vcpus_on_node, nr_nodes);
/*