Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4215306rba; Tue, 2 Apr 2024 10:22:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUc6VH/ABXAeRfTK++ofrk1ZAAjoheQorrYrxLKtRHFwcgqc6tdwBeXdzB/HbiHyL5lQ9CqkoLydB+u8vNQKmdFHbhhbMdLtFo3Dr2rbg== X-Google-Smtp-Source: AGHT+IHEvToz5hNF/b6Dxdvr/mQljZmOqyGU5cyiBeTErWMLG2ZPwuKoic1WSL6bqGcN93xUrB+Q X-Received: by 2002:a05:6402:2695:b0:56c:5a49:736 with SMTP id w21-20020a056402269500b0056c5a490736mr11419577edd.9.1712078531007; Tue, 02 Apr 2024 10:22:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712078530; cv=pass; d=google.com; s=arc-20160816; b=c4uJ7tnh2XzuZBF0egusYhHnBfmDJGsne1se+t5QtbqlpKqBeW/tk2NiBr6Jb68zFR YeZFwOmfyNuQu70BHoiBzJSwFwSBRA/HiGclRv8hnNq25Ocsc8JOPY8rdmrpMxjEhCAP Zdq+WoY+CA4OhEFUlTjeSd/267q5oQKJDjU8RhmnYsf33/pj75vmioF5hqBDIylJYgFH ZuH09JWdNAIVIMtHcahp+HdVGxGxVwUZgmYl1S7C0lLPJX2PTvQXlbsmKlyFtf2Npfcp SXCpA3w/L6KRtsJd/KViITHG3fuZWb7qWrbzjw8tOcDFbcMD2UeYqox+fjPbpeyx9A4Y kAnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=P9VXjtqOqtAzV9N0vnjAqenhgLZ6/P8iL2NFgQ4cEA4=; fh=tSp6ma9Jv3sLN3eTW97gLZpmtk82Mj/RjOKh/tYGhYM=; b=b7IP4T1d7c3gKJ48G1x7KzaN8Eo79gOU4lipB8bUxv+wQxG7z2QrLT7QcF3KZ5Ktsl iD0bmzvGkb28cmtRuJINabPln/bcwmirpGo99Y1L7UbChCsemK/WbnrCwlVHyeEwb5fi YyuuHWabEaiwjy+9kw6V8t0bez5r0spKxb8BMaC2b+hSnhbEmxEyoEZx5WUODRUQJ1KD +mM3U4QUKRIa7EpgXgG88EL5D2jCTG871XIykvD1Yk3PPtuJjU5BmxmFMSwn9JImno5U qoQ22nTGMgkFVIs+2laeLfTQb10AyAE27Uv3CVAhJQqs3yytt9lw/6nwyMnPRBJ29erm VQFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rUsFC7g0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128418-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128418-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w7-20020a05640234c700b0056bf2e861cesi6233200edc.236.2024.04.02.10.22.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 10:22:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128418-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rUsFC7g0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128418-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128418-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C10B61F227CD for ; Tue, 2 Apr 2024 17:22:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCDFB15A498; Tue, 2 Apr 2024 17:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rUsFC7g0" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C969D159915; Tue, 2 Apr 2024 17:22:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712078521; cv=none; b=lZ8WfDYuC9kl+bOSgieuvlOVNc2HbgfCLWnb5pa+5X6vn+EMubyAXgJ5LdFAKwaNj8ASD939tEsUEiT6MuM4CIvdgSlJ5mfmyTBwtpcYvR/fT0CbjTyvEJ5pNlf8uMpPjisrea3rNs4hxQG+j5mTEuwbUd5sQK5yDK0HaKDnzGk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712078521; c=relaxed/simple; bh=H8uWhCo1O/OYYi2drPcE1c99n/60JeLgX1yS8IFjOsk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JGjNJvIGiGFxZ35jwloiqOyX4lx1s7uKAagoiaDbI6kFisY5rIQHe7dCCwMtSZUPhlAN3SpNNa9DtWbtyJKI6VDlkLQyR+FzTMr6O+gYwE6uF83XOnsZrbys24cOTWffYgrkhfy7Lf/LKtdQsbcBFKiOpOh/O51Visq3xBA0CkA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rUsFC7g0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A42F3C43390; Tue, 2 Apr 2024 17:21:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712078521; bh=H8uWhCo1O/OYYi2drPcE1c99n/60JeLgX1yS8IFjOsk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rUsFC7g0Q8/lx515dHicpBE0b06tm9dIdiVGdJrsr/6FaGJR6vinlLAZH9bgWuqvl f4m31h7gXvhkrs0Dl8t1ul36NFUo6zzgt3NSRwa3AZxkWbcqfLL+Vlm95Rdg+9Dv8C WROYbTvaWiWyVC7ninEYSu2rSblY5/Pb1IXjdYYsIFsuw49/0sFPUwVcyf5kdR92rr KYKKG/aeS2u88JSqQHabJxVZo6DzmwNi1Acf2aV65bvZp9NvABFZtzSW/dL1Dv87dL ybQ6VcrhQTLubmx+epTLdNltL5zoO8PwmeYkORVX/BkT3fbVJSo+kxqxJjejJooHH9 FYkLS5oUeTWng== Date: Tue, 2 Apr 2024 18:21:55 +0100 From: Mark Brown To: Marc Zyngier Cc: Catalin Marinas , Will Deacon , Oliver Upton , James Morse , Suzuki K Poulose , Jonathan Corbet , Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Dave Martin , kvmarm@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v6 2/5] KVM: arm64: Add newly allocated ID registers to register descriptions Message-ID: <73c6012f-adb0-470b-bd47-6093d28aea97@sirena.org.uk> References: <20240329-arm64-2023-dpisa-v6-0-ba42db6c27f3@kernel.org> <20240329-arm64-2023-dpisa-v6-2-ba42db6c27f3@kernel.org> <87le5ysm4l.wl-maz@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pwE/A28+XRVGQBHe" Content-Disposition: inline In-Reply-To: <87le5ysm4l.wl-maz@kernel.org> X-Cookie: Knowledge is power. --pwE/A28+XRVGQBHe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Mar 31, 2024 at 11:59:06AM +0100, Marc Zyngier wrote: > Mark Brown wrote: > > The 2023 architecture extensions have allocated some new ID registers, add > > them to the KVM system register descriptions so that they are visible to > > guests. > > We make the newly introduced dpISA features writeable, as well as > > allowing writes to ID_AA64ISAR3_EL1.CPA for FEAT_CPA which only > > introduces straigforward new instructions with no additional > > architectural state or traps. > FPMR actively gets trapped by HCRX_EL2. Sure, I'm not clear what you're trying to say here? The "no additional" bit is referring to FEAT_CPA. > > - ID_UNALLOCATED(6,3), > > + ID_WRITABLE(ID_AA64ISAR3_EL1, ~(ID_AA64ISAR2_EL1_RES0 | > > + ID_AA64ISAR3_EL1_PACM | > > + ID_AA64ISAR3_EL1_TLBIW)), > > ID_UNALLOCATED(6,4), > > ID_UNALLOCATED(6,5), > > ID_UNALLOCATED(6,6), > Where is the code that enforces the lack of support for MTEFAR, > MTESTOREONLY, and MTEPERM for SCTLR_ELx, EnPACM and EnFPM in HCRX_EL2? Could you please be more explicit regarding what you're expecting to see here? Other than the writeability mask for the ID register I would have expected to need explicit code to enable new features rather than explicit code to keep currently unsupported features unsupported. I'm sure what you're referencing will be obvious once I see it but I'm drawing a blank. > And I haven't checked whether TLBI VMALLWS2 can be trapped. I didn't see anything but I might not be aware of where to look, there doesn't seem to be anything for that specifically in HFGITR_EL2 or HFGITR2_EL2 which would be the main places I'd expect to find something. --pwE/A28+XRVGQBHe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmYMPrIACgkQJNaLcl1U h9CulwgAgH5V5RmaWYuHCCBQIUQDkouUTMklMpA9Df1ChBIBvmW1OZl0PeW56Sui 640DAUobRml9J+gh6HsMUS3vnRLyGP11gEhxxTccwvoKuxH6ZsiBUaXkdN+f2Qfv R8XxRO7JYoC7un2DPg2IjgAuyEX9OB8XzPmnRnFj276YjsQHy/oYUkwqemOMCMvB 3/rWpnLsoQ6/UC0RAfXCqN5jTPVG2fVBEFKcyiFi3eLqBxdDF/ugPgTIHtgP31Fz rPtAVmzDu6El/d+hpIqAtb70IH/mk8uqYzd1EoTuiTZlGnsIoZLjn5Yft89t0Ets B51k7JPujYgRrvFdBiC0WlPL3wYmjg== =Xh1Z -----END PGP SIGNATURE----- --pwE/A28+XRVGQBHe--