Message ID | 20230413110513.243326-11-joey.gouly@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 ABBD4C77B6C for <linux-arm-kernel@archiver.kernel.org>; Thu, 13 Apr 2023 11:07:35 +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=LsIoxj5fC7oW7CFcr3CyrAAwfVTK6swswj4xFyruTuQ=; b=Gn6JvGlC0tDxfv 1IkF5h3YsObrhzq8iTkHktG0VwqTRZicu9Al4Wd6xhXDO2jfJ+a6JywY5oMqaN3VjCVXGyP4XCtid P3z91540sS00+DSLj/TJTsn9L7w6j6xmFj3i9udoZ0P/UzHG4YUJ178nMfNQDKCwniG6VohRxa5s9 wc020g6IeuAq26LoJYEPuZIKy4oy0xf5TYRnHc1Fb0RO3W3izG/NmqMldBoh1JIrgH2SaJEkIy/MQ Vao4W9rmK2uBVxgnlIXXnkNbBduCEFxAavIr4B2L6jkDOMQ81xrS1MGgZa01qBG4n0pGcDZG+qixX /ftjN3IH9AImdZ+mBYeA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pmumf-005yzP-1G; Thu, 13 Apr 2023 11:06:33 +0000 Received: from mail-db5eur01on061d.outbound.protection.outlook.com ([2a01:111:f400:fe02::61d] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pmulu-005yPw-03 for linux-arm-kernel@lists.infradead.org; Thu, 13 Apr 2023 11:05:47 +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=6IG1pGvR2SOIGK/SlwDl17GiwczO7MutrOpMIXB6rOw=; b=l79ustBXfPwymdUmusOVtBQhrw+EB/Oc8Drfy+ti9JeaxGwI5K5aEiMlyQBAI08pFfU8CwsDfduuYwYqMBnocV3U8lSmgW7wWLwmVidCwEC9STwQ/HQ2fdRDgxNoomRZTMGPbF0NRihWkSsuerPW3jgeRA/J/IIviSeIpmLn3lI= Received: from AS8PR04CA0137.eurprd04.prod.outlook.com (2603:10a6:20b:127::22) by DU0PR08MB8836.eurprd08.prod.outlook.com (2603:10a6:10:47d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.28; Thu, 13 Apr 2023 11:05:34 +0000 Received: from AM7EUR03FT046.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:127:cafe::46) by AS8PR04CA0137.outlook.office365.com (2603:10a6:20b:127::22) 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:34 +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 AM7EUR03FT046.mail.protection.outlook.com (100.127.140.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.31 via Frontend Transport; Thu, 13 Apr 2023 11:05:34 +0000 Received: ("Tessian outbound 5154e9d36775:v136"); Thu, 13 Apr 2023 11:05:34 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2ae3c030c0d9bd4e X-CR-MTA-TID: 64aa7808 Received: from 63b6d75bd939.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 0439C67F-5849-4F47-A63A-DD0BA3D99872.1; Thu, 13 Apr 2023 11:05:26 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 63b6d75bd939.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 13 Apr 2023 11:05:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g6XWOgIcdh8gMUUdkyVurGku1rIPO8/DmygGhwluidZLw0AureMcLH3XTtdDhOllxISeYBDZEH1f/NeqwCW3AQfl3wGBY1mGCZ2sr2gRSJ70/rKboh+njvJ7euA2aygLK5zowrYd1eRGw4wMKdeoYg+CynlFbV2EuHEwbWj00zZ1j+lqnIXE0v3DUJysOFm0SELI8R5tbVp1KQkEIvMsTmWpcuoU0hopb++yA93M6Vb9A34/fT5z410k4NSTLGwE1Uk7brEsG5zcUSkHoSy1C9Fb7/BpgdCTBSXWFHj9VFZcnwGdcvu2TIIGO0uVlDhluNX1o22UNvTrCHQudSMh+w== 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=6IG1pGvR2SOIGK/SlwDl17GiwczO7MutrOpMIXB6rOw=; b=Uv81ubpOjMOkVR063GXw4WF+t8Mm51I42LJeFAjssoE4RuHpNz0QTPedeC7DXXO2NHf0u71CiGjGraqLEDG6eTqkSYcVaCFBZ2OIoM0DEERDxGxIyCwp0YyMCBcZsZCJtWPuottncvHKC7VDUDPDH60bRoq9aRgxeYFGx4veHE0tLDchNoJ6e0lMDYgGMrOV25X3ebdyNbDW2Vj9t9M+zQcV20Nqm4X+h23m9A5d2ZuA9+UeX7QTPh30iNWJuUIrktoR5QHqPdLjMBEGjpowR/yplc+d6YcovD9yvs29csjadqLPBV84VY78ePdcJ5T3IVUdzctGgaTKMiHk9yX5hQ== 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=6IG1pGvR2SOIGK/SlwDl17GiwczO7MutrOpMIXB6rOw=; b=l79ustBXfPwymdUmusOVtBQhrw+EB/Oc8Drfy+ti9JeaxGwI5K5aEiMlyQBAI08pFfU8CwsDfduuYwYqMBnocV3U8lSmgW7wWLwmVidCwEC9STwQ/HQ2fdRDgxNoomRZTMGPbF0NRihWkSsuerPW3jgeRA/J/IIviSeIpmLn3lI= Received: from AS9PR06CA0424.eurprd06.prod.outlook.com (2603:10a6:20b:49e::8) by GV1PR08MB8641.eurprd08.prod.outlook.com (2603:10a6:150:82::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35; Thu, 13 Apr 2023 11:05:24 +0000 Received: from AM7EUR03FT045.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:49e:cafe::e6) by AS9PR06CA0424.outlook.office365.com (2603:10a6:20b:49e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.31 via Frontend Transport; Thu, 13 Apr 2023 11:05:24 +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 AM7EUR03FT045.mail.protection.outlook.com (100.127.140.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6298.31 via Frontend Transport; Thu, 13 Apr 2023 11:05:24 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX04.Arm.com (10.251.24.32) 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:18 +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:18 +0000 From: Joey Gouly <joey.gouly@arm.com> To: <linux-arm-kernel@lists.infradead.org> CC: <nd@arm.com>, <broonie@kernel.org>, <catalin.marinas@arm.com>, <james.morse@arm.com>, <joey.gouly@arm.com>, <mark.rutland@arm.com>, <maz@kernel.org>, <oliver.upton@linux.dev>, <suzuki.poulose@arm.com>, <will@kernel.org>, <yuzenghui@huawei.com> Subject: [PATCH v2 10/19] KVM: arm64: expose ID_AA64MMFR3_EL1 to guests Date: Thu, 13 Apr 2023 12:05:04 +0100 Message-ID: <20230413110513.243326-11-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: AM7EUR03FT045:EE_|GV1PR08MB8641:EE_|AM7EUR03FT046:EE_|DU0PR08MB8836:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b8df19d-c1e0-4c76-585a-08db3c0f012b 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: Pwwtz2vkSOW5mezgYu5YerPW64foU+uWP9R6DaEjh/04LDBDdC92tmPGo0KHBfqddJDTV6lSxQI2E3UfJKzuGaSX/1AttFJ5SBsKHStKP7/QN73USkS+Enhq9tQoeSKUzK4JZAm3JdBtFiBvzY/ZxGbEBrMkB4k3GckbQ4TsHiZAjNpYE1p7UFJz0x8h5ifNJlVT9tbaJDMFz9vaLL61kw4K6TziAfP3B5wcKS+7I+J/Tn2WmAWfCOFX9p9fTdts1iKBi40i6aQdt3niXs6oJ/ov74Czqez2HVLXOxx8E3eUmjidsx91N7OJkQAK2SLph+dj0u846LLpEpaacMwexVv6S2EShsY6eGVUOb79DzUE5wnl8R9JpWWhPzRtr1ktDcKhMWdl0pvulNU5j70a2tUDf7CnLcbVjju8A6xszR72UPMgm1I7OB5YJ1ksWqP+dvS/lEhsgNOBe1IJENnDJv3sF9jCipgA8a3ylAeNobcXRUZFmEhVv7uh1sIW4WfFGAwTkQYJzHvC+/olCT52DslUgjBy344QwwKdiwCSwamCtHr99cRHH0GuSp5EcH/jxBkd41tQDWRpFsN/TREDu5osdDvxPRFltedHH0l7e7OiNBCMDkGxSV93u1iXHe56BjAp6wREkP0YJGF78/LViFUfaqEsqhViy5GYaITtHVECu+JwQWdFKYrpoxOEJB1L7gjwZSnTPsWUNmyyca1p7gqtgtToa4VMQEPgQ4Aprxg= 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)(376002)(39860400002)(346002)(396003)(136003)(451199021)(36840700001)(40470700004)(46966006)(478600001)(7696005)(83380400001)(40480700001)(36756003)(47076005)(356005)(81166007)(82740400003)(426003)(336012)(2616005)(86362001)(36860700001)(2906002)(316002)(26005)(186003)(1076003)(54906003)(5660300002)(44832011)(82310400005)(6916009)(6666004)(8936002)(41300700001)(40460700003)(8676002)(4326008)(70206006)(70586007)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8641 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f180f1f1-d919-4e5c-4f07-08db3c0efb23 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qgxpbscw+a+wZhYSZ31Oi1qNUQlGK51uVNdye0ClGJd+EHiE2N8F4S9D5LiTKQl8BA1t7jf9/+3nywgWyadFrwZkyUKUG26rrXa2J101mTZy5Hk7qeFEeUSnzJG/v4UB3MHShyRcN6N1uhSuMnnCgs5vcRGaZ/y5kP6q6UJYZHC/iB4jN0WD+ITE7g9qN8YWnpjMAoajddCS3aqnCEXAjzglDrg0cnnXMd1jAVVfXMbQV8nMyB+qJU5Gi8RTYsKqhnwmVroIMRucNAEv8tATsX5p+ksRsnhObQjp7VyRi26xet1WMW3SvR+oRZ3w3FI6Q/QjIeMm4wkmJoNoMm34jnA7sIkEgMj9GEZ2VcH3bFC6G5KNmK0Tcx/JD04KtI6PTf478pNGrH1Id5qEPtVzm7LhI5OjE+GENJnr+FwrqRPygPyLW3AxsZ/mDmE1wHDr8vVEkfmcR6ysLljrP+DV1L5l76gSw9YYY5KAYQ/oXKAhA808o8ca771F/S2rFFeSJ8ILXoEYVQI2p52Gu7gAvyKpa5mrimjfZ/Us26Wh8mtn7qdpEtcfcfulaD2JwGuGrS+XvWK1eaEd1xHeJ9fUVyJ7zkIX+O9t3UILHkfqIMDWeVziM2S6MDaQcllGYA56EWiiucGduEALWgmZ7ZW+N42q1JF+qcsDvPcJvniBZvOHbH+f6GJHoPdkFqPl4ezF339iWWYbyXUFfxm/45j1sA== 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)(136003)(396003)(39860400002)(376002)(346002)(451199021)(36840700001)(40470700004)(46966006)(54906003)(316002)(107886003)(6666004)(1076003)(26005)(36860700001)(40480700001)(478600001)(81166007)(41300700001)(82740400003)(83380400001)(47076005)(2616005)(7696005)(6916009)(186003)(336012)(70206006)(70586007)(4326008)(426003)(5660300002)(44832011)(8936002)(8676002)(2906002)(40460700003)(86362001)(82310400005)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2023 11:05:34.4226 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7b8df19d-c1e0-4c76-585a-08db3c0f012b 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: AM7EUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8836 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230413_040546_057855_8623E036 X-CRM114-Status: GOOD ( 10.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Permission Indirection Extension
|
expand
|
On Thu, Apr 13, 2023 at 12:05:04PM +0100, Joey Gouly wrote: > Now that KVM context switches the appropriate registers, expose ID_AA64MMFR3_EL1 > to guests to allow them to use the new features. > > Signed-off-by: Joey Gouly <joey.gouly@arm.com> > Cc: Marc Zyngier <maz@kernel.org> > Cc: Oliver Upton <oliver.upton@linux.dev> > Cc: James Morse <james.morse@arm.com> > Cc: Suzuki K Poulose <suzuki.poulose@arm.com> > Cc: Zenghui Yu <yuzenghui@huawei.com> > Cc: Catalin Marinas <catalin.marinas@arm.com> > Cc: Will Deacon <will@kernel.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com>
diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c index 6e92821b0bea..e98d8daa95de 100644 --- a/arch/arm64/kvm/sys_regs.c +++ b/arch/arm64/kvm/sys_regs.c @@ -1851,7 +1851,7 @@ static const struct sys_reg_desc sys_reg_descs[] = { ID_SANITISED(ID_AA64MMFR0_EL1), ID_SANITISED(ID_AA64MMFR1_EL1), ID_SANITISED(ID_AA64MMFR2_EL1), - ID_UNALLOCATED(7,3), + ID_SANITISED(ID_AA64MMFR3_EL1), ID_UNALLOCATED(7,4), ID_UNALLOCATED(7,5), ID_UNALLOCATED(7,6),
Now that KVM context switches the appropriate registers, expose ID_AA64MMFR3_EL1 to guests to allow them to use the new features. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Marc Zyngier <maz@kernel.org> Cc: Oliver Upton <oliver.upton@linux.dev> Cc: James Morse <james.morse@arm.com> Cc: Suzuki K Poulose <suzuki.poulose@arm.com> Cc: Zenghui Yu <yuzenghui@huawei.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> --- arch/arm64/kvm/sys_regs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)