linux/virt/kvm/arm/vgic
Andre Przywara 3802411d01 KVM: arm64: vgic-its: Connect LPIs to the VGIC emulation
LPIs are dynamically created (mapped) at guest runtime and their
actual number can be quite high, but is mostly assigned using a very
sparse allocation scheme. So arrays are not an ideal data structure
to hold the information.
We use a spin-lock protected linked list to hold all mapped LPIs,
represented by their struct vgic_irq. This lock is grouped between the
ap_list_lock and the vgic_irq lock in our locking order.
Also we store a pointer to that struct vgic_irq in our struct its_itte,
so we can easily access it.
Eventually we call our new vgic_get_lpi() from vgic_get_irq(), so
the VGIC code gets transparently access to LPIs.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
2016-07-18 18:14:36 +01:00
..
vgic-init.c KVM: arm64: vgic-its: Connect LPIs to the VGIC emulation 2016-07-18 18:14:36 +01:00
vgic-irqfd.c KVM: arm/arm64: vgic-new: Wire up irqfd injection 2016-05-20 15:40:08 +02:00
vgic-its.c KVM: arm64: vgic-its: Connect LPIs to the VGIC emulation 2016-07-18 18:14:36 +01:00
vgic-kvm-device.c KVM: arm64: vgic-its: Introduce new KVM ITS device 2016-07-18 18:14:35 +01:00
vgic-mmio-v2.c KVM: arm/arm64: vgic: Add refcounting for IRQs 2016-07-18 18:10:48 +01:00
vgic-mmio-v3.c KVM: arm64: vgic-its: Implement basic ITS register handlers 2016-07-18 18:14:36 +01:00
vgic-mmio.c KVM: arm64: vgic-its: Introduce ITS emulation file with MMIO framework 2016-07-18 18:14:35 +01:00
vgic-mmio.h KVM: arm64: vgic-its: Implement basic ITS register handlers 2016-07-18 18:14:36 +01:00
vgic-v2.c KVM: arm/arm64: vgic: Add refcounting for IRQs 2016-07-18 18:10:48 +01:00
vgic-v3.c KVM: arm64: vgic-its: Connect LPIs to the VGIC emulation 2016-07-18 18:14:36 +01:00
vgic.c KVM: arm64: vgic-its: Connect LPIs to the VGIC emulation 2016-07-18 18:14:36 +01:00
vgic.h KVM: arm64: vgic-its: Introduce new KVM ITS device 2016-07-18 18:14:35 +01:00