KVM: arm/arm64: timer: Don't set irq as forwarded if no usable GIC
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 7 Dec 2017 11:46:15 +0000 (11:46 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 18 Dec 2017 09:53:23 +0000 (10:53 +0100)
commitf384dcfe4d918c1d80477d290c22ce0093823771
tree4f91db4a2617519c0f61da33971fa2f4cff61a75
parent7839c672e58bf62da8f2f0197fefb442c02ba1dd
KVM: arm/arm64: timer: Don't set irq as forwarded if no usable GIC

If we don't have a usable GIC, do not try to set the vcpu affinity
as this is guaranteed to fail.

Reported-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
include/kvm/arm_arch_timer.h
virt/kvm/arm/arch_timer.c
virt/kvm/arm/arm.c