xen/arm: Set 'reg' of cpu node for dom0 to match MPIDR's affinity
authorChen Baozi <baozich@gmail.com>
Tue, 30 Jun 2015 08:00:20 +0000 (16:00 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 3 Jul 2015 10:11:27 +0000 (11:11 +0100)
commitc81a791d34bbe42beda40bcb157a144af1733f29
tree11bdf134455b31c8f187052afdec43d9da58bfd6
parent6c3e223420e38de9af384ab2ab3d3833b8fbc4f0
xen/arm: Set 'reg' of cpu node for dom0 to match MPIDR's affinity

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>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@citrix.com>
[ ijc -- use PRIx64 to format mpidr_aff in node name, fixing 32-bit
         build ]
xen/arch/arm/domain_build.c