From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBB70C77B6C for ; Thu, 13 Apr 2023 00:11:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229622AbjDMAL0 (ORCPT ); Wed, 12 Apr 2023 20:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbjDMALZ (ORCPT ); Wed, 12 Apr 2023 20:11:25 -0400 Received: from out-11.mta1.migadu.com (out-11.mta1.migadu.com [95.215.58.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E1A0B3 for ; Wed, 12 Apr 2023 17:11:24 -0700 (PDT) Date: Thu, 13 Apr 2023 00:11:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1681344683; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/xuOUgwS7TiFTRCp7ny40dhXaDJWfispO1TUSx/Mbis=; b=b+vcXBq5wvyopZkHQAHD0NtZXphddOBWAPktMo4f69NnKfebtEF46yZUg7HUtmelvVLg1R doFyHmUTgqvYxljC5p+HVfGeT8UFIA4tMXL/xhSC+ft+cDOUQoZ/O4Hfe1IBlV/paD9HiY VcFtRAjNPuZqRduARLxik/Pl0nqtX2U= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Marc Zyngier Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, James Morse , Suzuki K Poulose , Zenghui Yu , Will Deacon Subject: Re: [PATCH v2 4/5] KVM: arm64: vhe: Synchronise with page table walker on MMU update Message-ID: References: <20230408160427.10672-1-maz@kernel.org> <20230408160427.10672-5-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230408160427.10672-5-maz@kernel.org> X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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 Reviewed-by: Oliver Upton -- Thanks, Oliver