From patchwork Thu Apr 18 19:41:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 13635350 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 AB211C4345F for ; Thu, 18 Apr 2024 19:46:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 40E2E6B00B0; Thu, 18 Apr 2024 15:46:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3BFB56B00B1; Thu, 18 Apr 2024 15:46:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 211BF6B00B2; Thu, 18 Apr 2024 15:46:55 -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 034D96B00B0 for ; Thu, 18 Apr 2024 15:46:54 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id A9F55A015F for ; Thu, 18 Apr 2024 19:46:54 +0000 (UTC) X-FDA: 82023685548.06.D3A5B08 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2070.outbound.protection.outlook.com [40.107.100.70]) by imf06.hostedemail.com (Postfix) with ESMTP id EBD73180050 for ; Thu, 18 Apr 2024 19:46:48 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=CkskRf0L; dmarc=pass (policy=quarantine) header.from=amd.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf06.hostedemail.com: domain of Michael.Roth@amd.com designates 40.107.100.70 as permitted sender) smtp.mailfrom=Michael.Roth@amd.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1713469609; 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=2dI+b7G8O4Obt6TT0NSEZZPrWnT1Jca5ybYB27GLl24=; b=mn86CeEkNdYkxVoYkzdSxpXl6U2aST+5zMaRNv3lvV00B47aSje7mQhX0o2BTsucmVg+YZ Ec1m96FO1XEmKBwu0rIOi8+76FRi4EqvOxWIIeYgybJzkLuxFzZiIiYv0Sl4Sm01jKmO/+ U0KOdGbvpDc+NF+6VnEdAB5+SmPHvww= ARC-Authentication-Results: i=2; imf06.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=CkskRf0L; dmarc=pass (policy=quarantine) header.from=amd.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf06.hostedemail.com: domain of Michael.Roth@amd.com designates 40.107.100.70 as permitted sender) smtp.mailfrom=Michael.Roth@amd.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1713469609; a=rsa-sha256; cv=pass; b=5JpXl9ilt5Q3A5+ZHybDWmuC+Gjt9Oie9AO+oR6h6aK95XGxom43hhtP+NgMlN1NDN/LBd uqFIgNle7MZfUXq3FjQOhAFwMUPciPtqqKax11h1axEP/vaAY4D9/Uhs9wkGhAoe/MIHlE vWPqNQMezC13gTxmaYJ966w9EAdqvW8= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ny5zjjtY+BlBPQcZHJT98LgiM87zVwDPVkSnvrEFwKrtQ5Br5Mv2OdoE6XzIEknZ6gtyvlZdNDaUrNLb0JE73gIdRil1ne6fZyTmJPsqCns0IfBTR9TObpGWaHru9d6SIJ+9dJuk2i5l13KM9wy4lXIZQsx2w1gY8RqxDmkBcRZTxEEFFw6X88qc3GEmWFdIr4QWC++JAOV3nqf3i42335SiuP4UxMK69abbEpXZ0ATr+y/pSlp/uAd/tS5pQ+pLKWinfi6pBPIM8K1RG9LKAVZpWLfnRvlbJ6SGIv4Secom3S/+bSfhUlP09cpQBk//KwziAT91fkBgT77rjtVSzQ== 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=2dI+b7G8O4Obt6TT0NSEZZPrWnT1Jca5ybYB27GLl24=; b=kSNd0jEuiHxYR5OKL+2D7oeLunfE0o/qpoTc4pCME0pxIisXlE+hmK/wwR43Os2iDSjB4Bm0sZneq6ZptaLeyB8t7RVfZ7KLzK5F5D6smNvFsW4B0NDXC3uM5krEOn45Xos5sP81cMD6/7UPxt9svrg1Md1iDqgEXc+k1yRe6Gf4+gdUdKAx0/IxXlfQRuUU2MjVro1yIAQt5RuZV3dtXGF65W/HMMcw87Ric2J0st1mfKibyDabNsTiK/p00Ypl46I8G1QgfFpymKOI1Kn48WHXNVTyPrhoXTk6StsldFLKif56YrA4SvXU7hECRz/9t5NYnHVsMZuBrItFV46QXQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2dI+b7G8O4Obt6TT0NSEZZPrWnT1Jca5ybYB27GLl24=; b=CkskRf0LmrS4PyA19ysxmsp8nA5KN3h4y2R75cCuzW2NbO1ZTFpw5syBQYqE2MTb1tVVP1Nd8BZiduUnij8bhwJSkFfpdGCdIpkGSJrYUoNbHNRIL9sR/a6hi0aTlR2Jst/tdAf226zocd3Tgn6nY1C5J/TxaPpe1b58ZdZZ59I= Received: from SN7P222CA0016.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:124::16) by DS0PR12MB8814.namprd12.prod.outlook.com (2603:10b6:8:14e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Thu, 18 Apr 2024 19:46:46 +0000 Received: from SN1PEPF0002BA4E.namprd03.prod.outlook.com (2603:10b6:806:124:cafe::49) by SN7P222CA0016.outlook.office365.com (2603:10b6:806:124::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7495.24 via Frontend Transport; Thu, 18 Apr 2024 19:46:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SN1PEPF0002BA4E.mail.protection.outlook.com (10.167.242.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7452.22 via Frontend Transport; Thu, 18 Apr 2024 19:46:46 +0000 Received: from localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 18 Apr 2024 14:46:44 -0500 From: Michael Roth To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v13 01/26] [TEMP] x86/kvm/Kconfig: Have KVM_AMD_SEV select ARCH_HAS_CC_PLATFORM Date: Thu, 18 Apr 2024 14:41:08 -0500 Message-ID: <20240418194133.1452059-2-michael.roth@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240418194133.1452059-1-michael.roth@amd.com> References: <20240418194133.1452059-1-michael.roth@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF0002BA4E:EE_|DS0PR12MB8814:EE_ X-MS-Office365-Filtering-Correlation-Id: ccc2a210-ef36-4947-eec0-08dc5fe047c9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rUDs9wU2DisUr9ZZRh26V2KzHS7t5oKN49kb1tMTae0YCcmrVZAlC42wcgzbYztsLkpswmS2Zh99Bpwpj4+12d06vYppUdXcwK3dlp+M6DkU50/jU2ngMeadyN2iE0VhEk5qpW0fpW8w1fgyTSZvfWlFFGVRLleHY95KBe1d6Lr1/6KIkT54P/OXkgS+8ketYsR5BZIU5zAJojvWAa+pdOL5WKwRpQJyfFtUOkCQQDKtlKbP4HOgHpSy+f333vzDFqOIn7Na5rM4l0kpJl+5F01SeIj8axBx7TTakMmgAQhjFq4mj5k+eP6UHUKCABJ7VVlSsJJ0JFx4btJ6ZFccxx011zmC3SDy7UiwMqS+77t61e75kjOeXwAeUkPvMxbHvXY3LOayYb7kc0uNRnZwK0JTlQOYG1HW2m9n4h6VFaxkk//tXR3pGjTBowWgnIWf1Ne2xUx8NQ1O2UJjIb+5VU0Sy+/6PWL2U/h6qm3+8PCe8TKiH/+CnhQqe5mHUxNVGGfgSwpX/W33+kCqlltBKfPQej1jV1w5CArna74xU6EYNG1rfQbMurEklGWcDwpItoaxyZi9OcYmqN1VaecfWNI5lvuHSJ2PCGKiR9cv07UYc/m4DpcOTjCtRsOmwY73pFLxTJ8BSJxOMLSc3dOxUk6n5kmm63oqhhn7c2PZvrAhCBIzbcvrVZfHqtqZqfq/eSzXJcAq5RxQw1lrnloGC5YfR2BUO47wN7+nKxA5Hz2w2Ah/hGa9t07kH24PMPzn X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(82310400014)(376005)(7416005)(36860700004)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2024 19:46:46.0715 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ccc2a210-ef36-4947-eec0-08dc5fe047c9 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF0002BA4E.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8814 X-Rspam-User: X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: EBD73180050 X-Stat-Signature: 48ydbxycw81zp19bo7mpu7wkcdfh7d87 X-HE-Tag: 1713469608-492147 X-HE-Meta: U2FsdGVkX1+BaTFQG4sPQ/OfLedcOoAPpKfS899Mv0Ic/0z6Hl8RhyBdJJIVa3cofenwmHpBqDwQqhAvIF6DPD/tXffTJp1i8YKewwMJj4Ezu+LYQ9NvcpOIHnp8kRgGM8uJ5D8oSjgf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TKjYd1Y+/ulm/QGhQkq3/VC5kEFm527dCwAg13VF58gzLP7BcaVhZTsnfDs1jQZSXmchlgSAxIOnJVg80sSiZnJverprnRIc89jX+w7rBEywKVtxRsisZdEBKU/nZQk0Jng1LFXNkd5Hoegj+6VLgZa9hUllFWaf+GaF6+1cHdh X-Bogosity: Ham, tests=bogofilter, spamicity=0.000081, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: "Borislav Petkov (AMD)" The functionality to load SEV-SNP guests by the host will soon rely on cc_platform* helpers because the cpu_feature* API with the early patching is insufficient when SNP support needs to be disabled late. Therefore, pull that functionality in. Signed-off-by: Borislav Petkov (AMD) Signed-off-by: Michael Roth --- arch/x86/kvm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig index 7632fe6e4db9..d64fb2b3eb69 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -135,6 +135,7 @@ config KVM_AMD_SEV default y depends on KVM_AMD && X86_64 depends on CRYPTO_DEV_SP_PSP && !(KVM_AMD=y && CRYPTO_DEV_CCP_DD=m) + select ARCH_HAS_CC_PLATFORM help Provides support for launching Encrypted VMs (SEV) and Encrypted VMs with Encrypted State (SEV-ES) on AMD processors.