Message ID | 20230612042559.375660-24-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 F0D65C7EE25 for <linux-mm@archiver.kernel.org>; Mon, 12 Jun 2023 04:35:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 913666B0074; Mon, 12 Jun 2023 00:35:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8C4358E0003; Mon, 12 Jun 2023 00:35:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 764B88E0002; Mon, 12 Jun 2023 00:35:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 672CE6B0074 for <linux-mm@kvack.org>; Mon, 12 Jun 2023 00:35:42 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 3BAEAA025B for <linux-mm@kvack.org>; Mon, 12 Jun 2023 04:35:42 +0000 (UTC) X-FDA: 80892832524.14.CE4D996 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2079.outbound.protection.outlook.com [40.107.92.79]) by imf10.hostedemail.com (Postfix) with ESMTP id 36768C000A for <linux-mm@kvack.org>; Mon, 12 Jun 2023 04:35:37 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=eovlZJ5k; spf=pass (imf10.hostedemail.com: domain of Michael.Roth@amd.com designates 40.107.92.79 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=1686544538; a=rsa-sha256; cv=pass; b=FRc9rpvtMBkgWE0v2dq9s0/0O3R5wAg9La117puSzHbD3dwiQhtyfMyasImx/aVYLFe13Z s/NN6t0diti33QQaPeB3GaSX9Xpdw2bPfmNgj2B8T7Ur35D2D8kmkO8IioDYdv13oIslIe Z5NTM3Y+LC1sI4ZnMNpu89hjZ9z7LXM= ARC-Authentication-Results: i=2; imf10.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=eovlZJ5k; spf=pass (imf10.hostedemail.com: domain of Michael.Roth@amd.com designates 40.107.92.79 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=1686544538; 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=d4wfb4qGv5SePlU/T9QnyyuYBpCMuLO/Bu9lKFk7jQ4=; b=SB2u/R9bFevO0enyXhDLx/jvY9xX9XMtdGMi6HPPcURuLFWd9oyLCkATsOP+vuj+AMyc6k TOnyqSHMF0PNDzj9PkKTUw0VznYT48R1QHAZ62xrqOTHIe+x2Avu+anrZnWvv2FXqO9Z1h JBOBq+gTNYnuwBF257uZmgJCJU+oALw= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D8i5nQwB/HjU+uPR828/aad7kv67DnXqL/PwyIwBcWrwYuqW011fPKDhrBAbJ0fbBakYlEMUgTB5CUJ9AzH5Ch2Ff61AjORrc1GDNaCLq2cM9p2vh6ALr2XlpTQ6hHuBQZJUNPB1+xl9eQ3WW4vBaXzRaVNfeIffq745W9bsXghgHsXy2lV1W3M+IyeFAw8SXvtn3quJQgJZJdz2RrybQO8L3uaxBdfPOZlo91IDvLdzQXIZeZaq2dcU/CY0wqgbpvGdU7rajYVqAnw1xkHhqzZf7UvqzXPk7IXErY6GydLewhUS6MJXIEiIpvYVtzqaIS5awSpmuxrs1taRV3FNeA== 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=d4wfb4qGv5SePlU/T9QnyyuYBpCMuLO/Bu9lKFk7jQ4=; b=mxljwh4NsMm32WvOFbJSJHL0ylcX1d3tdhyo4iCjX9mvNPVQUES/qGa95IZph+lPOVm5KB8vNAoKZSz8wdG6iVbtpnLFOSnqcgdvcfYe/Ebis9sIM2UOsICAoAJp8Vz+9GvN/syIcN7EMLOwdhyQSk53Ce6OKgmXB88AIOAzUTvtxmx/oBh65GOmChmksJJTESK4p797fJ2ZcxldRSj4PNSw3dryF+JimeijhxtOdROrU9mN1dAFmgNyEsEtuV/DB+zQhWGCC6oAf4kbNKrwQCvUW9irZPVJct1YFvEIItwhoVErrVp/NH1N6UVpLicqr//ouv9TxLAtoKgGWimKQA== 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 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=d4wfb4qGv5SePlU/T9QnyyuYBpCMuLO/Bu9lKFk7jQ4=; b=eovlZJ5kzFJCKFPxwIPETtb0LXJ4MaCToPGe1OCNAJbctz5UcYNvfG3x4JZe+fH8qKTXYh+RCmGgfuE3CHQSzOVNyLm/tvsczLH/XJWAqqN1j22UTRhMcDGLHb5+4Kc7Xq/dvGFbpYq0adbjC3cudDnFzN9FsOPhWAK6M2MCk8M= Received: from DS7PR03CA0189.namprd03.prod.outlook.com (2603:10b6:5:3b6::14) by BY5PR12MB4225.namprd12.prod.outlook.com (2603:10b6:a03:211::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.46; Mon, 12 Jun 2023 04:35:34 +0000 Received: from DM6NAM11FT093.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b6:cafe::2c) by DS7PR03CA0189.outlook.office365.com (2603:10b6:5:3b6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.33 via Frontend Transport; Mon, 12 Jun 2023 04:35:34 +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 DM6NAM11FT093.mail.protection.outlook.com (10.13.172.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6477.29 via Frontend Transport; Mon, 12 Jun 2023 04:35:33 +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.23; Sun, 11 Jun 2023 23:35:32 -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>, <marcorr@google.com>, <sathyanarayanan.kuppuswamy@linux.intel.com>, <alpergun@google.com>, <dgilbert@redhat.com>, <jarkko@kernel.org>, <ashish.kalra@amd.com>, <nikunj.dadhania@amd.com>, <liam.merwick@oracle.com>, <zhi.a.wang@intel.com> Subject: [PATCH RFC v9 23/51] KVM: SEV: Select CONFIG_KVM_PROTECTED_VM when CONFIG_KVM_AMD_SEV=y Date: Sun, 11 Jun 2023 23:25:31 -0500 Message-ID: <20230612042559.375660-24-michael.roth@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230612042559.375660-1-michael.roth@amd.com> References: <20230612042559.375660-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: DM6NAM11FT093:EE_|BY5PR12MB4225:EE_ X-MS-Office365-Filtering-Correlation-Id: a2b78bd2-671e-412f-81fb-08db6afe7639 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b8s8DOnfa7UpiLqSFpaMNyRbN2WOU6/wyCDBQpLKX4nofNIqEs3XB20cx68Zj1BO1zofxGhbMrfKc9j4cNq0aIQiHt54BWFwdpIxbbjfBDGUoBrviKT7s2YLkb/qhygc6gzEeB/+5FNqZlqaA0sGXOx5siJ1r/E4ZjiYCPrfyuDLMUi8sF5zFBmQtMjOFOZhAnYMUuZDxgCwqf+W8dnRXQbOoIK8SNJVYbMo4JPd7/EAvVf0uy/bA+dHTNg67YBJIsH5cJTvSqlb3aHLprdOmAH+OIVCx0pyirRYiJBUSv/2BJYmnnZB/RyCASEtJjAGPDCBr6phfLbTU/96js/urRf5xlERlnOoeeZIUBY3IkZPfRdP7GCWh1qnZjS/AH9Rxk6ewM2uTvLybMf33YaYTnQ8hzPX8mSVGGZrgVn6rVLbyEhG2RSi9ID0IM0hvxWAibqcRf7zXjeRoHZsTHCNR7e8fbBhdelLzSxWtMoSBnkN9gomjPfvtqhFYffX9wnw6mmA764kRX4ZlCs4BJdJZHGb6a6Nsqmcfhc9B3VC7fE0FJ0jPCr+ivUMnJJGsS4Do6zM2IqDExMnEP9NTkj9nKjixW+/6M2rIxdytPcmXY7KmLuJVcAh/hxg/Y8dfcAQDXLmoKAuZXQcizKx73IeCgndkq7yp8M7TWi3RS0I3wfSQTd+gCvBrReqOlkKaVG2a9YfZNmOp8G9EqbhmFO1RI6sKf9S0qzCRhnPuAWnlfZLQQxESkHccDbPnrhlByqIVFjETccXriNr6bHmcZcugA== 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:(13230028)(4636009)(376002)(39850400004)(396003)(346002)(136003)(451199021)(36840700001)(40470700004)(46966006)(40460700003)(478600001)(36860700001)(47076005)(16526019)(186003)(1076003)(26005)(2616005)(426003)(336012)(36756003)(81166007)(82310400005)(86362001)(356005)(82740400003)(40480700001)(6916009)(4326008)(70586007)(70206006)(41300700001)(316002)(44832011)(7406005)(7416002)(4744005)(2906002)(8676002)(8936002)(54906003)(5660300002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2023 04:35:33.9993 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a2b78bd2-671e-412f-81fb-08db6afe7639 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: DM6NAM11FT093.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4225 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 36768C000A X-Stat-Signature: ruceet9hp5aabnp8bb4niijcoy1i58r7 X-Rspam-User: X-HE-Tag: 1686544537-258773 X-HE-Meta: U2FsdGVkX1/3jVwi2i4hwJqijqgflY68JUQ6Vgf9LN4u8P01i5tMTmd9oVg+gnfEaP080yX+OsRhG7/IX5K1sUjTHzAXoaovWmszpH6Kd/E43jyeDMzI4CxE9nQJNQQqCPMJobjgt66/413PHAt78gAN6xMtilm4ZMNAxSB3oEQv2DaIQa049rpUh6lR2vfzeWNGdAoZZQlVMLiuKl0Qa5fo8wH28C33eImFV8eTQ2oA8d5KLEgdYTXhccgcuefBPcMTATcnjVV3b9e/zD64J71ax+xCqav62ZWuhfmepueOyVwHBWS7C4zj+OBkEqLZBx6LZGiPKHtdU9meaWmE3q6wIXchhyzdDtNzoyGuyQQnueVVrp2B1jb3DtHzbUdPHytle8iiN4PjNwVN1RbYThZGLLT4E+1tfwS4uUBoJbmY2xVFYeJO191XlAeZfi7JGWyxvKXM2tEaN+aiIvnFtj9tL8oTWvBK3RUvnRCBFOWGWWjmN7kG/Y0JuZyS4dv7kczmKi3136QNHceezrkCA1S09C1M2CRaOqFPW30G6XRxLpaxFeWzE8UqXNfMVgWmsc64Gtz3LiKSu63u3pMco+c2TUChyTaA+c4coVkBY1NDN8Sh29TEPxS+ZBTykBSDtLGtHt3ybRK5kM9HY/mjuJRImR9DzAVGWW/vFe3kN7i5ewior3zdUGQLSZnHkB78eH9OjSD7Re2osqYPrzU+Y/VhsT40zuZ2TO2VtyOuHJrA4Fy8EYMKNbgiBaM4VbbDoSNNkWfFZdpiO4UO0jVH96aAZHmx9NAs8ReJ6NOWZwd9pTgoawBeM0/5s2mOVu+nQyAvL9LNq5gdtRBT0x007lyZLjYLUs8ysJ2Lv13ipWWDgBHR8O2/WFH9gRKzUq9jURab/3o6Vi52bGn7cTS+nE3vZ2zRGaLBXH2FQUD8RN5fkOlducXMPRd+eomEbpWWpNaxmP3J2E2HajgIN8d ZZaA6IcD gD0hLHnJU7SyJcUwWAnrDMBeq0dRRCktn0z8itMrvRq0X8eydn8+TwupMnZ8GS/hQ58YtcZnGZ3SvxOf5FeDwKQnBMj9yiLtKrzBdvBmH6qtn1Q0h4Zl2FL3t5xtjTX5QAsQV/7IMT6F5DDx1qqCPZIIeAAdXo37xe/WieU5br/xTfWsL1+rv2AILIAkQANcRDiEw7MEPn3+R9P55jkaMv1sOgEqMQBW3MoM2V2Fme8sEmdevENQUrvRS63pnvqpnogbvy35UvgWwZs7GE6qHlP9Fj7IYNS2CGO+EJVMVSPtUkyxjVjBhcvHBQgvsFnb1kxZie2F/sTtpbf+CWPgvZl+kGbDwme+ml71e50AGIqPIDjGG9siafaVOs9Hlxk/tOGSv X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.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 718010600956..638679a4e5dc 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -126,6 +126,7 @@ config KVM_AMD_SEV bool "AMD Secure Encrypted Virtualization (SEV) support" depends on KVM_AMD && X86_64 depends on CRYPTO_DEV_SP_PSP && !(KVM_AMD=y && CRYPTO_DEV_CCP_DD=m) + select KVM_PROTECTED_VM help Provides support for launching Encrypted VMs (SEV) and Encrypted VMs with Encrypted State (SEV-ES) on AMD processors.
AMD SEV relies on the restricted/protected memory support to run guests in some cases (such as SEV lazy-pinning), so make sure to enable that support with the CONFIG_KVM_PROTECTED_VM build option. Signed-off-by: Michael Roth <michael.roth@amd.com> --- arch/x86/kvm/Kconfig | 1 + 1 file changed, 1 insertion(+)