From patchwork Thu Apr 13 11:05:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13210141 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 ED0E0C77B6E for ; Thu, 13 Apr 2023 11:06:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1AXfSteMLtuPZ64reLFgZ2Kp/WbXmWILTLlrEs4wnoI=; b=rdbLjwW4wxFxxZ jpMVEU1fr9RwebMMS6rXMyL69O28xzIHrLlGid3/0AlKNpIFa0WJUxPAxj3BqQ8WEbpSFSM6iP81n 9474unQbOrOd2Ic/xzRjCm8nKQPcdDZoyZPytgxylTeHeWUOUB8S9hj5pQxKZBlYYJPyTh1IwNcqg X7FBotke2AcWjQDur65fPd3tdCk+j3BToLrYYZ/PFB0tBpZPV5ODYoySQYyf+Kj7CtvuissIjmtHS raFP4Rb+oEf1OWP6mtbgXPej965luhQ3lYBZIu45NvSvIHYS6aZuNqDsO2UWi1u/gt4mIR6tFeNWh l9yNGH3j12x1/MnfZ2sg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pmum4-005yXe-2c; Thu, 13 Apr 2023 11:05:56 +0000 Received: from mail-he1eur01on0613.outbound.protection.outlook.com ([2a01:111:f400:fe1e::613] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pmulq-005yMe-12 for linux-arm-kernel@lists.infradead.org; Thu, 13 Apr 2023 11:05:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O1t0EujhGT92ZO0VRsbSyVZGLcHrVw9/yL7lh/S+z7w=; b=ftoASo/RpTdqIIw18M4IR3IM/ay9+m/dMRPnsNIiNe96rCAPesAOqkFhhWynNgMyxoKKCOUAf88FUhSEe8XSMQg7h775Wv3FcbsnjC2K/COc9K4g9ioCo/yUxVIG3eZKA/GEtfBwut3GctZeQtzapBkOv46nm4v8Y9CFjuIU8vY= Received: from AM6P191CA0048.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:7f::25) by DB3PR08MB8817.eurprd08.prod.outlook.com (2603:10a6:10:433::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Thu, 13 Apr 2023 11:05:33 +0000 Received: from AM7EUR03FT055.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:7f:cafe::7d) by AM6P191CA0048.outlook.office365.com (2603:10a6:209:7f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.32 via Frontend Transport; Thu, 13 Apr 2023 11:05:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT055.mail.protection.outlook.com (100.127.141.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30 via Frontend Transport; Thu, 13 Apr 2023 11:05:33 +0000 Received: ("Tessian outbound 99a3040377ca:v136"); Thu, 13 Apr 2023 11:05:32 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: a2f678f9e9c1b3fd X-CR-MTA-TID: 64aa7808 Received: from 0691915492d2.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 47167538-9191-45DA-BBD1-1E3C47CA1E0E.1; Thu, 13 Apr 2023 11:05:24 +0000 Received: from EUR02-AM0-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 0691915492d2.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 13 Apr 2023 11:05:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mQDc1RGZcPhH4k3bI39UuTWENi0jakXIVtUjzpSvyRJr/5cboeWaj9Y643B20ajqDhHpk3KfqVc274nCGePOXCHulG0DBVmLr2rduO8h5sdK4hHijcvvZzl+bnqd70pl7e+87++dJljJjqVWpgDiCR23OI6MDdCD5Aw36GZS3qwcxtaPc+fcQCIdZmthmQYsg0brMjJACIH0xCcXzDHP0+ygUm2KxM1JD3fJ4RJRRXngMVMWyx/y+iXVJzUwezDfN9fRW6N31GfuzvXcFWA++us7smaAZBf4kBtMnv4+sxkIk0eok8zP8gqkSu8wuGP9yt6D/lRj3zDTmFPcKRWyiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=O1t0EujhGT92ZO0VRsbSyVZGLcHrVw9/yL7lh/S+z7w=; b=L/hVxFwfkZDr3eMl6bPRCLjSQPLszJ5XRaiDJUHe88RWsCCKR+ffJC8BAPJIO4Y/d6oxzSn83N+/UtfeG0dykstg5XVtjHfMhfYa3e7kbS2IRlznETnAa1ryZhfwwQgq3rSW0IRXG0gjDtQYHewNvxqj9DEZTaOx6Bmd4Kui2m4RvETrrv/Rrgb3nHjPOfFfoWmVLy4atdWnQEo+zsN8QFlBgHVj0KW1FGEEvBpfOfVPcogqYJDVfKdZop88PEzCpHVtxasPoUj/epO15Y78uhx36MuYrciGZy0jWaUnUbQVFhqcY4r2nsdDEUdefqUunzE8ZyGoj0DqV8gN+DLCwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O1t0EujhGT92ZO0VRsbSyVZGLcHrVw9/yL7lh/S+z7w=; b=ftoASo/RpTdqIIw18M4IR3IM/ay9+m/dMRPnsNIiNe96rCAPesAOqkFhhWynNgMyxoKKCOUAf88FUhSEe8XSMQg7h775Wv3FcbsnjC2K/COc9K4g9ioCo/yUxVIG3eZKA/GEtfBwut3GctZeQtzapBkOv46nm4v8Y9CFjuIU8vY= Received: from DUZP191CA0039.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:4f8::13) by DB9PR08MB9658.eurprd08.prod.outlook.com (2603:10a6:10:461::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Thu, 13 Apr 2023 11:05:18 +0000 Received: from DBAEUR03FT004.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:4f8:cafe::37) by DUZP191CA0039.outlook.office365.com (2603:10a6:10:4f8::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.32 via Frontend Transport; Thu, 13 Apr 2023 11:05:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT004.mail.protection.outlook.com (100.127.142.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6298.30 via Frontend Transport; Thu, 13 Apr 2023 11:05:18 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 13 Apr 2023 11:05:18 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 13 Apr 2023 11:05:17 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.17 via Frontend Transport; Thu, 13 Apr 2023 11:05:17 +0000 From: Joey Gouly To: CC: , , , , , , , , , , Subject: [PATCH v2 08/19] KVM: arm64: Save/restore TCR2_EL1 Date: Thu, 13 Apr 2023 12:05:02 +0100 Message-ID: <20230413110513.243326-9-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230413110513.243326-1-joey.gouly@arm.com> References: <20230413110513.243326-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT004:EE_|DB9PR08MB9658:EE_|AM7EUR03FT055:EE_|DB3PR08MB8817:EE_ X-MS-Office365-Filtering-Correlation-Id: bea4409e-de51-4628-ec2d-08db3c0f0052 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Jb/oSotklt7XP5kO63L8F9FiDimxRzLGXQJJ0cUQl7wWVgxEEkvhSaTWJGlIn5vBKki0WIWCI4BpHDnpaKJdtMX6OR1hy/BdSi8yY6GcX7m5sBqmK2QjG4KdN/HqXHmT9eDq4XRipxTBN077TOEYZZEVemmU94S+iVnRdehqRk1i093EZwOcXo7PM/83lOEpxuvqUWDm8SFpI/3ClqUXpjH3HR4uas80n8KHhZguKY2EWXY2hDIYdyiL5DJDkpCJGlFtShPR23fZz4r2VBANGoJdX2SnMx6MqF/vjs+shBZMYBoC8V2cFcD+Bgqrr4ZggMhdKzROlyWsKQNVVs9S2/dQ4N0Qso6PeMOKj8xtwKajmSzBDN9IXAU8tE9Th6RuauLLxc7wBLhgzRTn3YDlr2IL+YkonApq3W8CB/ljcWArH93d8uoh+HfrvP5Y0kGVGoXr9v+OT++Lr0UxhfdzuSQrXJBvyhKzpJVLTL+ytdA6ZwwCUA9FW4a5y17j0DGPlMQ3wXdgt5TAtaZvq0vOf//zAGxvg6sHqDE96NtZkkGp7yKezbDzgnr/QTuHE6R9+EhCPu4w2+LQeBDhGR5h+G02fqmDLJOiK44mUiiuHTn6SEgSw6LSvcZ6MyT/+i6q0Nivp73/f2zlL5BYAMJhDFntT0tiKuEy+h3sfxFWBwlNOmpguXbcYTkuJZ3Dv9Wnt+4dS7HDXmbC4FLYX9xha8/KB8hukM32/gjpddaxqZk= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(136003)(396003)(376002)(39860400002)(346002)(451199021)(36840700001)(40470700004)(46966006)(316002)(6916009)(4326008)(82740400003)(70206006)(70586007)(2616005)(47076005)(426003)(336012)(5660300002)(41300700001)(44832011)(82310400005)(7696005)(6666004)(36756003)(86362001)(40460700003)(54906003)(40480700001)(26005)(186003)(1076003)(2906002)(83380400001)(8676002)(8936002)(36860700001)(478600001)(356005)(81166007)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB9658 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT055.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 0a1ce1b0-3120-4b40-f27b-08db3c0ef7bc X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: akzFWDdaaOtqIvtVI2Wu69XqzaH0kdMWED4VdNNLk2IZC8NudrQp2YiiQTm7QbiZnNBX15h28N4gLBLzjUdBVG2c8JinCEVr6ZUpfk2ANjjLq6ekh7eYx5cZL30tQrZwBIuj5FC+jo3I3Mn8lHlUy1cta8yZpqfs/G0u6M/lp+qOnWhAPMINpaHUQWpGCxIEXrEYTEzybryxCY5hH7a55Mo2+TDipj8vX0jtPMNtL1imLuMUGt7KMFRmrrCXu/qAQ4ofawfy3eUNb9T4BCDtCXD15Ul8hOJpLW2yqeq2i8jZBVlMt3Wp61/JELCi97N4I91CthwhLvhvLUqRUg9TpqURvWq4oClIpUr+XdwcQyqNsstvWk3LJlrZPJQ/umf3iKh84O8DbjjrmbCe7MlVJiX+Eao8B3T0do7kq3uZLAy0nn/ZKsIQnziaBfVc65oNT6ycuYlBFHpp91I1Pa8G2HvHv6SDN0fK2LchsBN8sDgKfKqd3vWQUWmp13IQ0P1zgW09w93YkiNpoMS+qcxrSJg2KvqHWhWwGXvGfslDaITLnOSIb9RDNqCXhBiFF//d1XNgo4bNO0oPkI6YtC4luWvYigjbWWjaSyRtOSytS1tZz4i8tnuz7rwA+aL1F1VC7g/sQWT0FGCuaNY8r8G7DZNVn0vj2evxmNzfINGwzmW8V+ZMhVOaTetcHAjLDexH17tf9udWxuJZ+j91IZP9yQ== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230028)(4636009)(346002)(136003)(39850400004)(376002)(396003)(451199021)(40470700004)(46966006)(36840700001)(8936002)(5660300002)(44832011)(82310400005)(70206006)(41300700001)(86362001)(316002)(40460700003)(6916009)(8676002)(2906002)(54906003)(47076005)(7696005)(478600001)(107886003)(6666004)(40480700001)(1076003)(36756003)(26005)(70586007)(82740400003)(4326008)(336012)(186003)(426003)(81166007)(2616005)(83380400001)(36860700001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2023 11:05:33.0042 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bea4409e-de51-4628-ec2d-08db3c0f0052 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT055.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR08MB8817 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230413_040542_376791_39353BB2 X-CRM114-Status: GOOD ( 10.87 ) 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 Define the new system register TCR2_EL1 and context switch it. Signed-off-by: Joey Gouly Cc: Marc Zyngier Cc: Oliver Upton Cc: James Morse Cc: Suzuki K Poulose Cc: Zenghui Yu Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Catalin Marinas --- arch/arm64/include/asm/kvm_host.h | 1 + arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h | 4 ++++ arch/arm64/kvm/sys_regs.c | 1 + 3 files changed, 6 insertions(+) diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index bcd774d74f34..e1137832a01f 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -269,6 +269,7 @@ enum vcpu_sysreg { TTBR0_EL1, /* Translation Table Base Register 0 */ TTBR1_EL1, /* Translation Table Base Register 1 */ TCR_EL1, /* Translation Control Register */ + TCR2_EL1, /* Extended Translation Control Register */ ESR_EL1, /* Exception Syndrome Register */ AFSR0_EL1, /* Auxiliary Fault Status Register 0 */ AFSR1_EL1, /* Auxiliary Fault Status Register 1 */ diff --git a/arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h b/arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h index 699ea1f8d409..16199a107a47 100644 --- a/arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h +++ b/arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h @@ -44,6 +44,8 @@ static inline void __sysreg_save_el1_state(struct kvm_cpu_context *ctxt) ctxt_sys_reg(ctxt, TTBR0_EL1) = read_sysreg_el1(SYS_TTBR0); ctxt_sys_reg(ctxt, TTBR1_EL1) = read_sysreg_el1(SYS_TTBR1); ctxt_sys_reg(ctxt, TCR_EL1) = read_sysreg_el1(SYS_TCR); + if (cpus_have_final_cap(ARM64_HAS_TCR2)) + ctxt_sys_reg(ctxt, TCR2_EL1) = read_sysreg_el1(SYS_TCR2); ctxt_sys_reg(ctxt, ESR_EL1) = read_sysreg_el1(SYS_ESR); ctxt_sys_reg(ctxt, AFSR0_EL1) = read_sysreg_el1(SYS_AFSR0); ctxt_sys_reg(ctxt, AFSR1_EL1) = read_sysreg_el1(SYS_AFSR1); @@ -114,6 +116,8 @@ static inline void __sysreg_restore_el1_state(struct kvm_cpu_context *ctxt) write_sysreg_el1(ctxt_sys_reg(ctxt, CPACR_EL1), SYS_CPACR); write_sysreg_el1(ctxt_sys_reg(ctxt, TTBR0_EL1), SYS_TTBR0); write_sysreg_el1(ctxt_sys_reg(ctxt, TTBR1_EL1), SYS_TTBR1); + if (cpus_have_final_cap(ARM64_HAS_TCR2)) + write_sysreg_el1(ctxt_sys_reg(ctxt, TCR2_EL1), SYS_TCR2); write_sysreg_el1(ctxt_sys_reg(ctxt, ESR_EL1), SYS_ESR); write_sysreg_el1(ctxt_sys_reg(ctxt, AFSR0_EL1), SYS_AFSR0); write_sysreg_el1(ctxt_sys_reg(ctxt, AFSR1_EL1), SYS_AFSR1); diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c index 53749d3a0996..5e7e4a433035 100644 --- a/arch/arm64/kvm/sys_regs.c +++ b/arch/arm64/kvm/sys_regs.c @@ -1871,6 +1871,7 @@ static const struct sys_reg_desc sys_reg_descs[] = { { SYS_DESC(SYS_TTBR0_EL1), access_vm_reg, reset_unknown, TTBR0_EL1 }, { SYS_DESC(SYS_TTBR1_EL1), access_vm_reg, reset_unknown, TTBR1_EL1 }, { SYS_DESC(SYS_TCR_EL1), access_vm_reg, reset_val, TCR_EL1, 0 }, + { SYS_DESC(SYS_TCR2_EL1), NULL, reset_unknown, TCR2_EL1 }, PTRAUTH_KEY(APIA), PTRAUTH_KEY(APIB),