ARM: new VGIC: Add IRQ sync/flush framework
authorAndre Przywara <andre.przywara@linaro.org>
Wed, 7 Feb 2018 12:26:09 +0000 (12:26 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 28 Mar 2018 17:49:25 +0000 (10:49 -0700)
commit1e8575e7612f9d7e53f041314444e8979d4e4d7b
tree5483fe9fb45c0b7ad0b0f0265391ee60e80edfaa
parent7fbb096bf345a4a441d595ee2efa032517e05c08
ARM: new VGIC: Add IRQ sync/flush framework

Implement the framework for syncing IRQs between our emulation and the
list registers, which represent the guest's view of IRQs.
This is done in vgic_sync_from_lrs() and vgic_sync_to_lrs(), which
get called on guest entry and exit, respectively.
The code talking to the actual GICv2/v3 hardware is added in the
following patches.

This is based on Linux commit 0919e84c0fc1, written by Marc Zyngier.

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