KVM: arm/arm64: timer: Workaround misconfigured timer interrupt
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 16 Aug 2016 14:03:02 +0000 (15:03 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 17 Aug 2016 10:23:47 +0000 (12:23 +0200)
commitcabdc5c59ab46a1ec5ea98c5ac4022111fbfd63a
tree42a9e42c4682c9c98131ad7ef61dfc9081db0664
parent674e70127069f3fd3c58fb0f94c60eb0f6567d78
KVM: arm/arm64: timer: Workaround misconfigured timer interrupt

Similarily to f005bd7e3b84 ("clocksource/arm_arch_timer: Force
per-CPU interrupt to be level-triggered"), make sure we can
survive an interrupt that has been misconfigured as edge-triggered
by forcing it to be level-triggered (active low is assumed, but
the GIC doesn't really care whether this is high or low).

Hopefully, the amount of shouting in the kernel log will convince
the user to do something about their firmware.

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