KVM: arm64: vhe: Synchronise with page table walker on MMU update
authorMarc Zyngier <maz@kernel.org>
Sat, 8 Apr 2023 16:04:26 +0000 (17:04 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 14 Apr 2023 07:23:29 +0000 (08:23 +0100)
commit1ff2755d6800d60bee96fb303cbbf30f9bb483a2
tree5dc09efa2f0fadf17bca930d2b920bbb894f1131
parent8442d65373c6316876208c1ad27729e9682fa3cf
KVM: arm64: vhe: Synchronise with page table walker on MMU update

Contrary to nVHE, VHE is a lot easier when it comes to dealing
with speculative page table walks started at EL1. As we only change
EL1&0 translation regime when context-switching, we already benefit
from the effect of the DSB that sits in the context switch code.

We only need to take care of it in the NV case, where we can
flip between between two EL1 contexts (one of them being the virtual
EL2) without a context switch.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/vhe/sysreg-sr.c