xen/arm: Cap the number of interrupt lines for dom0
authorLukas Juenger <juenger@ice.rwth-aachen.de>
Fri, 5 Apr 2019 13:54:04 +0000 (15:54 +0200)
committerJulien Grall <julien.grall@arm.com>
Mon, 8 Apr 2019 10:24:15 +0000 (11:24 +0100)
commita41feccdb6c03f12bddb4fb650a0465f0ed6eeca
tree01c5466bb40cebb425b7712dcca708dbfbe7f4c2
parent597fbb8be6021440cd53493c14201c32671bade1
xen/arm: Cap the number of interrupt lines for dom0

Dom0 vGIC will use the same number of interrupt lines as the hardware GIC.
While the hardware GIC can support up to 1020 interrupt lines,
the vGIC is only supporting up to 992 interrupt lines.
This means that Xen will not be able to boot on platforms where the hardware
GIC supports more than 992 interrupt lines.
While it would make sense to increase the limits in the vGICs, this is not
trivial because of the design choices.
At the moment, only models seem to report the maximum of interrupt lines.
They also do not have any interrupt wired above the 992 limit.
So it should be fine to cap the number of interrupt lines for dom0 to 992 lines.

Signed-off-by: Lukas Juenger <juenger@ice.rwth-aachen.de>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/setup.c