ARM: new VGIC: Handle virtual IRQ allocation/reservation
authorAndre Przywara <andre.przywara@linaro.org>
Wed, 7 Feb 2018 13:57:39 +0000 (13:57 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 28 Mar 2018 18:21:03 +0000 (11:21 -0700)
commitfac8124ec1cb2ae433c2fc8d1a9b8ee326e3bea6
tree7f7fad843125956824598e05771b86756bd7b359
parent5baec9af20bd7e077a3d96c61b298593c3717eac
ARM: new VGIC: Handle virtual IRQ allocation/reservation

To find an unused virtual IRQ number Xen uses a scheme to track used
virtual IRQs.
Implement this interface in the new VGIC to make the Xen core/arch code
happy.
This is actually somewhat VGIC agnostic, so is mostly a copy of the code
from the old VGIC. But it has to live in the VGIC files, so we can't
easily reuse the existing implementation.

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