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 EAD52C3DA4A for ; Fri, 2 Aug 2024 13:37:44 +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=2z/1C+AgZ0DbegyJxWx9iy0SCx6LjB3ZJnZ1G8NEpd0=; b=jQ48UjwmooMfoLEchPu/s6U4iZ eV0IYXt7ZgQ9GiFrMA8ly0HTRy6PhzJrxCRJMYJT9e/G3apuXz7gYCnPa3Kdd29SY9PYvhSUPcIjq 4R5t3yar5FJrKMPOITqAYbt5Rs6xSF1fBBMpVmclMB4xwpMjeDQUhST/yby21Q0JO1ZM8/kxy329x 0lF1bWXSOV7GcAYzlP5BWfPgWITQNukHVVjrZG/sAT1iFqOI0Frm65Alh2DnsHq+P6i7T8aQtZTZO 2jukfz6wNFYvdyZ+sakbxY4HPGmvVQHf3tJy7V0/4NVabn7kTQGx5tmxWHDQod/VqbHtXZu/+1vWu szl7adPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZsTG-00000008y7K-1E98; Fri, 02 Aug 2024 13:37:26 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZsSA-00000008xxw-19Od for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2024 13:36:57 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id A8EE262A1F; Fri, 2 Aug 2024 13:36:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56126C32782; Fri, 2 Aug 2024 13:36:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722605777; bh=8StiAuH5ByNU4EjrPJTT/7UntXVKMxJ7YxtTnvcEyxg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LZvQQuGTvIpiS6crUIO6ngLx9lQpIgRiX6EUnj67z9YoAk3ZcDc4YZSh5pa0bJrEA lsz5MvNfhcepkkPfA/pPSA8++iZDuHdD39m+/Zdo+8oAzBKsMuk5/ADyk/tVT1x9HD UrOpP/ape23k0SGgK1PBIIdsTeqkjs8iJGMa8t+6Amgj4voukcZXv+iUX2xoLH0JT0 3OSIEcOqy1Vzoa0l791XIl7L4L8E8xULmAYLbAmDiuur8o1rz3wxgdA9zquKEaXMNV pPo5YeXizEfmMhryhc1IBY7e30XYTZYtvzERg/Lss31EbRXrdoPWQi1UpGjqCWluKe nvevFkc3EiipA== 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.95) (envelope-from ) id 1sZsS7-000APR-1H; Fri, 02 Aug 2024 14:36:15 +0100 Date: Fri, 02 Aug 2024 14:36:14 +0100 Message-ID: <86a5hv11yp.wl-maz@kernel.org> From: Marc Zyngier To: Mark Brown Cc: Oliver Upton , James Morse , Suzuki K Poulose , Paolo Bonzini , Shuah Khan , Catalin Marinas , Joey Gouly , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] KVM: selftests: arm64: Correct feature test for S1PIE in get-reg-list In-Reply-To: <7b9b3ef4-66da-4314-8265-5947998758e9@sirena.org.uk> References: <20240731-kvm-arm64-fix-s1pie-test-v1-1-a9253f3b7db4@kernel.org> <86le1g19aa.wl-maz@kernel.org> <811ea0eb-bc87-4ac3-8bca-27c787e43051@sirena.org.uk> <86jzgz1eqb.wl-maz@kernel.org> <7b9b3ef4-66da-4314-8265-5947998758e9@sirena.org.uk> 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/29.3 (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: broonie@kernel.org, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, pbonzini@redhat.com, shuah@kernel.org, catalin.marinas@arm.com, joey.gouly@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org 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-20240802_063618_418799_22C2847A X-CRM114-Status: GOOD ( 23.78 ) 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, 02 Aug 2024 13:43:03 +0100, Mark Brown wrote: > > [1 ] > On Fri, Aug 02, 2024 at 10:00:28AM +0100, Marc Zyngier wrote: > > > Also, the test predates the generated stuff by some margin. > > Yeah, there were still defines in the main kernel source that were being > retyped rather than shared previously which made me wonder. Definitions in the kernel are likely to exist for a long time though, as the tool is still pretty primitive and doesn't handle anything that changes layout (such as any register affected by E2H). > > > Mark Brown wrote: > > > > I'd certainly be happy to convert, though that does > > > seem a bit invasive for a fix. > > > Not for a point fix, for sure. And if you do, make sure it is entirely > > scripted. > > When you say "entirely scripted" here I take it you're referring to the > list of registers as well, and I guess also to the information about > what is enumerated by which ID register values? The register list is indeed the #1 offender, and that should just be a script that goes over all the occurrences of ARM64_SYS_REG() and replace the encoding with something that uses the symbolic name. For the rest (shifts and stuff), we can probably do that by hand (there are only a few occurrences). M. -- Without deviation from the norm, progress is not possible.