diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2016-03-03 18:43:58 +0300 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-03-09 07:24:09 +0300 |
commit | 0d98d00b8d80bfdee95cf7e85f20f107377e2662 (patch) | |
tree | 0962d058aec3a40e6e6488856e6a3b4a5f89f2c5 /arch/arm64/include/asm/kvm_asm.h | |
parent | 84e8b9c88d5fe9c9a59ed24ae44d7ac0983df92b (diff) | |
download | linux-0d98d00b8d80bfdee95cf7e85f20f107377e2662.tar.xz |
arm64: KVM: vgic-v3: Reset LRs at boot time
In order to let the GICv3 code be more lazy in the way it
accesses the LRs, it is necessary to start with a clean slate.
Let's reset the LRs on each CPU when the vgic is probed (which
includes a round trip to EL2...).
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/kvm_asm.h')
-rw-r--r-- | arch/arm64/include/asm/kvm_asm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_asm.h b/arch/arm64/include/asm/kvm_asm.h index 1037392ae134..2d02ba67478c 100644 --- a/arch/arm64/include/asm/kvm_asm.h +++ b/arch/arm64/include/asm/kvm_asm.h @@ -42,6 +42,7 @@ extern void __kvm_tlb_flush_vmid(struct kvm *kvm); extern int __kvm_vcpu_run(struct kvm_vcpu *vcpu); extern u64 __vgic_v3_get_ich_vtr_el2(void); +extern void __vgic_v3_init_lrs(void); extern u32 __kvm_get_mdcr_el2(void); |