Skip to content
Snippets Groups Projects
Commit 479c5ae2 authored by Marc Zyngier's avatar Marc Zyngier Committed by Christoffer Dall
Browse files

ARM: KVM: add missing dsb before invalidating Stage-2 TLBs


When performing a Stage-2 TLB invalidation, it is necessary to
make sure the write to the page tables is observable by all CPUs.

For this purpose, add a dsb instruction to __kvm_tlb_flush_vmid_ipa
before doing the TLB invalidation itself.

Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
parent 6a077e4a
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,7 @@ __kvm_hyp_code_start: ...@@ -49,6 +49,7 @@ __kvm_hyp_code_start:
ENTRY(__kvm_tlb_flush_vmid_ipa) ENTRY(__kvm_tlb_flush_vmid_ipa)
push {r2, r3} push {r2, r3}
dsb ishst
add r0, r0, #KVM_VTTBR add r0, r0, #KVM_VTTBR
ldrd r2, r3, [r0] ldrd r2, r3, [r0]
mcrr p15, 6, r2, r3, c2 @ Write VTTBR mcrr p15, 6, r2, r3, c2 @ Write VTTBR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment