]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: vgic: Reevaluate level sensitive interrupts on enable
authorAlexandru Elisei <alexandru.elisei@arm.com>
Wed, 7 Aug 2019 09:53:20 +0000 (10:53 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 9 Aug 2019 07:07:26 +0000 (08:07 +0100)
commit7ad7edf84a8b706a04f18fbaf5be6f7b0afa00d8
tree66a8b7eca67057f45e431a66d52675c0477e74c5
parent5bf179a5d2931d17c9dbf1e7194c273b88df18d6
KVM: arm/arm64: vgic: Reevaluate level sensitive interrupts on enable

A HW mapped level sensitive interrupt asserted by a device will not be put
into the ap_list if it is disabled at the VGIC level. When it is enabled
again, it will be inserted into the ap_list and written to a list register
on guest entry regardless of the state of the device.

We could argue that this can also happen on real hardware, when the command
to enable the interrupt reached the GIC before the device had the chance to
de-assert the interrupt signal; however, we emulate the distributor and
redistributors in software and we can do better than that.

Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
virt/kvm/arm/vgic/vgic-mmio.c