]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: vgic: Relax vgic_can_sample_irq for edge IRQs
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 5 Jun 2015 15:45:29 +0000 (16:45 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 12 Aug 2015 10:28:25 +0000 (11:28 +0100)
commitb3d2b80a11bce47eec6c7e27216c53528f088022
treefd49027377ed9b91dfe1ad9768f0e76f3561e4a8
parent2c13847e0bf09db59bcb84252122ec5bc815f4c7
KVM: arm/arm64: vgic: Relax vgic_can_sample_irq for edge IRQs

We only set the irq_queued flag for level interrupts, meaning
that "!vgic_irq_is_queued(vcpu, irq)" is a good enough predicate
for all interrupts.

This will allow us to inject edge HW interrupts, for which the
state ACTIVE+PENDING is not allowed.

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