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 9B017C3DA7F for ; Fri, 2 Aug 2024 21:58: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=92TC6u4yRr5kOv8sDRSg9egeBP8hH/zt8e/m+2C6aUA=; b=QyL7whBCXGjukW IM9SIpzatOmwCCK6iQP9AqcEhAa+zW5EmcBnK5ndhVB8bjw5SjTzuSakYlZ+GUMxpklQPwDH3S9km o/+wyYJdcilUcM44EggawIqotgKOP9Ei7PedTjZP4+oMfyc07MXojLbWq7i5g2/mGim3WbqWUR/Tz +yi6PrzQ7AARHou85VVJp16mz74YcJSP7zUORNvkyKe5JxCAEO5xaXHxqgiNfwFNttd9O3Oqh8WqO Rqr39vGPcesD702GddDz4z3vKieRNyucyU2QDEAqY5JCl3C4Gzaz1A+XtP1L30bRX8Vn87u1aFsFr QPgHNKvXU+O13JmQiw2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sa0IP-0000000AD7A-0pj4; Fri, 02 Aug 2024 21:58:45 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sa0Ht-0000000ACwp-3OGl for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2024 21:58:15 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 48B3762B69; Fri, 2 Aug 2024 21:58:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 790B3C4AF09; Fri, 2 Aug 2024 21:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722635892; bh=5rpY324QAUYw/QCRlGaB/mwmo5sxb4zpU9KvkLIQAwg=; h=From:Subject:Date:To:Cc:From; b=parNkqDktiCEBtkYowEsLYjkFbEbUSlpXjsEKadKXwyxqPtdYvrdFsaPv3LEHpxIK T5jueDhECXN77lhwjFCf6D7JQm2Ey87kjvosRdcJ4P4NXuDOc20QM30BFdnAadmpX7 NKEK7EpslznGb6Y6oy5oqGOEvCd4dGeTJK1P9POEUoL1JEp27GaT7ECz0fYQ00VZrg NJVGbHWfdg96yCgKnrCxMA7M2mB3mKpntJqwkBSkpJ1hQAqiuL/TDjY5nDDzETBhPe qVSNRhYuarBl8ktWZvVp2sDIK6nv8jjVjw67OkwpnLxz6uDNdxCIg1hvIyLkOSYiY4 v70PVuqWGVZ+g== From: Mark Brown Subject: [PATCH 0/2] KVM: selftests: arm64: Make use of sysreg defintions in get-reg-list Date: Fri, 02 Aug 2024 22:57:52 +0100 Message-Id: <20240802-kvm-arm64-get-reg-list-v1-0-3a5bf8f80765@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAGBWrWYC/x3MSwqAMAwA0atI1gZqLVW8irioNtbgl1REEO9uc fkWMw9EEqYITfaA0MWR9y2hyDMYJrcFQvbJoJU2qlYa52tFJ6s1GOhEoYALxxNdbV1ZGat67yH Fh9DI9z9uu/f9AC7fLdxoAAAA To: Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Paolo Bonzini , Shuah Khan , Catalin Marinas , Joey Gouly Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-37811 X-Developer-Signature: v=1; a=openpgp-sha256; l=1403; i=broonie@kernel.org; h=from:subject:message-id; bh=5rpY324QAUYw/QCRlGaB/mwmo5sxb4zpU9KvkLIQAwg=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBmrVZuHlZ20O3TXuYYEggovZbucwyfka7Jlss0fLq8 QvLGMtOJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZq1WbgAKCRAk1otyXVSH0JIeB/ 9r7dZRNCSJlpRiRquQJLS2vlBBfdcVvkzmT9MucmVbIJTpdaUW2ymLPcviVYIRS+R60xi2XyEAoAgD oQRwU2ctBf7HQr0RYb65Gxkxw15iqRyoX6IzIcgcmKEHjZEel/yrTPnf+OcQzobdueS8a/caS42xI4 uwmiEewlRYDCk7eeiErh+9bt1oryYHnkogxc8psPz7RznXyHapXx7QLQb5Fwbd5hMI7KiW5iMSOkaB 1T44OR/4TWdaiJbDcK3nXVWrnzpiaQRc08AvCHoA/Hp7oMH0yTvwH05uaWHZZZ8RUOFl2b+1649yx8 WHzAiinJAL7Az5dU/F1OdwmzOb+4CV X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240802_145813_947420_44C4E7E4 X-CRM114-Status: UNSURE ( 9.11 ) X-CRM114-Notice: Please train this message. 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 The system register definitions in the arm64 get-reg-list are all done with directly specified magic numbers rather than using the definitions we import from the main kernel. This is error prone, and requires us to audit the additions to get-reg-list separately to what we do when specifying the registers for the main kernel. Since Marc has indicated that this isn't a deliberate or desired choice let's start using the constants we have defined. We first manually update the data used to filter registers based on ID register fields to use a simplified macro that specifies the register and ID field in a muc more compact fashion. This is done first since there is an error in the ID register field for the S1PIE registers. We then replace all the remaining named system register specifications with use of the existing KVM_ARM64_SYS_REG() macro. Signed-off-by: Mark Brown --- Mark Brown (2): KVM: selftests: arm64: Simplify specification of filtered registers KVM: selftests: arm64: Use generated defines for named system registers tools/testing/selftests/kvm/aarch64/get-reg-list.c | 237 ++++++++++----------- 1 file changed, 115 insertions(+), 122 deletions(-) --- base-commit: 8400291e289ee6b2bf9779ff1c83a291501f017b change-id: 20240802-kvm-arm64-get-reg-list-a86a37460bdd Best regards, -- Mark Brown