tools/libxl: Set 'reg' of cpu node equal to MPIDR affinity for domU
authorChen Baozi <baozich@gmail.com>
Tue, 30 Jun 2015 08:00:19 +0000 (16:00 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 3 Jul 2015 10:11:27 +0000 (11:11 +0100)
commit6c3e223420e38de9af384ab2ab3d3833b8fbc4f0
treebb41a5b6165fd179f16b1de429e7f6ffeb109a28
parentd79ddf72454c1cadc7921c1b06b9322290e6610c
tools/libxl: Set 'reg' of cpu node equal to MPIDR affinity for domU

According to ARM CPUs bindings, the reg field should match the MPIDR's
affinity bits. We will use AFF0 and AFF1 when constructing the reg value
of the guest at the moment, for it is enough for the current max vcpu
number.

Signed-off-by: Chen Baozi <baozich@gmail.com>
Reviewed-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_arm.c