Skip to content

Commit 38ce26b

Browse files
committed
KVM: arm64: Don't zero VTTBR in __tlb_switch_to_host()
HCR_EL2.TGE=0 is sufficient to disable stage-2 translation, so there's no need to explicitly zero VTTBR_EL2. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
1 parent 6465e26 commit 38ce26b

File tree

1 file changed

+0
-1
lines changed
  • arch/arm64/kvm/hyp/vhe

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ static void __tlb_switch_to_host(struct tlb_inv_context *cxt)
6666
* We're done with the TLB operation, let's restore the host's
6767
* view of HCR_EL2.
6868
*/
69-
write_sysreg(0, vttbr_el2);
7069
write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2);
7170
isb();
7271

0 commit comments

Comments
 (0)