KVM: arm/arm64: Check that system supports split eoi/deactivate
authorChristoffer Dall <cdall@linaro.org>
Tue, 6 Dec 2016 21:00:52 +0000 (22:00 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 6 Nov 2017 15:23:10 +0000 (16:23 +0100)
commitd33a3c8c48c3264419a683885a27a5c85df35f12
tree0b860ec9cbfeffe9cfec56483ea44ceddec41f19
parent006df0f34930e18d0aa52f05705bdfe1fc565943
KVM: arm/arm64: Check that system supports split eoi/deactivate

Some systems without proper firmware and/or hardware description data
don't support the split EOI and deactivate operation.

On such systems, we cannot leave the physical interrupt active after the
timer handler on the host has run, so we cannot support KVM with an
in-kernel GIC with the timer changes we are about to introduce.

This patch makes sure that trying to initialize the KVM GIC code will
fail on such systems.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
drivers/irqchip/irq-gic-v3.c
drivers/irqchip/irq-gic.c