[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] libxl: bail from placement on non-NUMA boxes
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@xxxxxxxxxx> --- tools/libxl/libxl_numa.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/libxl/libxl_numa.c b/tools/libxl/libxl_numa.c index 4fac664..94ca4fe 100644 --- 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); /* _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |