]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e195e181acf16d80908464c3ba8004e3731d892
tree4c1e5d2ed88eece78975a83cde1995e7e9e36ae4
parentbaf4819e9ceb2cc8c437bb226eb25230097acd8e
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