xen/arm: if direct-map domain use native addresses for GICv2
authorStefano Stabellini <sstabellini@kernel.org>
Mon, 14 Feb 2022 03:19:52 +0000 (03:19 +0000)
committerJulien Grall <jgrall@amazon.com>
Thu, 17 Feb 2022 19:43:02 +0000 (19:43 +0000)
commitc4f2a96102526e8bc9767238653f6f487cd38403
treedc3a1def5b67eec0f4ef14dde40fcd4ee495c479
parent489859a33681b2921bc08e6c37763fedd2c099d5
xen/arm: if direct-map domain use native addresses for GICv2

Today we use native addresses to map the GICv2 for Dom0 and fixed
addresses for DomUs.

This patch changes the behavior so that native addresses are used for
all domains that are direct-mapped.

NEW VGIC has different naming schemes, like referring distributor base
address as vgic_dist_base, other than the dbase. So this patch also introduces
vgic_dist_base/vgic_cpu_base accessor to access correct distributor base
address/cpu interface base address on varied scenarios,

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Penny Zheng <penny.zheng@arm.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/domain_build.c
xen/arch/arm/include/asm/new_vgic.h
xen/arch/arm/include/asm/vgic.h
xen/arch/arm/vgic-v2.c
xen/arch/arm/vgic/vgic-v2.c