tools: libxl/xl: run NUMA placement even when an hard-affinity is set
authorDario Faggioli <dfaggioli@suse.com>
Fri, 19 Oct 2018 15:54:41 +0000 (17:54 +0200)
committerWei Liu <wei.liu2@citrix.com>
Tue, 6 Nov 2018 10:19:32 +0000 (10:19 +0000)
commit2347a9b639b0ee3988f07e2227a6ca6e2e945418
treeeb49b31af3eddbefd598b3d096d3a77fbf2e5db9
parenta76e48f879dda43d5f7d36ecdb241678ff0c441e
tools: libxl/xl: run NUMA placement even when an hard-affinity is set

Right now, if either an hard or soft-affinity are explicitly specified
in a domain's config file, automatic NUMA placement is skipped. However,
automatic NUMA placement affects only the soft-affinity of the domain
which is being created.

Therefore, it is ok to let it run if an hard-affinity is specified. The
semantics will be that the best placement candidate would be found,
respecting the specified hard-affinity, i.e., using only the nodes that
contain the pcpus in the hard-affinity mask.

This is particularly helpful if global xl pinning masks are defined, as
made possible by commit aa67b97ed34279c43 ("xl.conf: Add global affinity
masks"). In fact, without this commit, defining a global affinity mask
would also mean disabling automatic placement, but that does not
necessarily have to be the case (especially in large systems).

Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_dom.c
tools/xl/xl_parse.c