]> 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)
commit32316fd4da2c9284bc8b2c7dbb7d71472d77d9e5
tree4c1e5d2ed88eece78975a83cde1995e7e9e36ae4
parenta3576d5fce6f4082589e16ec6c739b31088b5f8d
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