From patchwork Wed May 1 08:51:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 13650347 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 982DBC4345F for ; Wed, 1 May 2024 09:07:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2839D6B00B3; Wed, 1 May 2024 05:07:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 25B226B00B5; Wed, 1 May 2024 05:07:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0D47F6B00B6; Wed, 1 May 2024 05:07:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id E31DB6B00B3 for ; Wed, 1 May 2024 05:07:45 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 9D10DA0803 for ; Wed, 1 May 2024 09:07:45 +0000 (UTC) X-FDA: 82069249290.08.CD6E040 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2049.outbound.protection.outlook.com [40.107.94.49]) by imf24.hostedemail.com (Postfix) with ESMTP id A5E8818002D for ; Wed, 1 May 2024 09:07:42 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=2aDYeyq8; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf24.hostedemail.com: domain of Michael.Roth@amd.com designates 40.107.94.49 as permitted sender) smtp.mailfrom=Michael.Roth@amd.com; dmarc=pass (policy=quarantine) header.from=amd.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714554462; 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=cXRnpadbMHv81jR+cczjNT88FJu0zOLgWChtKNLc+po=; b=gYTqqdYERlgPqgJbB62eTz4Mq8ynNWMCFBsKcG9O+8T8aI7F22bLrUCx26c7YsK53w8qYn qjpj+HxTMmWQU9S3id4rZCPzvjswsHkLmzhU+nxa6V9CriTpIyUykuibRh0GHLyCEImu7+ iaFYDMtLlGmbXOEmx5mx4QO+l5QeN74= ARC-Authentication-Results: i=2; imf24.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=2aDYeyq8; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf24.hostedemail.com: domain of Michael.Roth@amd.com designates 40.107.94.49 as permitted sender) smtp.mailfrom=Michael.Roth@amd.com; dmarc=pass (policy=quarantine) header.from=amd.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1714554462; a=rsa-sha256; cv=pass; b=U5VK3oQgYK1xFrgJH1bKdzTtcASEu/5GwmhpXYfzhYEmxy5+haQSK5AEg30v5cxsNzuZlh I122lEbMI6dqSlgUWhmHDxZSmdZnNYng8WgqieZ6s08FrvXs3diu4OMnhM9iNpf9eN9zYv 8GZGWGAczI5FqcrohpePBkTL9h0iC/4= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NrfnL/4mjbd9/o6FyIQYIt59G6MEDH//FXRWi/ebt0WLlKQyXkweaGi/OgcYb1JdAtcf7/JtbZyjYYCJ2A5aqCA1DAg0Don5suQ4N7VWdFJH5H2PI51rh8e87FMwNOYNX4RwehNt8cco7B+rVjnV0hzLFLCJG63aexodig7MRmEMIf0oZlCI6mEZce/TspMgdZ6o48VDHHqFJOvpNpXtoUF3iO05C/4SFQzaN98O6tCEfetWa9ThaNpc1b0KJHQCJy/fg1fPN5pp7qZ5CiAeYSpoUzitmWeFWr588cqYUiP9WFZPK52gM4n5NH/rd3HBtAWsC3zRtK/6KrFUkKWjnA== 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=cXRnpadbMHv81jR+cczjNT88FJu0zOLgWChtKNLc+po=; b=hDytNGQBKQLpX74Yx0NqUpPby0ciIfrKqJMPKLwPIYmv03TuStafmc9pzid9NkkNDtyV+CjeFGolVQe6qUlo0SQ9il1yj4zZJ7+5IMRU5ZQHcVbJcR015vTuxUnEMg2aZQS+TYMPsBv+k7YdaBs6xI1Qzm9V04swBKJ+bpG3QQ3zlNm1VQeg80eQwm/9P/LdHM5X5ljR/89DDhWgczGXACwldYVyiO9MTTSzEiFh/5PMYwMxWYMsGzgq+gTGhmH4RCK243LU84aBRFyjNUX07uxBG5Z7AZn0n39s43beoy31LZ3IYSiSX0iPOh2ZxjEZkUj1/QloEnSpM9rSwJdcDQ== 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=cXRnpadbMHv81jR+cczjNT88FJu0zOLgWChtKNLc+po=; b=2aDYeyq8y+2NRsrSvzgw7WwhHSbXZVJxrpwTiasorZgmr6XGN5P8I/PDiS6t2JBE/YpTcNVdlH0v4g8xganb23UKDSi7g/XXxzE5joVGeeCWR6pagZschyAEpQRHzdxIH6Fwz/0hRmls7oIjz5i+NdMUoUA1sdFLghTjNZTDDfw= Received: from BN8PR12CA0003.namprd12.prod.outlook.com (2603:10b6:408:60::16) by CY5PR12MB6431.namprd12.prod.outlook.com (2603:10b6:930:39::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.34; Wed, 1 May 2024 09:07:38 +0000 Received: from BN2PEPF000044A3.namprd02.prod.outlook.com (2603:10b6:408:60:cafe::30) by BN8PR12CA0003.outlook.office365.com (2603:10b6:408:60::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.27 via Frontend Transport; Wed, 1 May 2024 09:07:38 +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 BN2PEPF000044A3.mail.protection.outlook.com (10.167.243.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7544.18 via Frontend Transport; Wed, 1 May 2024 09:07:38 +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; Wed, 1 May 2024 04:07:37 -0500 From: Michael Roth To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v15 03/20] KVM: SEV: Select KVM_GENERIC_PRIVATE_MEM when CONFIG_KVM_AMD_SEV=y Date: Wed, 1 May 2024 03:51:53 -0500 Message-ID: <20240501085210.2213060-4-michael.roth@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240501085210.2213060-1-michael.roth@amd.com> References: <20240501085210.2213060-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: BN2PEPF000044A3:EE_|CY5PR12MB6431:EE_ X-MS-Office365-Filtering-Correlation-Id: 18d077b5-226f-4716-be0a-08dc69be261b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|376005|82310400014|1800799015|7416005; X-Microsoft-Antispam-Message-Info: j0k5CPwcjjPjbOfcDghqoJIAlYyvZpwET3TvhL0PR2BdbAe2fSYfY3j1CKM9aLZ33xbyMVuA2XdsECLQU18FJaRBNVnU+5GkoWyqj5VCsmhYrOfzbes6y6I/7dixQ5dnGu3p1Z7zeYl3zJCPK7eZS/DtOmxImfkz9NaFyazU5aEemlQNIq6EFol1UhZsMwuCQvObYZr+LVgJIMks5MfSbK9/KmC81mkZRIMy8jj0OCing6PFX80Vd11gKhxEwAkb4QqfvaLQ2ou5jyMXy4lyKtnXFOmb+B8oZPpuXim0HbfGCSWAA+Aq4Xx35vL7fW8Pa1SMRkvNVLsKNlEHv03eB0fjRizztSYT+m0Q2PCky/0v6suVGWaZa904JKdSgMpISD0Brw204qBsD/a3B0HLzF+ExX0qJTYvkcwWCWVBaE/npterivJzlsJhQjkdUql53iUzgazgnAeQec//a48Z6GzFJbncDwPaC7GL4hisGH4bY+CKVb/2sljXD/Cmgur8cZ/O8x/Xvf277IZ2VCjxKZ1krkLjP102oioiovg87x28YzONG5NRi7LM5zLNFh+v6mywfP1jaYPP45EyFG711l4/pnOCehk7MHbmT+FOOO3jygM7A6BN85cXAwOGA/QfXoHMFSsPGC9b13Aw9LyPz5WPEQQd5Fg/3BV0LTTsamOqsdyIy3mdDjGmQ3ZPpPdDNk3AyjjGf95Ym68Q7kqCp/AavYObhGMKLZrzdR0MjJoyH5GuBS2L4P0k0Fpqkd20uzt5qLbOMhL7m4MOEXx3ffSxHlpJwCLaC5l/+zvnhXm01Dpf9eVJ4eUtyZZ7I//3U2K0KEggJL2dZ1/JtBIH976xhjUl4Z7F0awzdLGBBHed7sD66JTyV97o/sRsCZqhDgz0dyR4fE60Lg/moAszGelkFEnys8XeQC1DD7/BxDzBsCpusYl+VyQGcRBhq12SL4VUc//wfaBAjpSnTl45cPWarHkG//GGLn8K0u4IK2GCf4AqlPBo65BeuiPTdZrjoTv16P0qmFCbq0YkW3gQ30H+RarF5HiMQIsTKDGXGkLf0CJXEw1mM8j61PD4/zvbEywHXha3tbyoYvXD2J2Gg+9yz9z0ST97oJ4hsfP/Ej9OOPG9cAsaeIsjBVh2TekM6k98y58smQ873MiBpgb1wgE1f86yunCwXk6SmaRvYt3RohCfAkOqAOhPs+0Cuwbn/fFw/9sgl/YkgZSSw2N+epke3rIT29+IK3pSQEBU3gu6Xf8ZpeEX0AHicAwUIb0pFZna5PELQB7kyCE6zrFuSLNBbXoGPBg2F6mA3te8d03Qk5ttrj4SHBUppJFo12lO7cF0CRX6YXYxxKGzjVLSMg7pPstyP9h/I1honuuyUI/b1gRN/vkfxK8mGqFk9wHN 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)(36860700004)(376005)(82310400014)(1800799015)(7416005);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2024 09:07:38.3197 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 18d077b5-226f-4716-be0a-08dc69be261b 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: BN2PEPF000044A3.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6431 X-Stat-Signature: h48h85i1imgf7xnswzw1j6xykaqanazp X-Rspamd-Queue-Id: A5E8818002D X-Rspamd-Server: rspam10 X-Rspam-User: X-HE-Tag: 1714554462-71596 X-HE-Meta: U2FsdGVkX19zLSFNNNiDDC7DtSrZPPDaYQfs5pxmVL1/CmmNLW8ZrlOSOIANZ3bxqI7StUnBYEMoDHocu0jMWhDH4xvbPsC5M0UVK6BTKsrpvtagx/iSDmomrgrADDEbwMra/LIBrjhSc6w+hfAqMtXwUKuSSP2nBlw/8xR2oGJIf0GCtiKU4Qp92y7XgeHr4wSmvDWUe3XuELFuYYhsu+Bl7Pgzj7S/HDd61cdr7mvchd6jTXIxYSuUKHJMgnkulfwZkdWeEXHAEmW9QI5LdPejReWyjEgL5GYGtmTl9am5cUuNYV/xDW2+fzWG9gglwWb9ChwGevHQTkGX1a7ytmiuGcGalBZYMzBVutE6hHhHMp139RRDqy/qyN0yd04++aVb/YxdXYXIVSXDIRPy8llSp8QTNfbr5uHDslyzzcR1tRVHVoShx52MYbTRgXIOGv+texSrm8+uR9UL7mq0ZFOY4pgz4eKfrTUWmywf91nsYvn/eBqh+kcAGlmTgZQy4eMG9dANgO+Qb4qKs+q7aUv57Hbi2Ij1eu6GXDBn3o7oovzLO0zqNAuulwjVUhClRzKAQJH8oYHFWz/TFXwZkn9j44kHTkIlkuWGA6keEI9msTGlSZGDkqmYtl7ZQjwOAqCRLWRg12t3RhGhQccFRS/y9f8sgQ++g4Nyz/A/vCZxvIBKLqeokWKUZyMJoQg8q9DJhHAFTsvDfAd8YRZfl8erShgWipHJFPjuE5UtxhFG2oQA/HWlXGrWM1kjZhhRMqnZEzRwCp/O4ElPY2FOuo8OaPqnxRmGz1tYn36c+ryidMZgqRm999r9iIS1nZnoSEPiHAFpYZU5fcyo6tIO491c5ZKQoPiV3kkYxonq/VbYtVgLOvMlcWtDoCFNklVn+uqk7UmJ9p/mIKJ+l3RE0a6SiWHmAfJrFe338XBBoBqR54VHVFCh31IPtJzDB/sXQBSHweZcDqaP9tU7QqK 0cr/ScfV bel24k4NMH/7+fEWvhoxAXyZECzdwJ7yv6UCVHY6bHfpmvJBJzPpwmJnWlWDLZWYoB4SuamGz/Ey4UDYzLu2N3Em+AD0ogicGJBuCeIWZ9dw7UAgPbdUtdgyIj26ngKjG5DJBw0C+VLzKLtyqX9Di+DDzgWx4yALgXLZlqeolRzqcA+uF+vX6vq5EoGbO4SoStdYyXZ7n+vAkKrZ8nPHS2shMq7lqBWFKPPyPyga1W8NhWHhWzx9g7ffGep5yT87H/dZR9p3nuABIGn0q6RpzhR3vyxO2pkifCq+6UQO2UAUiFbtV8yODdfPvOcndmhLCdpAs5sC2b1mYCKUOzZpw2N53mV5NfEbCCR4L2fZdEGU8pizLNOLOZwfxqd3syCpCorTk X-Bogosity: Ham, tests=bogofilter, spamicity=0.000009, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: SEV-SNP relies on private memory support to run guests, so make sure to enable that support via the CONFIG_KVM_GENERIC_PRIVATE_MEM config option. 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 d64fb2b3eb69..5e72faca4e8f 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -136,6 +136,7 @@ config KVM_AMD_SEV 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 + select KVM_GENERIC_PRIVATE_MEM help Provides support for launching Encrypted VMs (SEV) and Encrypted VMs with Encrypted State (SEV-ES) on AMD processors.