From patchwork Thu Aug 22 01:15:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13772390 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7047C52D7C for ; Thu, 22 Aug 2024 01:24:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 617476B013E; Wed, 21 Aug 2024 21:24:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5C6186B0142; Wed, 21 Aug 2024 21:24:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 423496B0143; Wed, 21 Aug 2024 21:24:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 228FE6B013E for ; Wed, 21 Aug 2024 21:24:10 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id D249FA1210 for ; Thu, 22 Aug 2024 01:24:09 +0000 (UTC) X-FDA: 82478135418.21.6AD2512 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf30.hostedemail.com (Postfix) with ESMTP id 6BFE48000F for ; Thu, 22 Aug 2024 01:24:06 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=iEBEIs5j; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf30.hostedemail.com: domain of broonie@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=broonie@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724289758; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=zpawyuS9B9pFyqPLeUbWVN8Oj0MRjkReuUsUVFsBJLs=; b=4gKK2dZyB6kjTxNyKgyxlOUQWklFdvC4xsLaaNkbOSrlvlT84rNYBDjdAQp/5EQrz6k+J6 g3qedKE5BqBBSq4GiYW9mD0A6xBbbhT04Jf9aDWNsmYBHRqxVYxwWJLe2pgePkAmIxQ5B2 NX5r7skEkjiilM5C7BkfpTy9gxnGeZo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724289758; a=rsa-sha256; cv=none; b=GuAunT1KVCjXu2RQdvfsURW+5QgwdD1AdJqZnG8APA8PEisRrYp8TV3gMktCQT70PEdx6M jYKbQpBVzDsC8lbg7nbu8CUALvYl6PXUm5RrRsZrI8xMftjrJ+5cQ3QMlUdi0hrrwCx93w nv253Dif7G+KjDUNfeQ2Foli5iiuSYw= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=iEBEIs5j; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf30.hostedemail.com: domain of broonie@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=broonie@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id B9638CE0B61; Thu, 22 Aug 2024 01:24:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B08CC32781; Thu, 22 Aug 2024 01:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724289844; bh=W5oN69xYg0RDvkVAq7OBhN9me4eHC7ENTR8wdYTObEg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=iEBEIs5j4ESOyOuAI+C1WdLslac5LfFf4kq+lkNdmDRnyIC5yWmiqWDSMJJspLip0 ml9uTFJFpjA0iZB8kpDqcRdUVrEAN3rgae1b0KWClRy/Dt5K3C0ScTk7Y4SWdSQ+0J J9ynhy9+9DciCFx1xbPMettqUNcK0C/8oPiqZYnE2aLmN//nbDx9gRXLGbrz6FOC9N QJZK6dQb2Eneww26LRoFWKUpXmLr8bA0krMzkGL40Umad43ef518YlBAcLdGrQ/xva UmXJOYn+WGgW0hN/+th9qactP+9HaSOVf/vKYQVY8GyrjynJ7JP8i2m+nC2YGho1yB C5cIrr/0/qsMQ== From: Mark Brown Date: Thu, 22 Aug 2024 02:15:42 +0100 Subject: [PATCH v11 39/39] KVM: selftests: arm64: Add GCS registers to get-reg-list MIME-Version: 1.0 Message-Id: <20240822-arm64-gcs-v11-39-41b81947ecb5@kernel.org> References: <20240822-arm64-gcs-v11-0-41b81947ecb5@kernel.org> In-Reply-To: <20240822-arm64-gcs-v11-0-41b81947ecb5@kernel.org> To: Catalin Marinas , Will Deacon , Jonathan Corbet , Andrew Morton , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Arnd Bergmann , Oleg Nesterov , Eric Biederman , Shuah Khan , "Rick P. Edgecombe" , Deepak Gupta , Ard Biesheuvel , Szabolcs Nagy , Kees Cook Cc: "H.J. Lu" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Florian Weimer , Christian Brauner , Thiago Jung Bauermann , Ross Burton , Yury Khrustalev , Wilco Dijkstra , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Brown X-Mailer: b4 0.15-dev-37811 X-Developer-Signature: v=1; a=openpgp-sha256; l=2418; i=broonie@kernel.org; h=from:subject:message-id; bh=W5oN69xYg0RDvkVAq7OBhN9me4eHC7ENTR8wdYTObEg=; b=owGbwMvMwMWocq27KDak/QLjabUkhrRjE52aWuqWJvl43G370Cb14vXG7leGPtlWHj9eFSeamTBo X9LqZDRiYWDkYpAVU2RZ+yxjVXq4xNb5j+a/ghnEygQyhYGLUwAu0sP+veD2HY0mXtEA/3Nzfa4Jyf PZBDNMzlaYvXxd9UdPmQeKau5R/7pmxk1bVJ80KV7nZ/iJg4lH3l6T79aqUAtX1T7NdHV6wdU22f2z DoV6ifrOnBJdf1xGTvvHPIXgYzx+IXyfDnGuTNt9Jn1zzH2fmQqTrCclRJxxLr+9bOLp1XfPyQj6yc /iSVB6KvkueNHaLp8L5yP/BqR1nWaqPGK77aHK4sT4ptQ/SlOm5x6/HTXHf7th4Q1tZn217NVH7xju 0hSU+cvxlVlNNSErf+uMqFO19qckeCd42zv9/LSrXmn+w9OaR+uVBaI+iD31MpvczNFmEhmVLF5/wT fTwpAtSN7+ZuDJ9Z9Es+4WMQIA X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 6BFE48000F X-Stat-Signature: pedtati7me5w5bcqofdgrjo8xgrg3dgg X-Rspam-User: X-HE-Tag: 1724289846-316775 X-HE-Meta: U2FsdGVkX1/qkq51IHe2WHCBF9DuBVOVkfwNuIqPtH0vnqfaNyJW1CW4NCcmuR5goDNlf9kkteW49TUiA7aZbsAaDL+2+M6JRzuJA4s0IhVD8PHpvLVrgbOv7kNIcwMaJUdZPoOyo8ZJkVEhA/LkgOtWOg/iLapGh/tcv4CqW8DkEB6ewtMQU+I5hy3S2j5kSx5RMjhHk9LX+XargCgIf+QxFdM5Fyn4JzZfRHnIROJ0JqYpyc1jyRDeBrwE0WdJQvQEejJnGJ0mwe/UfJyq1wN7bS9TrgooYvHUAfp2MUa1NK5ywhu9L3c9XtFpl+BQ2+KoByEmBEq46Knj1kvRil32vT7xObm2/LdnpjXDxRZnqPUPT2nYJ2yWJ2vmTArari4AqvP1FMCYt328Tp6/9BcHfGyQ2aDUhy3l/EutGCBDWGi1PrQNdN6p8L66dQgaVdaHEMV+06dcVet4yW0sNCcP4QfPkfrKWTMpFOEatq31KtqUn7jYNTls8s9esbNbRkZzT0RMo0uyJ47x0b6loXrs3AvvqCt8JqEjrc/PX7hd0CicdsNfw2Xk548w/jC7HTs4oQzSn2ttscPWdL8vgprCiggudsL1pMZJRuVmiWRC3TonanhufzGpMO8aMigg0L7xBHQZnu5dh/bGM+vybV0pc7P2Ml0xnj7NxOLoXAKigGAHZf+qFKboXsOFpIk1gjPJg0ZG66Zp7l3trZ5upW3MexNyHShWhgDdPdrYku6g/oCC7AT+UpHcg+/rESc2SiPmfOuWIwgSkvxReiyvNLjXhI/BPgSa9O0CIt7IN+bhaHp8Jf/YxMJna+JbeOb/7wkbinzs8h6NGXNTDeXHjYambH/0/JydxreN3z7Bv+k/w2jfnDKzvx6aMY7axMDozDuWeebld3QTbaB0dH74D4QaF5a7uJwONnStrUzPEk9XBO29Nhsx6sKkSxUS7Kxx0UGmFp1/kB0wh8lCGez wuXOi8wt cw9UFRr8wIpRaXUWpdznOrV06QnVGhRsGAIiOx+zJgLGmnONpvPKTNKgkNZeAlw3DU+Fy29kKvEFMVm8H8gT+67PMYL6W/y+h/BB0rCRESWo43WRrB/G+ALO/mmOTh2d28sdxfi4ryyFCku9bZN9Og3jBMRHA16eHoom5AM6PSuLT1SYIQPVhtZVG5PB/7rtN8U2JRBtz6AxkwQu/9KrKmubQ78nLohl1EFyQosDxEiS7UJo7vMIHzCgoE2IlpXegV0hz5JWc/Uw6lcWvRxCTv0X4X8mLA7m3QQZUvJSaOF1iAx7+kMa7ta+K9AqYY58LKS9z0oKagzM8Cu5hEyj+HSmHaQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: GCS adds new registers GCSCR_EL1, GCSCRE0_EL1, GCSPR_EL1 and GCSPR_EL0. Add these to those validated by get-reg-list. Reviewed-by: Thiago Jung Bauermann Signed-off-by: Mark Brown --- tools/testing/selftests/kvm/aarch64/get-reg-list.c | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tools/testing/selftests/kvm/aarch64/get-reg-list.c b/tools/testing/selftests/kvm/aarch64/get-reg-list.c index 709d7d721760..9785f41e6042 100644 --- a/tools/testing/selftests/kvm/aarch64/get-reg-list.c +++ b/tools/testing/selftests/kvm/aarch64/get-reg-list.c @@ -29,6 +29,24 @@ static struct feature_id_reg feat_id_regs[] = { 0, 1 }, + { + ARM64_SYS_REG(3, 0, 2, 5, 0), /* GCSCR_EL1 */ + ARM64_SYS_REG(3, 0, 0, 4, 1), /* ID_AA64PFR1_EL1 */ + 44, + 1 + }, + { + ARM64_SYS_REG(3, 0, 2, 5, 1), /* GCSPR_EL1 */ + ARM64_SYS_REG(3, 0, 0, 4, 1), /* ID_AA64PFR1_EL1 */ + 44, + 1 + }, + { + ARM64_SYS_REG(3, 0, 2, 5, 2), /* GCSCRE0_EL1 */ + ARM64_SYS_REG(3, 0, 0, 4, 1), /* ID_AA64PFR1_EL1 */ + 44, + 1 + }, { ARM64_SYS_REG(3, 0, 10, 2, 2), /* PIRE0_EL1 */ ARM64_SYS_REG(3, 0, 0, 7, 3), /* ID_AA64MMFR3_EL1 */ @@ -40,6 +58,12 @@ static struct feature_id_reg feat_id_regs[] = { ARM64_SYS_REG(3, 0, 0, 7, 3), /* ID_AA64MMFR3_EL1 */ 4, 1 + }, + { + ARM64_SYS_REG(3, 3, 2, 5, 1), /* GCSPR_EL0 */ + ARM64_SYS_REG(3, 0, 0, 4, 1), /* ID_AA64PFR1_EL1 */ + 44, + 1 } }; @@ -460,6 +484,9 @@ static __u64 base_regs[] = { ARM64_SYS_REG(3, 0, 2, 0, 1), /* TTBR1_EL1 */ ARM64_SYS_REG(3, 0, 2, 0, 2), /* TCR_EL1 */ ARM64_SYS_REG(3, 0, 2, 0, 3), /* TCR2_EL1 */ + ARM64_SYS_REG(3, 0, 2, 5, 0), /* GCSCR_EL1 */ + ARM64_SYS_REG(3, 0, 2, 5, 1), /* GCSPR_EL1 */ + ARM64_SYS_REG(3, 0, 2, 5, 2), /* GCSCRE0_EL1 */ ARM64_SYS_REG(3, 0, 5, 1, 0), /* AFSR0_EL1 */ ARM64_SYS_REG(3, 0, 5, 1, 1), /* AFSR1_EL1 */ ARM64_SYS_REG(3, 0, 5, 2, 0), /* ESR_EL1 */ @@ -475,6 +502,7 @@ static __u64 base_regs[] = { ARM64_SYS_REG(3, 0, 13, 0, 4), /* TPIDR_EL1 */ ARM64_SYS_REG(3, 0, 14, 1, 0), /* CNTKCTL_EL1 */ ARM64_SYS_REG(3, 2, 0, 0, 0), /* CSSELR_EL1 */ + ARM64_SYS_REG(3, 3, 2, 5, 1), /* GCSPR_EL0 */ ARM64_SYS_REG(3, 3, 13, 0, 2), /* TPIDR_EL0 */ ARM64_SYS_REG(3, 3, 13, 0, 3), /* TPIDRRO_EL0 */ ARM64_SYS_REG(3, 3, 14, 0, 1), /* CNTPCT_EL0 */