ARM: new VGIC: Add accessor to new struct vgic_irq instance
authorAndre Przywara <andre.przywara@linaro.org>
Wed, 7 Feb 2018 11:42:02 +0000 (11:42 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 27 Mar 2018 19:45:26 +0000 (12:45 -0700)
commitc9c4841374d5eeaf0b36974184e73fa79f0183e0
tree94e22463b2cca9d9304c202961af088401372b4f
parent6248f140b9185f3385a0c33a2b770553f7bf2697
ARM: new VGIC: Add accessor to new struct vgic_irq instance

The new VGIC implementation centers around a struct vgic_irq instance
per virtual IRQ.
Provide a function to retrieve the right instance for a given IRQ
number and (in case of private interrupts) the right VCPU.
This also includes the corresponding put function, which does nothing
for private interrupts and SPIs, but handles the ref-counting for LPIs.

This is based on Linux commit 64a959d66e47, written by Christoffer Dall.

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