From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796463126; b=Y+WMjErovjbYrjbXd45iI7/rpAmhVrWJ/JdiMVHVwSyNyHIz4vxJUFeIWX9bWy8v3ZbD Kvo8hvbHGBwsoResZCg3qKFJjbbBKezRe5IaSk2AkYvjTSYoespMHPMH3we43Ztv6/Gs/ D74hhiX+6nq1sTTwJdJnEbaGvlMI0nA4o42/D9Zc4LS2ToeAHXGQM6j/dgF2Js8TkDVGc Oa2hmdO8cJRw+5YpT13xCnZQ/+sF6ZmLnubtWsu6tupBcdpaCT0PbOamz+Ov+Mg2z3iw/ dFDRr23LzI5dgRG8NuGQagoucxgB+l4dU7r4apDhL7wxdqR9+E4hZI6nwmrOxbLVTXA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796463126; h=Received:DKIM-Signature:Received:Date:Message-ID:From:To:Cc:Subject: In-Reply-To:References:User-Agent:MIME-Version:Content-Type: X-SA-Exim-Connect-IP:X-SA-Exim-Rcpt-To:X-SA-Exim-Mail-From: X-SA-Exim-Scanned; bh=vovwhRlEjAhID8KRM+YtWJfW+57rJ+lIYcv2uajAgac=; b=UeawJMV/uOb7P76ZLKGShNo2pCJcUCizZ5tuLf4tf8KAsCmAffNh4C1nngubosSzDQHN 7kVcbAQjQorNf8cFDLY009mbi17sHN8ShMGujNUdS6HglnGEPWg6fcYi3gSI7N7bWW3fc OiyzXvLSrUbtqM2YHelpyP9hRYsLOsPRPcpchtBmPIC+TS3iZSrXGRAopPc6M1bmqz6lB P3CpNBdNe/SBW34fd3JOZR40UPc9m4nIvd8nbdrBHGOJBhAbZvoVnEdV2jB2ANO7T2m6o WOz0CoD9yxJjDeiO9NQgWlShcJW5wehvY/32miiIDMogxUK1PdvJtLg7nf7sEMwBlxA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=YQgD8Ew1; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85D5E606A322; Sat, 5 Dec 2026 09:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=YQgD8Ew1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A70D1F00936; Sat, 5 Dec 2026 09:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796463126; bh=vovwhRlEjAhID8KRM+YtWJfW+57rJ+lIYcv2uajAgac=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=YQgD8Ew12RSt8S8mEVQ7ACiYtUFJq3lzVAGW9ZDLo7dY2FfIJZ4IrLWIjmbdQuibA 1dn0CuWVUaQpOsRXD4f/XXBfAh44gezBoDdMywsDjSNlHq2ncZJKhRl+xTpUAYSQIb iJMkfFl3DhBztPOngot3PA82BtgcDUCZRMaVJ9ZLmRH57IAmWQ6Xpbye5A/KyZWT7s x160hlNINy3IBBANdEl4cwylg+MvPt/6CHxIfejd/VnR6LGPioxl02q00kCJgAVz8b IgzFlY8Ot3NSV8Rw2cYhM0oHBbPnz8QJivWfblhOuVqNm4W1z+5oXB+nxGmUdaqdXW 1DtYP5mI+XD4Q== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-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 1xZm7g-00000007Ta6-2mpk; Sat, 05 Dec 2026 09:32:04 +0000 Date: Sat, 05 Dec 2026 09:32:04 +0000 Message-ID: <86se0cvzsb.wl-maz@kernel.org> From: Marc Zyngier To: Justin He Cc: "sashiko-reviews@lists.linux.dev" , "kvmarm@lists.linux.dev" , "kvm@vger.kernel.org" , Oliver Upton , nd Subject: Re: [PATCH v4 4/4] KVM: arm64: nv: Allow the L1 VNCR page in cacheable PFNMAP memory In-Reply-To: References: <20261203105805.165749-1-justin.he@arm.com> <20261203105805.165749-5-justin.he@arm.com> <86zeulwdgn.wl-maz@kernel.org> <86v759vwh4.wl-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) X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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: Justin.He@arm.com, sashiko-reviews@lists.linux.dev, kvmarm@lists.linux.dev, kvm@vger.kernel.org, oupton@kernel.org, nd@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Sat, 05 Dec 2026 01:32:34 +0000, Justin He wrote: > > > -----Original Message----- > > From: Marc Zyngier > [...] > > > Fair point. The goal is strictly cacheable memory outside the linear > > > map that the guest uses as RAM, not device MMIO, and I agree that > > > getting a device mapping wrong on the EL2 fixmap path is not > > > acceptable. > > > > > > Let's drop patch 4 from this series so patches 1-3 (the fixmap offset > > > fix, the AF update SEA fix, and the selftest) can move forward on > > > their own. I'll send v5 with just those three patches if you agree. > > > > I can take those first three patches right as they are, no need to resend. > > > > > If we revisit non-linear-map cacheable RAM for VNCR later, would you > > > prefer an explicit opt-in from the backing memory (similar to > > > VM_MTE_ALLOWED) to rule out arbitrary devices, or should VNCR stay > > > restricted to memory with a linear map / struct page? > > > > The issue is to distinguish RAM from devices when the only thing we > > have for that purpose is a userspace PTE and no notion of which is > > what. Do you see any reliable way to distinguish those? They are both > > flagged PTE_SPECIAL, but that's about it. > > > > I'm not sure what a new flag gives us, to be honest. Ideally, what I'd > > really want is a PTE bit saying "this is memory" or "this is a > > device". But we only have the attributes for this, and I'm worried > > this is not enough... > > Makes sense, thanks! > Since I'd also like to fold in the small selftest fixes Sashiko pointed > out on patch 3 (test_supports_el2(), preserving errno, and SIGALRM > handling), I'm inclined to send a quick 3-patch v5 with just patches 1-3. > Unless you think those fixes aren't worth a respin on their own? Sure, do a v5. There are so many broken things at the moment that it really doesn't matter much. Thanks, M. -- Without deviation from the norm, progress is not possible.