ARM: new VGIC: vgic-init: register VGIC
authorAndre Przywara <andre.przywara@linaro.org>
Thu, 8 Feb 2018 18:44:38 +0000 (18:44 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 29 Mar 2018 17:36:54 +0000 (10:36 -0700)
commit3a238e4763e81f78c2730a92598bca94b20db5f4
tree361d498795a696af39cddd7e95eb018d45381dfe
parent8578e5e76047fb70bf66787a041c2460798ce00f
ARM: new VGIC: vgic-init: register VGIC

This patch implements the function which is called by Xen when it wants
to register the virtual GIC.
This also implements vgic_max_vcpus() for the new VGIC, which reports
back the maximum number of VCPUs a certain GIC model supports. Similar
to the counterpart in the "old" VGIC, we return some maximum value if
the VGIC has not been initialised yet.

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 [new file with mode: 0644]
xen/arch/arm/vgic/vgic.c
xen/arch/arm/vgic/vgic.h