[PATCH v2 4/5] KVM: arm64: vhe: Synchronise with page table walker on MMU update

Oliver Upton oliver.upton at linux.dev
Wed Apr 12 17:11:19 PDT 2023


On Sat, Apr 08, 2023 at 05:04:26PM +0100, Marc Zyngier wrote:
> 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 at kernel.org>

Reviewed-by: Oliver Upton <oliver.upton at linux.dev>

-- 
Thanks,
Oliver



More information about the linux-arm-kernel mailing list