xl: move away from the use of cpumap for hard affinity
authorDario Faggioli <dario.faggioli@citrix.com>
Tue, 29 Jul 2014 16:06:28 +0000 (18:06 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 30 Jul 2014 11:44:53 +0000 (12:44 +0100)
commitaf589e1a9c77c52be5da84c6eabc92a2bb0e72d2
treea8fa0031ef1a9aa9ea6a733e59cac1d6bbc6c161
parent7e474ba61c2fa6babf77466bbf4ce873733a9670
xl: move away from the use of cpumap for hard affinity

and start using the vcpu_hard_affinity array instead. This is done
as when, in a subsequent patch ("libxl/xl: make it possible to
specify soft-affinity in domain config file") we will become able
to deal with soft affinity, code can be shared.

This change also enables more advanced VCPU to PCPU (hard, for now)
affinity specification, in case a list is used, like:

      cpus = ["3-4", "2-6,^4"]

What it means is that VCPU 0 must be pinned to PCPU 3,4 and VCPU 1
to PCPUs 2,3,5,6 (before this change, cpus=[xx, yy] only supported
single values). Of course, the old (e.g., cpus=[2, 3]) syntax
continues to work.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
docs/man/xl.cfg.pod.5
tools/libxl/xl_cmdimpl.c