]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: vgic: Don't notify EOI for non-SPIs
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 23 Nov 2016 10:11:21 +0000 (10:11 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 24 Nov 2016 13:12:07 +0000 (13:12 +0000)
commitfb235014df07d8458361427d528c2d343ceeae80
tree36a6040fc4a057981d20ff9d3b0e72a8e1ec8ca7
parentc0d00fc3fcf3e16f5df979e127aa8e61801564e6
KVM: arm/arm64: vgic: Don't notify EOI for non-SPIs

When we inject a level triggerered interrupt (and unless it
is backed by the physical distributor - timer style), we request
a maintenance interrupt. Part of the processing for that interrupt
is to feed to the rest of KVM (and to the eventfd subsystem) the
information that the interrupt has been EOIed.

But that notification only makes sense for SPIs, and not PPIs
(such as the PMU interrupt). Skip over the notification if
the interrupt is not an SPI.

Cc: stable@vger.kernel.org # 4.7+
Fixes: bf43c8e6d89c ("KVM: arm/arm64: vgic-new: Add GICv2 world switch backend")
Fixes: 52009e766c56 ("KVM: arm/arm64: vgic-new: Add GICv3 world switch backend")
Reported-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic-v2.c
virt/kvm/arm/vgic/vgic-v3.c