Skip to content

Commit 0d56099

Browse files
author
Marc Zyngier
committed
Merge branch kvm-arm64/tlbi-fixes-6.12 into kvmarm-master/next
* kvm-arm64/tlbi-fixes-6.12: : . : A couple of TLB invalidation fixes, only affecting pKVM : out of tree, courtesy of Will Deacon. : . KVM: arm64: Ensure TLBI uses correct VMID after changing context KVM: arm64: Invalidate EL1&0 TLB entries for all VMIDs in nvhe hyp init Signed-off-by: Marc Zyngier <[email protected]>
2 parents 5be63fc + ed49fe5 commit 0d56099

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/arm64/kvm/hyp/nvhe/hyp-init.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ alternative_else_nop_endif
130130

131131
/* Invalidate the stale TLBs from Bootloader */
132132
tlbi alle2
133-
tlbi vmalls12e1
133+
tlbi alle1
134134
dsb sy
135135

136136
mov_q x0, INIT_SCTLR_EL2_MMU_ON

arch/arm64/kvm/hyp/nvhe/tlb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ static void exit_vmid_context(struct tlb_inv_context *cxt)
132132
else
133133
__load_host_stage2();
134134

135-
if (cpus_have_final_cap(ARM64_WORKAROUND_SPECULATIVE_AT)) {
136-
/* Ensure write of the old VMID */
137-
isb();
135+
/* Ensure write of the old VMID */
136+
isb();
138137

138+
if (cpus_have_final_cap(ARM64_WORKAROUND_SPECULATIVE_AT)) {
139139
if (!(cxt->sctlr & SCTLR_ELx_M)) {
140140
write_sysreg_el1(cxt->sctlr, SYS_SCTLR);
141141
isb();

0 commit comments

Comments
 (0)