Message ID | 20240418194133.1452059-6-michael.roth@amd.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2295CC4345F for <linux-mm@archiver.kernel.org>; Thu, 18 Apr 2024 19:50:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B17A08D0003; Thu, 18 Apr 2024 15:50:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AA0BF8D0001; Thu, 18 Apr 2024 15:50:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 91A248D0003; Thu, 18 Apr 2024 15:50:34 -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 7333D8D0001 for <linux-mm@kvack.org>; Thu, 18 Apr 2024 15:50:34 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 3962741414 for <linux-mm@kvack.org>; Thu, 18 Apr 2024 19:50:34 +0000 (UTC) X-FDA: 82023694788.16.EF6A890 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2042.outbound.protection.outlook.com [40.107.96.42]) by imf13.hostedemail.com (Postfix) with ESMTP id 5BDFC2001D for <linux-mm@kvack.org>; Thu, 18 Apr 2024 19:50:31 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=x7LG7sKg; spf=pass (imf13.hostedemail.com: domain of Michael.Roth@amd.com designates 40.107.96.42 as permitted sender) smtp.mailfrom=Michael.Roth@amd.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=quarantine) header.from=amd.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1713469831; a=rsa-sha256; cv=pass; b=wEEarScsyU60XYn4haZ+IvNTqbo6Wpdf/9YTHsnx4rvJ+xDGL+Z4jJAvx5SGYZnr7xZAbs AetplGcC/LXr2E8M/Z2EEZlz0Vdi/FiafqpFvGUcOr0wp9/Ync646jqxZ/6zkOYl/ofWO/ jsiTJpvxGDg/6qtE7ayW4KCLAtL498M= ARC-Authentication-Results: i=2; imf13.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=x7LG7sKg; spf=pass (imf13.hostedemail.com: domain of Michael.Roth@amd.com designates 40.107.96.42 as permitted sender) smtp.mailfrom=Michael.Roth@amd.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); 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=1713469831; 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=FWkT+1mz6JhdU94LZu0CJ3nbuKduiuk7nT5g9NpD2nmB1VfcZkQGgnBArjvdamVFERNkw+ LWAKnCq8AYIkDi0fQ2WR0fYdLpxF0K0pGwF+Pvl4Q3WzG7AEJtCZu2aZdE6BTmKmkY2Dpj eNd4GR7eKnFPHnB2X6Fj0qS+MRLDwz4= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yz+mOHeV7cEoxzA4wzXBS3Hyb9TgAmDRnCECWZ1dgwW230j1l/006oyNV84t4pkTD+HJI05EYY8UNwhkAhY4v+N5rOaUVGHJdWJjhWJQRoBBxT+CW/uBqZt1008hC0HZlhCEHss3VOoGquY/HahpsfwCFp+P5GBQCZZnh+VacUnzveYXTiZ5sZXH/AzMaR8kIfYTEZvk8L3BudPqMg66JKcGFLHL4RaJYhWHNQAR57eMi4XCSKslpWEyTZ3HENY67aN96k+X4Ln+ifTywdGJV0V9WSZDPnoEuJ9K/FH35VSV4F1G5ZUu2J+AXJK2JYM1DdGVFVbQmGmojVaD0/FIhg== 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=HrDrQNTFv1FdsbtyvA8O/VSWZb+S6/Z3FfMSwseKjSXy7+k+KGz42PdOnmYLbtYWgSSDGfh+bGgi30L6bPbNuwgcayOARXFVP6nW+96Gr0o6tBHBVYqcf82MKBq3swmffPBsbBkLwMHf3yMjzo/Kr80XCAtPWcRd8kgvqr++zDRFGasChDD+PZbb3FmN9TV+09VZT+lli4QBqfQj5LL4NZqteWCc0q28o8VbOkvODLChX/HjE7J/6QnFeTPKl7uN8PkLVwSfttS7hK/agK0FJXpr7n8XZxruPsfIl1Yozl1kVrtR9LL25EouxnnMkdfLWvHORtW5Aq+sYw8fWWyR7w== 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=x7LG7sKgjsGS2WqMbVchgLVqkh4Pgg75y/z8GDPXihufXyJltSTh7t6s68zFjt2E68Vb2BwCacgSoLzQc3ujFa62nZhuq9ThXWuok3C7DBrHQtogWCPYdueQgnnxQqCJq+9QH/eWlmUIsFHPpMKZe5ikFXLe96s9SGTYfqI/89g= Received: from SN7PR18CA0020.namprd18.prod.outlook.com (2603:10b6:806:f3::14) by SA1PR12MB8120.namprd12.prod.outlook.com (2603:10b6:806:331::16) 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:50:26 +0000 Received: from SN1PEPF0002BA51.namprd03.prod.outlook.com (2603:10b6:806:f3:cafe::c7) by SN7PR18CA0020.outlook.office365.com (2603:10b6:806:f3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7495.29 via Frontend Transport; Thu, 18 Apr 2024 19:50:26 +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 SN1PEPF0002BA51.mail.protection.outlook.com (10.167.242.74) 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:50:25 +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:50:25 -0500 From: Michael Roth <michael.roth@amd.com> To: <kvm@vger.kernel.org> CC: <linux-coco@lists.linux.dev>, <linux-mm@kvack.org>, <linux-crypto@vger.kernel.org>, <x86@kernel.org>, <linux-kernel@vger.kernel.org>, <tglx@linutronix.de>, <mingo@redhat.com>, <jroedel@suse.de>, <thomas.lendacky@amd.com>, <hpa@zytor.com>, <ardb@kernel.org>, <pbonzini@redhat.com>, <seanjc@google.com>, <vkuznets@redhat.com>, <jmattson@google.com>, <luto@kernel.org>, <dave.hansen@linux.intel.com>, <slp@redhat.com>, <pgonda@google.com>, <peterz@infradead.org>, <srinivas.pandruvada@linux.intel.com>, <rientjes@google.com>, <dovmurik@linux.ibm.com>, <tobin@ibm.com>, <bp@alien8.de>, <vbabka@suse.cz>, <kirill@shutemov.name>, <ak@linux.intel.com>, <tony.luck@intel.com>, <sathyanarayanan.kuppuswamy@linux.intel.com>, <alpergun@google.com>, <jarkko@kernel.org>, <ashish.kalra@amd.com>, <nikunj.dadhania@amd.com>, <pankaj.gupta@amd.com>, <liam.merwick@oracle.com> Subject: [PATCH v13 05/26] KVM: SEV: Select KVM_GENERIC_PRIVATE_MEM when CONFIG_KVM_AMD_SEV=y Date: Thu, 18 Apr 2024 14:41:12 -0500 Message-ID: <20240418194133.1452059-6-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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: SN1PEPF0002BA51:EE_|SA1PR12MB8120:EE_ X-MS-Office365-Filtering-Correlation-Id: 897adf2a-ee80-4d0a-1011-08dc5fe0cadb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OW7aQOfvhoXJmRIv0De1SA9xPgnn5IYqo/Szg8kFVim5ScplZpG/Xjs7SpVYEJYQP6SJpIAm0dbSs+MlpFSn5rOkdI/NtJDAe427Leq29mvjuMrSO8lYTU96+TVYOKkKc779W4Rk3xEzotj+H8udh42o5e4pK/l+cNIeYiW1Sa2IzL16RWbMBH0xGdNU/P6hXYuTck6V+VXMXZdD29lbNygAFu2yG/Xqi6amyFco/xETr4GBTsP3KWrS0uHhNDcTV7vgz34HTYj3mytQT/GveionJxJ+5Vkaplj6WaQPfs0UaLTfVtn9C8bwyZjzBAWFMNL+/XgWozOyC3//NPdOjLFJvraOvZrXZiI/1EBla/cueapYraSbfRDhE1oKe545GO0C6zTGV3wp1anQx6/x+5SO2vhjDBjRzwYaK+yiXgUMWiNB/HCDNvwueKH2YVP6NZ8oZS/MWUY0AQzH8LgfHt8EIborR8HgQXV5DDJbnK6U5yKFvH96ZSHG4XebPWzsjb9zPVdP4KRXjgYbHiNXasnj0eTv4Sg6tE8XcqwzdjvP+YruaD9SHli7OCTry2Zi8ySVs6on47FryYb4mtcBUbtQcm1PBxuPAipdOx4DGZyCzYJm66YDvPV1HshDtm2WcIY1AcHvT/YqoIXJQwNoYekQhTEiBHu9vQp6itwJIKF7bklZzslQ4SscEqJNdF2KcjRqO3WK7AdKx+vPvOMsb35CwvZ6mvuGX0aLoPCtLf1r305n6FE5/m6hFHWWLkj8 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)(7416005)(1800799015)(36860700004)(376005)(82310400014);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2024 19:50:25.9809 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 897adf2a-ee80-4d0a-1011-08dc5fe0cadb 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: SN1PEPF0002BA51.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB8120 X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 5BDFC2001D X-Stat-Signature: wixfnh4bmosb5o4bm8oy53brkwktaong X-Rspam-User: X-HE-Tag: 1713469831-805137 X-HE-Meta: U2FsdGVkX18Nr0BJmx3DD5gAfOcONtBQQ+1cmJtR5eZtz+6axnD+EB1BSivTLQ8Hg4qQdj3h0ucDkEjNwOH0RPL8nMUEYndXUuOvHRA2YAuqoiT6nWRYeNkRcCFWHgrjPWnhKeej8RgqR6fHw3LceuBIx4KB/ox+Vbm9RHfNG1fzOy4SDH1VoX9bITwXTov/PeCPfsahrxL7KdPqvY9J1TVHDdDRS4p2uLx3yKG8j3hQeEexkLRncJQ59c+UioqRPOfUIeFZ8DyaNaUruTc/hEuq2yzct1vxvg0C4LdbUxTZH9pCerOPvLwIL+qShZXH3c5lygRXQCYmwv3U9Hi0LCpjn68Cl+0jxxUXst8+qzwCP/bqjx5Okbd8SraUhnIfgGp0MlnlYke0Ntil8mtdMC8m096rtWMkD9nz+h2yH5qcRPDmf+jS2fraMgQ3FGZskdk0IEd42kNc672YIx9O5V5mGICl63NXg0TgeaWTdZLJSOqAkHE7nkhOSoPgdPLpgRu19Qpixe6Usuq6e7W4juTzv3C4LI70n8iP1ty7a0uf9swV9jROhWT17cXre61FRN1O1+X8jSX+R1mCHFyMOSw+yFfQDrZzD+K4OMKBXdnkvh9UIqIfzzR5tDOoNgEIeRP2+5ut+ZdG4Pl1mnUh+NMHcmk2c8fIQFq9mPT8xm2g1tFJ60YZ8ue111BSZkNXLQxm/OzK3qe34ygXDMa612/vUMwCLCkz2e1ozmPZMT0y00l7GMpRKebs81We5FrPgMhCE7B51wHEylU6WSEZKbGP8Tq50/X2B87RLyetf8ErSaTyr7nKjLtrb/wcKRZTCWzEh12wTm4NT54n9BjLMgKU8N3x+wyZ4Fn7JvGAdDlUHWYRb2um08ZBiSEsnFVYLS4Wq5h90uq+RonTWAxw9Bg9DrB00gyQygJ9jUGbrxkmo7+zcJ0FRi5QbDoK8YiE6Ps+Ef+mcNJy4fwVdSu DmpY4Vuf Pmv8MZ6nW7nJwIN2tvALxKWxKzaQsRIrAepZjqxSvk5MSbQZeCASI6bF0A2rOJirBPUA9PjZNIZwsLa/AgAsFgPFGs4h7TUpFezfO1DvkDqHRcJvxoDmUxQlOu2aJbyLZEO9XicLn50fqq/MW3uOBT0xe1RAiqouTtVseVxvR6pqo5VUAab9eFQ9E+9g6teeucZjHeqaZ5/uZ8Cez8LZwU9T3iHJfTOPOeDHSMHNnAbjZxhpWyda0HxXGNh3R5F4yq2XDe0QDuKcY+oPuRmafXAK2NRjD4XVTZMOPe4GdeBKnjx5M7uIP2lW0dFyQoc68KmYH1/VEjpVskx1m0BOf2BVXQGZ3/igSKgXQdCoXYC4ubUCPCqs0Z2d+W5i9yVdhrpxW X-Bogosity: Ham, tests=bogofilter, spamicity=0.000005, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Add AMD Secure Nested Paging (SEV-SNP) Hypervisor Support
|
expand
|
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.
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 <michael.roth@amd.com> --- arch/x86/kvm/Kconfig | 1 + 1 file changed, 1 insertion(+)