diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2017-12-07 11:46:15 +0000 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2017-12-18 10:53:23 +0100 |
commit | f384dcfe4d918c1d80477d290c22ce0093823771 (patch) | |
tree | 4f91db4a2617519c0f61da33971fa2f4cff61a75 /include | |
parent | 7839c672e58bf62da8f2f0197fefb442c02ba1dd (diff) | |
download | linux-stable-f384dcfe4d918c1d80477d290c22ce0093823771.tar.gz linux-stable-f384dcfe4d918c1d80477d290c22ce0093823771.tar.bz2 linux-stable-f384dcfe4d918c1d80477d290c22ce0093823771.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/kvm/arm_arch_timer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/kvm/arm_arch_timer.h b/include/kvm/arm_arch_timer.h index 6e45608b2399..9da6ce22803f 100644 --- a/include/kvm/arm_arch_timer.h +++ b/include/kvm/arm_arch_timer.h @@ -62,7 +62,7 @@ struct arch_timer_cpu { bool enabled; }; -int kvm_timer_hyp_init(void); +int kvm_timer_hyp_init(bool); int kvm_timer_enable(struct kvm_vcpu *vcpu); int kvm_timer_vcpu_reset(struct kvm_vcpu *vcpu); void kvm_timer_vcpu_init(struct kvm_vcpu *vcpu); |