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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 875A4C77B6C for ; Thu, 13 Apr 2023 00:10:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0KZNzIY3xd26gK3yCn2GbO63rre2G6OXw46aqk0Vkpg=; b=t5booQVHFtsIwa t0Q9wQRqc/RtG6prDa1prElLu92cqNEaciee29kHzJz5bxYj3OwZ4m5EAMu0hbRQ1cbcYrPrCC2vk PjCq5Xze74G/QZUVt1esQHu0kGNqwwX0AKMB6jOoSdOrABYGfXhWJgiJGZ8Lxv/tJgyTyMdR0dPCO +/fDO+lwh/KoK4WOovVOlhg1aLnt8Q6OD5RVU/v8G1MaguywpEJi/FMwwzKOLgNZ36KK/g7qF4TNH JAQvbfUY1+6pIO58KGtydD1E349eVwknTCrF/Cb0zvDS9F2I7dxmufRDTlLHrJIvg78URTunJKuK7 GlWoKSrguHpw5A0D56aw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pmkXX-004fbb-0C; Thu, 13 Apr 2023 00:10:15 +0000 Received: from out-60.mta0.migadu.com ([91.218.175.60]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pmkXU-004fa7-15 for linux-arm-kernel@lists.infradead.org; Thu, 13 Apr 2023 00:10:13 +0000 Date: Thu, 13 Apr 2023 00:10:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1681344604; 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=wt4vsusNSg8/0nu8Bm5XWvB2zO4ZKlMCIL7i+a135ko=; b=pqPkcZy6S9lNv60O6xjf9Of4MIiZzeQEzH3uEimM/yQehZTSUpmjAfEuAWm9VwCuEYU+zo OQJ9QQy5cp+bVYgMYE5YiJJHsUoBk2QV4ZhIQTXaYAju0DZ6sT9Qx00gnIP9eRD5YQjX67 hDdVZvUJs9W7WDOgfCWGns3HyzqBHA8= 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 1/5] KVM: arm64: nvhe: Synchronise with page table walker on vcpu run Message-ID: References: <20230408160427.10672-1-maz@kernel.org> <20230408160427.10672-2-maz@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230408160427.10672-2-maz@kernel.org> X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230412_171012_520264_CA71FAFD X-CRM114-Status: GOOD ( 10.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Apr 08, 2023 at 05:04:23PM +0100, Marc Zyngier wrote: > When taking an exception between the EL1&0 translation regime and > the EL2 translation regime, the page table walker is allowed to > complete the walks started from EL0 or EL1 while running at EL2. > > It means that altering the system registers that define the EL1&0 > translation regime is fraught with danger *unless* we wait for > the completion of such walk with a DSB (R_LFHQG and subsequent > statements in the ARM ARM). We already did the right thing for > other external agents (SPE, TRBE), but not the PTW. > > Rework the existing SPE/TRBE synchronisation to include the PTW, > and add the missing DSB on guest exit. > > Signed-off-by: Marc Zyngier Reviewed-by: Oliver Upton -- Thanks, Oliver _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel