Skip to content

Commit dc0dddb

Browse files
willdeaconMarc Zyngier
authored andcommitted
KVM: arm64: Invalidate EL1&0 TLB entries for all VMIDs in nvhe hyp init
When initialising the nVHE hypervisor, we invalidate potentially stale TLB entries for the EL1&0 regime using a 'vmalls12e1' invalidation. However, this invalidation operation applies only to the active VMID and therefore we could proceed with stale TLB entries for other VMIDs. Replace the operation with an 'alle1' which applies to all entries for the EL1&0 regime, regardless of the VMID. Cc: Marc Zyngier <[email protected]> Cc: Oliver Upton <[email protected]> Fixes: 1025c8c ("KVM: arm64: Wrap the host with a stage 2") Signed-off-by: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
1 parent 7c626ce commit dc0dddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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

0 commit comments

Comments
 (0)