ARM: GICv3: use hardware GICv3 redistributor values for Dom0
authorAndre Przywara <andre.przywara@linaro.org>
Fri, 9 Mar 2018 15:11:18 +0000 (15:11 +0000)
committerJulien Grall <julien.grall@arm.com>
Mon, 12 Mar 2018 11:14:18 +0000 (11:14 +0000)
commitd99e4f60422416ae4ef1e5feb3c1e9a5861ebb80
tree97538dbc7e17a661b47d8eae4848f5392a16bb86
parent2bb950b8d911d7ec104144fc43b48c7a0d90583a
ARM: GICv3: use hardware GICv3 redistributor values for Dom0

The code to generate the DT node or MADT table for Dom0 reaches into the
domain's vGIC structure to learn the number of redistributor regions and
their base addresses.
Since those values are copied from the hardware, we can as well use
those hardware values directly when setting up the hardware domain.

This avoids the hardware GIC code to reference vGIC data structures.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/gic-v3.c