KVM: arm/arm64: vgic: Allow HW interrupts to be queued to a guest
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 8 Jun 2015 15:06:13 +0000 (16:06 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 12 Aug 2015 10:28:25 +0000 (11:28 +0100)
commit08fd6461e8752d2db233c1f237fa5771bcefc63f
tree4c1e5d2ed88eece78975a83cde1995e7e9e36ae4
parent6c3d63c9a26ba56e2ca63a9f68d52f77ae551d91
KVM: arm/arm64: vgic: Allow HW interrupts to be queued to a guest

To allow a HW interrupt to be injected into a guest, we lookup the
guest virtual interrupt in the irq_phys_map list, and if we have
a match, encode both interrupts in the LR.

We also mark the interrupt as "active" at the host distributor level.

On guest EOI on the virtual interrupt, the host interrupt will be
deactivated.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic.c