From patchwork Thu Aug 1 12:07:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13750419 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 D17ADC3DA4A for ; Thu, 1 Aug 2024 13:02:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 502346B00DB; Thu, 1 Aug 2024 09:02:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 489AC6B00DD; Thu, 1 Aug 2024 09:02:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 302166B00DE; Thu, 1 Aug 2024 09:02:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 0ED306B00DB for ; Thu, 1 Aug 2024 09:02:05 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id BC4A1A0D8F for ; Thu, 1 Aug 2024 13:02:04 +0000 (UTC) X-FDA: 82403689368.30.7684592 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf24.hostedemail.com (Postfix) with ESMTP id 55FB5180032 for ; Thu, 1 Aug 2024 13:02:02 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=EOypttz1; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf24.hostedemail.com: domain of broonie@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=broonie@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722517280; a=rsa-sha256; cv=none; b=TE4yOZr+1tOVx/J/Bn1CA+k/vnu3oZYcBg+a3KoRMQie0ORoDMbxu98YDA73WGUbpO3kDV PSi+4xtxCOQiLBN3c+1Fkk+4tpsCnvZ3yv0veO4H1bu2WnW03kwX4Y0ys245JLNNcF8eeC GjeeW0KUETnOJaD/MygBzH4q5163Fgk= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=EOypttz1; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf24.hostedemail.com: domain of broonie@kernel.org designates 139.178.84.217 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=1722517280; 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=KgFh/BxEiZ/ikilMITQSdKhachKnnW9R3XZwoyVpr3A=; b=qsfGO5IZ8tn4yQEQZ1MSiZu4NWk7XTbsZM/nmjeXbh8mGL4tBSyQoUPfeOxqrJTEQYJRqV nSkZSyvgjAGHG8dyWy+TPndqLvwYxg6UUO/WtTAl6bl1FYc5BNU6xrRACTr3GLCZQCluQ+ BHhChwglBx7bxhHZ9fD+MnWkUJBh/HU= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 663806287C; Thu, 1 Aug 2024 13:02:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4528C4AF0A; Thu, 1 Aug 2024 13:01:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722517321; bh=2o7H97U54cEmD5Tv71kF1eEpEycy3n5iAga6TGpYn58=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=EOypttz1iUC6Oqt2kwkwmd4hYK/iYBJyUlsSGBCxML2MrAMFnoFqWmEE8yplv/Zf2 g8lM4YlFhj9+fdD1LFcVHcxhbj4wVXGv9AFclgyBJJdQI8TN26iUHLke/PjeQJ6pha qtzIUteV2oxLMg4GPFfIUSHThfXVm5pvBCWlc0/TXAbN+PB65tYEWVsOkGR0/ooeu3 wR3cCoXFofGIvrX3WiieIBTXZzDojnzLlQJTv+YC7WLr+WhDa3+nuZN0FbZnNlAel4 HYAP0fEe7Pdb1UGWHxPOw1/2ocSKJhL8rPBXlAIPbaw2nrLP0p+9aBvD0dE10tKzcX caaPVWssBnNAw== From: Mark Brown Date: Thu, 01 Aug 2024 13:07:07 +0100 Subject: [PATCH v10 40/40] KVM: selftests: arm64: Add GCS registers to get-reg-list MIME-Version: 1.0 Message-Id: <20240801-arm64-gcs-v10-40-699e2bd2190b@kernel.org> References: <20240801-arm64-gcs-v10-0-699e2bd2190b@kernel.org> In-Reply-To: <20240801-arm64-gcs-v10-0-699e2bd2190b@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 , 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=2352; i=broonie@kernel.org; h=from:subject:message-id; bh=2o7H97U54cEmD5Tv71kF1eEpEycy3n5iAga6TGpYn58=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBmq4Yl2GIZXXyTb/zmM1+n2z4UQxnV39+pL7mDiQag cFTi6HGJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZquGJQAKCRAk1otyXVSH0PXDB/ 4j5qGQGsGNdUNY04r8BP8DhGZFseiQkyBLks8Be56HfC2p51Bs37kAiCN7vw5o6FNjV7nHuKordgf8 yw8h5xIw20SOGbtSiJzK+Ytmcij7dKixG3lRNnjLjqaDdEBHYQd36UkkNAQgXrVYEHb3uGUdeSe4Pf bVg2h3X4uA2HXpmx1Re6duBQnFxQkT9rwDaPrUVUJ8O1yGDA6GES8iwokMeuWIm1IuG8kk4/ryxjLS MQuOjZLd4+rfnA99YvtwSC6d7LH3XTe6kZlg8lx4hPJ/2a1XoSi//5g2fntfcaHvPuz/xHErMA3FRH FgQKeE4l1SWZJYN8U5tIpu0CgGk3wq X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Rspamd-Queue-Id: 55FB5180032 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: bba6gk6uy5jr1uirrxf3wi5177x13ata X-HE-Tag: 1722517322-743481 X-HE-Meta: U2FsdGVkX191X3VopBFYGo6U/BH7F8cioM9Rz+YGrA4qbPbFGM4TYfFwav+QdZNgPQ8+XHpwcVlHlUQcqfhfwMNkT9aRjNcTbZa8+CkdFRBiysUKStjzhAczAuazPKlBhhzHHGfX3x59K/IHj4X7KX0WEL/FLChzGcozTVki/ABdu4gZtevwYidsHEARzDtr9uXAaBuGKGQa7NtoWYDE28SQpbj1gRbSaYHM0P85Y4M2MbBaUoqI8eTwYChHMc3JYicDiOYaZeAWo388RA6FFaTLHU3mtWRpKjNHjkyRI23qCS8QaI/0/WHa59c6bdw9ARI+PxNQPu/+8+VHY6XGZcifgx/MmCBY/fp3TQLpTgr3EtwAPNKu8kwaFjqdriGAG/ZSA3ae1HSUSwcf0mcEiq/ueAnDUSL9qdAG9MOVj7YFplSrPiqRmS8LOciS081mFXcCeWgyyJ6XhhaWIZARgmb+DIBLh4MsD9jZA1op9g8cbRHzQmYyNEpy9phgSBbkWT2xjomdDsLOKdz/DPF1gA5dTQYygpVBbdyYIkteg3GOrQ4iRbvRYoJeZf9Y+EmyJieyruLAbJ1Gw+ZDBzRq6e7C7jk5sTBBYlXXIP3TV3e0Ndvcb27VSxqAm5DYLQQ6XqVZoKBxN0fGjkBlhcvM3Nu8Vrs50i3lhiiSbwUFeihxw4ld1MfyOYzgUzPhYAio2WesgxO0PmLB1xx154QpdXLRrRvuCvfaWdMnrYgYIFwf89hXbipalz538bITZkryofqU8MWWO78N3Z6eFVPWoEbRDbQ/C6G8jVG6rh+uPQM7aLJLL94ULvPHupIWthGeYSItY46bbQginM7JpEnO/Ifkbd8/65HHt/6/VBX8lvt96Q4k4SBEAk7qk8nuHIUEZ0vGgdyWl0UMKEm2BGtd331m5khvmm+NknXdCVknF2CiESYIWHToRABFZ+bAZg/GhdfkrjMRpUisKUoWBUw STqDCMsQ wE8HXt3/c6ngbe/u+xP6uNRDrtc9q17GhZbyHt0uVYC/IHZa7jUDTlaNWFdaXNq0G2YcPMNk/PIR08srsauVH68ffDmqNoi8VoXj/i5ZwfASdPIbD7OcbW7Rqz+b2mlA7EbCK4O1lPlOjAay3fkfbAM13DmfrsRA0eDAgGooS5G1mU2C3ZV+beUtS2tdXMABdgL3fnVUPWylldFLxAUpU3Cin5ocwhMFe4yGw3CLOFUjH5LRN75Rb4hXZyyMKql1G7rsmlCLTOynbEUkYYIspTYyDXB+Kc5bFEjXdsY7vHUvavbuQvKy3qDfljsby69Mtbfuv 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. 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 */