]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Fix emulated ptimer irq injection
authorAndrew Jones <drjones@redhat.com>
Mon, 27 May 2019 11:46:19 +0000 (13:46 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 19 Jun 2019 14:47:52 +0000 (15:47 +0100)
commitc3a24da47c534d884915ef06f39cbe88612209ee
treefaad5eee971b557bd98b020ae964a0a5735f81f1
parentd222c844bec04bdd3f05546abddd43d34a817619
KVM: arm/arm64: Fix emulated ptimer irq injection

The emulated ptimer needs to track the level changes, otherwise the
the interrupt will never get deasserted, resulting in the guest getting
stuck in an interrupt storm if it enables ptimer interrupts. This was
found with kvm-unit-tests; the ptimer tests hung as soon as interrupts
were enabled. Typical Linux guests don't have a problem as they prefer
using the virtual timer.

Fixes: 3e394f096d99d ("KVM: arm/arm64: Rework the timer code to use a timer_map")
Signed-off-by: Andrew Jones <drjones@redhat.com>
[Simplified the patch to res we only care about emulated timers here]
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/arch_timer.c