ARM: new VGIC: vgic-init: implement vgic_init
authorAndre Przywara <andre.przywara@linaro.org>
Thu, 8 Feb 2018 18:40:45 +0000 (18:40 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 29 Mar 2018 17:37:10 +0000 (10:37 -0700)
commita373635990073ee3cc8df2dbb9696c868fa07114
tree711f50981e87271c49261bcbb9a09cb3a50bc10b
parent848fc5948ac6a2351fb67bd52cde20ccb31e536c
ARM: new VGIC: vgic-init: implement vgic_init

This patch allocates and initializes the data structures used to model
the vgic distributor and virtual cpu interfaces. At that stage the
number of IRQs and number of virtual CPUs is frozen.
Implement the various functions that the Xen arch code is expecting to
call during domain and VCPU setup to initialize the VGIC.
Their prototypes are already in existing header files.

This is based on Linux commit ad275b8bb1e6, written by Eric Auger.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/vgic/vgic-init.c