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 25090CAC5A7 for ; Sun, 21 Sep 2025 11:00:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qXlNho2TRgFT8/cqe8tJ5yK32OzKsQWS4NN5Qn8Dm+c=; b=ClRBcOkEX/WLXWK3lvpakaShSa KyxEngZb1w0wgD5d//M2Ii94cwYoG37WBxyAJc79pmyY9sE4YBhKjq9szR7m8pLYEaGu0um6FEqE+ 1CeuSp+VvcprbRyaewhuY0IML/3kBPMaY7NBQtWnBM+JuYeuuVpMjLLC5Wxtgcs8LnT/krWYKCcqX EdeBi3hJmMke0Q8450KEKlmPneqls8pmnEz/R8f7BQj0AVAhSFy62vfOJWLwsdiKIewuVqlGfLrmi A/1UxUVegJwGqZ8NwCAFfVemgOCVELgk6iWKRjXrtZyW3yplJ0QpxpJqmtv/61DCTWcfunTkQG7sw sOf5md+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v0Hnp-00000007L6D-3FzF; Sun, 21 Sep 2025 11:00:21 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v0Hnm-00000007L5U-2W2p for linux-arm-kernel@lists.infradead.org; Sun, 21 Sep 2025 11:00:20 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 2E61044D0D; Sun, 21 Sep 2025 11:00:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 058E1C4CEE7; Sun, 21 Sep 2025 11:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758452418; bh=mcaq5UETXQW68M5Km24IAUwTvGYTX4atFsOueMZbGpQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=udS1F2ySB4D8hkXwlAnHvYzFs1zz9juYY2mg1t4Bcy+yhN/y5aX4eSJ7cpucxJ2bc Hznv42AbObEd+C1mT5o5y2zay5l0aF7O7HhsJnz+50h3GRKAX1EUrDPWCZC7G9AA1J Cg/jYG40bRQhECniBPcjrSQF6nxUfPeljMfwQ/Vyc1RChyCo8f/H6G9SsTWdFisVSj VoV3iu8SsDPbdjAg/IRFFqxXdQSpvlQ+UiTeOaRxY6isjaP+UO454UzII5bOPq4V/a J21lI0uGTKhw8HNvXbxDuGDWxH8CqadGI67F+A1iL4xemKoSCdQztH+9T31wB9TicV ouX6UPdtBnS2g== Received: from sofa.misterjones.org ([185.219.108.64] helo=lobster-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1v0Hnj-000000089ti-2vFR; Sun, 21 Sep 2025 11:00:15 +0000 Date: Sun, 21 Sep 2025 12:00:15 +0100 Message-ID: <87qzw0xe80.wl-maz@kernel.org> From: Marc Zyngier To: Oliver Upton Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, Joey Gouly , Suzuki K Poulose , Zenghui Yu Subject: Re: [PATCH v2 00/16] KVM: arm64: TTW reporting on SEA and 52bit PA in S1 PTW In-Reply-To: References: <20250915114451.660351-1-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: oliver.upton@linux.dev, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250921_040018_686336_8757BC2B X-CRM114-Status: GOOD ( 28.62 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 19 Sep 2025 23:37:15 +0100, Oliver Upton wrote: > > On Mon, Sep 15, 2025 at 12:44:35PM +0100, Marc Zyngier wrote: > > Yes, $SUBJECT rolls off the tongue. > > > > This series was triggered by the realisation that when injecting an > > SEA while on a S1PTW fault, we don't report the level of the walk and > > instead give a bare SEA, which definitely violates the architecture. > > > > This state of things dates back to the pre-NV days, when we didn't > > have a S1 page table walker, and really didn't want to implement one. > > I've since moved on and reluctantly implemented one, which means we > > now *could* provide the level if we really wanted to. > > > > However, nothing is that simple. The current code in at.c is firmly > > 48bit, as our NV implementation doesn't yet support 52bit PA, while an > > EL1 VM can happily enjoy LPA and LPA2. As a result, it is necessary to > > expand the S1 PTW to support both LPA and LPA2. Joy. > > > > Then, once the above is achieved, we need to hook into the PTW > > machinery to match the first level of the walk that results in > > accessing the faulty address. For this, we introduce a simple filter > > mechanism that could be expanded if we needed to (no, please no). > > > > Finally, we can plug this into the fault injection path, and enjoy > > seeing the translation level being populated in the ESR_ELx register. > > > > Patches on top of 6.16-rc4. I intend to take this into 6.18, so shout > > if you don't like the idea! > > Just some minor gripes, otherwise this LGTM. > > Reviewed-by: Oliver Upton Thanks for spending the time reviewing it and spotting some crucial mistakes. I've applied your suggestions and pushed out the result, which should be in the next -next. M. -- Jazz isn't dead. It just smells funny.