libxl: automatic NUMA placement affects soft affinity
authorDario Faggioli <dario.faggioli@citrix.com>
Tue, 29 Jul 2014 16:07:09 +0000 (18:07 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 30 Jul 2014 11:45:25 +0000 (12:45 +0100)
commit705fad1227a3313f05e0f64da46d19a5c52dacde
tree666255aacd764af74d2393cf45f348363a3c7b54
parent3d00662816fe74678c5b233c59e40dca604ca2bd
libxl: automatic NUMA placement affects soft affinity

vCPU soft affinity and NUMA-aware scheduling does not have
to be related. However, soft affinity is how NUMA-aware
scheduling is actually implemented, and therefore, by default,
the results of automatic NUMA placement (at VM creation time)
are also used to set the soft affinity of all the vCPUs of
the domain.

Of course, this only happens if automatic NUMA placement is
enabled and actually takes place (for instance, if the user
does not specify any hard and soft affiniy in the xl config
file).

This also takes care of the vice-versa, i.e., don't trigger
automatic placement if the config file specifies either an
hard (the check for which was already there) or a soft (the
check for which is introduced by this commit) affinity.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
docs/man/xl.cfg.pod.5
docs/misc/xl-numa-placement.markdown
tools/libxl/libxl_dom.c