libxl: turn NUMA placement misconfigs into warnings
authorDario Faggioli <dario.faggioli@citrix.com>
Wed, 1 Jul 2015 14:03:07 +0000 (16:03 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 3 Jul 2015 10:11:26 +0000 (11:11 +0100)
commit814e4640353c5aea5ab76c80d6711c46cc506001
treed9f905a11081b776a6a091f9ab95d43d662559ba
parent20725845ff549a6eb1392130162f484534d72f29
libxl: turn NUMA placement misconfigs into warnings

instead than errors. More specifically, in libxl,
b_info->numa_autoplacement is meant as a way to
disable automatic NUMA placement, if one does not
want it to happen. It is, however, useful for
consistency checking as well, i.e., to ensure that
the user provided configuration (such as, for instance,
vcpu hard or soft affinity) and NUMA placement itself
will not clash.

However, right now, if such a clash happens we abort
domain creation and error out, which is too much! It
is, in fact, enough to infom the user/caller that NUMA
placement won't be performed, with a WARN, and that's
what this commit does.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_dom.c