Message ID | 20240329225835.400662-26-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 6500ACD1283 for <linux-mm@archiver.kernel.org>; Fri, 29 Mar 2024 23:05:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ED8236B00B0; Fri, 29 Mar 2024 19:05:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EAE946B00B1; Fri, 29 Mar 2024 19:05:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D277F6B00B2; Fri, 29 Mar 2024 19:05:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id B43946B00B0 for <linux-mm@kvack.org>; Fri, 29 Mar 2024 19:05:24 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 77ECE80553 for <linux-mm@kvack.org>; Fri, 29 Mar 2024 23:05:24 +0000 (UTC) X-FDA: 81951609768.08.A61D630 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2055.outbound.protection.outlook.com [40.107.93.55]) by imf17.hostedemail.com (Postfix) with ESMTP id 859FD40017 for <linux-mm@kvack.org>; Fri, 29 Mar 2024 23:05:21 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=CiYljdty; spf=pass (imf17.hostedemail.com: domain of Michael.Roth@amd.com designates 40.107.93.55 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=1711753521; 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=0xHhkTg8VzVvhSodYJrNf6IBU64g70xsxalqoGKfNNU=; b=YS3d/wMADjLapMeeANVOHYt0Tb2RY5oHc7vn2PvZcBEP4iy2xVKgVQ48U0/JyOIlljIx8P oCm9on6Vxe6xNcp8MPMejFovGEtWvtJURUdcs92jQs21eXtJKRRqrSwMiwtyH5sHx1LSxK JunZ6EtATKNK9xvJwIRWnXAQG5c/MqA= ARC-Authentication-Results: i=2; imf17.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=CiYljdty; spf=pass (imf17.hostedemail.com: domain of Michael.Roth@amd.com designates 40.107.93.55 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=1711753521; a=rsa-sha256; cv=pass; b=QDBWl9uNZ/Nod3QB/uEikVzNViXWN0o+8kKyFefRGdCLoM9+zQ4+5Uq3QxF65/d7zMi6uk WeLtRmpzmjMwukcC81tcoOntBD89PDHgnBnJ2pZt+ExTaHovWrhMdcmg3hHlAv/S0bIZki rV40jHnL/qDBeAws5K522xOUOnhNt4g= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=frzmtRSMgBkKrfJWtOOGtMYpWeHXByzvQMnImIaM/Y7Zn2imPqws5JlYj9amuUF7FI5lNiyklssDg+ARrRLBuS8lQIqA7fbe6NeMhLebUIhL9B0KslGoGwkSI8w26HbYXtNH99ifjXXv5HNWbojwJeBChDiY1OiTTPeVm9z0CkCG2F9296ifulu89PAJU6Q4HA3p7MYj7ijD1xJNvf4pVrEl/p6jS2TBFLnBdLg7VcZLRheUe889qDpg9wjBd4oKfsj2IOMDjSBUhxrosv5TkBITL9bt0vlljnX9SNcY0gSk+8Z5xw5HfzhpnzZfWHV4Qer+cYmDLSRjTXMWut1SoQ== 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=0xHhkTg8VzVvhSodYJrNf6IBU64g70xsxalqoGKfNNU=; b=D7IP749sueI1loeTEp2KDxvWwsRo1KaWTArhoRats/5kCwSB08YbUFMmM9uulAxh8iaLUUhpa/pniwdbLIYcT7p1OfsIR4/nyn9w61eyC6YyeD1ph0ZxIjN2oeMBoYQzuPGmlsyo8xJlk1vVynWpXobaKAw/QPiIfjP5HqWPvaKMezBEfvK+TbnrGCThTjNISgOH9j1oNwVFgiTIAsWELpWKyqPH8uLWXGDtLT+FrHRXGm0dnEr//8Eex+iA5UUrxsXSdPnGtd69hN6inbsiaeQFh0FyYfjIjUl5UKr6VkobpNu+a5dtDGFxvea5t7H3Os8SDzfb34a1RvuQ6+3OAg== 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=0xHhkTg8VzVvhSodYJrNf6IBU64g70xsxalqoGKfNNU=; b=CiYljdty2T47vksPxtji3WbPU/xydwrQM2lT5uTskQZ1tii/+okgoDkLLcgrK4p0Lsrrpjvg2vJP4VZhHeJF4ETfzd2mdmQNAO9ucswMvvX1T8rF5ZmwXySmiyJHov8Ym/YLqG0SuRVH2JWw9Jecy0MTSCWiJEiXZlEmkU71gno= Received: from DM6PR02CA0089.namprd02.prod.outlook.com (2603:10b6:5:1f4::30) by IA0PR12MB7578.namprd12.prod.outlook.com (2603:10b6:208:43d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.33; Fri, 29 Mar 2024 23:05:19 +0000 Received: from DS1PEPF0001708F.namprd03.prod.outlook.com (2603:10b6:5:1f4:cafe::aa) by DM6PR02CA0089.outlook.office365.com (2603:10b6:5:1f4::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.40 via Frontend Transport; Fri, 29 Mar 2024 23:05:18 +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 DS1PEPF0001708F.mail.protection.outlook.com (10.167.17.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7409.10 via Frontend Transport; Fri, 29 Mar 2024 23:05:18 +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; Fri, 29 Mar 2024 18:05:18 -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>, Brijesh Singh <brijesh.singh@amd.com> Subject: [PATCH v12 25/29] KVM: SVM: Add module parameter to enable the SEV-SNP Date: Fri, 29 Mar 2024 17:58:31 -0500 Message-ID: <20240329225835.400662-26-michael.roth@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240329225835.400662-1-michael.roth@amd.com> References: <20240329225835.400662-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: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0001708F:EE_|IA0PR12MB7578:EE_ X-MS-Office365-Filtering-Correlation-Id: 0f21ff6f-1ba8-4cea-c97a-08dc5044b406 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TErQZmUWz8PNTqKamo3Yb/KtS5bP5C+DzeoqPvFzYaHaPgGp/+cFm0scDCZxRhB/3DroiSZcjmtpx+l3xjfNxR9fivC8wp0QMnJPparxBfI8JvJLNAhoVHlMXlvaJ9GIAjUIpST1uyFpE2JfH2c0aYE/WyNVnCjUNRVCnxrWd5xsGSMbLETue1UvmW9RwG8L7cRKWCBjpm+uG6FHqfO1inVFVFTIVlkOuoM6GCxblaAQM4xjgi4nphzgT1mmhr679S4kL6r0zfwUNQCE2SU0X2CQJsRmDhwARrW0BoHaWhugAHRT4j+vu2sE34XAVtwlJufMehNZVcCSZCmkMqAxoHpcmi86S+Un0hB7xvehd34avgQnHcB2xyp+WkoWJJgcF1ZKeGZrQFf8yAcBwZtE5qUvSr07P26kKxUjNB3ykesyyjIzLyWrmdYjdOzB3MRhCoNhbrPuaelfzF/qgnEAFtagqxy9dcRN0D7eZO21LwOBUuwMOekFV/I1iaIzA0RlaXcCOa7waSjDkvu/YZxPBmym/Arhs1TUhyL1bYRq5pem/rXvYpIwA0f+YazF/mOyHwQuXyfVnaEtEwDrZpTdM1bryyKx/oG7Nz2T6dzVwVd9FxHBKHQ+gLYbn1Ex/YuRavTBp7ATxNx5eMNywmxbcvTDGjxOMwSiIt6C4EhQGK8qTkBilCN1VDJDxFTI+NsSUCLvqviql9KZNELVgmdvNEq4szxbj4YZjDyWzeHcNLxxgmgkVy6XQ9rY2xZz9p06 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)(1800799015)(376005)(7416005)(36860700004)(82310400014);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2024 23:05:18.7328 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0f21ff6f-1ba8-4cea-c97a-08dc5044b406 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: DS1PEPF0001708F.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7578 X-Rspamd-Queue-Id: 859FD40017 X-Rspam-User: X-Stat-Signature: aqrdbuk4cr9dqwpx43ickrd5efqza6rb X-Rspamd-Server: rspam01 X-HE-Tag: 1711753521-357750 X-HE-Meta: U2FsdGVkX19yXLd0mY0IGv+cCIQ2uGASItaMEzhQBSTE1d1+H2+UYlD1PVJTv3YlZCEuke2OOivQqXGe/hCAiJK0MSnrLOTGn0N+bIJmfu3zE2HfXdpVENzyFhiEU5R6NXrsLn5Nf7ii+C0bSq51+CCPsH+Rk9iF7vEAnhhAJsa+7hjwGcMKFJ8DBbZ9qQ1tBcnIfiXmKVbSGotGBz2sDQ3vWpLbGKhYJBeAYFggZ1gFBgfU3c8DfOwsQHegVJFM5OsJUPMCkzyNsGcYCXd0FQVh2BZ14jDY9XeeMopLwO1VsIC2OUMBMWOucrY0dg/sY0TkRhJJhqMtlZjTq1kZFL38oF9160MNReBYXLerA+9RldnBJd9iOpiLI+/YHzwA7bjWJ2m7WyyqqW2fNccgkRHT8paMxI9XoI0mp4OFuFWWDFG09Cxe+z01pIqnjW5dgJdy74aiw2rUhwiuYAozeeVcMGjfsoW6+oNUZ4+/sHRz/yro1I71mAiGY7nUReDUtWlAmV4buJJacwZD+OoK3/McNGn8zDP8owffqswFObXKM9lMvNdDe/Qq1d8pisxUSK8mENkxO77lPlYLLCktB3JcaGz4EE0tylM7Qm1mnezdr/A2ODf9ghr7Rwt6pRQZH17de50gO9DXchEjtZZxOkFgSudIPX5qvWjdYo7uwJnW94dvVTQqRVXJ1gYnhvz9CIG6kCgl19CB5PqxJVrc4oAV70baVvbZXK/2EsFJqGxujIn8GY+LAZCh+DUDZhO99aqIMS+VIiT6dZOF+LFGGdd3msOKidxzB9aZLT0AaOyL4oamw5GJtPzhnDMq0fUZCKrwi4FLV4BMmuNXO9SNeVH3DsNxIcXEp0WMZRF2jC2f5mWk/juXPMGwu2kZdzRgMHleyHog7S5EYdHs5bgCshHnnuEOuqdBXnreOwSnSZFS5E3gUWCEkGRREWd8MbONPA5tn7YbzpbirRinGof oZPI0v0A ypF8u8mb7FdziyJYaoxKh/SEggV6syD+aPfGuu5s1gZ0mA3usK9G42B4etYucXyeUaYXXLfdRkuS4hVuH5tl+PGx23V3RX8JG/vIhNXq7Duf9TBzOol/pMYhCr+X+TqE9XkdtsfhBD9bLyf0O+3wDFbyAS+V7slV0UDPD837G1OYjjrLLrLF3E/GlrrTKY1GNTTeUiNmxPqN5NZTvLTNPFmeTLNMezFBTlmpaB8yuRKxvopuJc118FMLWFjKYIpCk1cZFhaxwU9FI/U55hu2yPMfIu/q1VIoVtBbl0aZn8B22vJbA/Ex4uK0vS+n5AIU2W1Ab2F0I1kNg+x4= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, 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
|
On 3/29/24 23:58, Michael Roth wrote: > From: Brijesh Singh <brijesh.singh@amd.com> > > Add a module parameter than can be used to enable or disable the SEV-SNP > feature. Now that KVM contains the support for the SNP set the GHCB > hypervisor feature flag to indicate that SNP is supported. > > Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> > Signed-off-by: Ashish Kalra <ashish.kalra@amd.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> > --- > arch/x86/kvm/svm/sev.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c > index 3e8de7cb3c89..658116537f3f 100644 > --- a/arch/x86/kvm/svm/sev.c > +++ b/arch/x86/kvm/svm/sev.c > @@ -48,7 +48,8 @@ static bool sev_es_enabled = true; > module_param_named(sev_es, sev_es_enabled, bool, 0444); > > /* enable/disable SEV-SNP support */ > -static bool sev_snp_enabled; > +static bool sev_snp_enabled = true; > +module_param_named(sev_snp, sev_snp_enabled, bool, 0444); > > /* enable/disable SEV-ES DebugSwap support */ > static bool sev_es_debug_swap_enabled = true;
diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c index 3e8de7cb3c89..658116537f3f 100644 --- a/arch/x86/kvm/svm/sev.c +++ b/arch/x86/kvm/svm/sev.c @@ -48,7 +48,8 @@ static bool sev_es_enabled = true; module_param_named(sev_es, sev_es_enabled, bool, 0444); /* enable/disable SEV-SNP support */ -static bool sev_snp_enabled; +static bool sev_snp_enabled = true; +module_param_named(sev_snp, sev_snp_enabled, bool, 0444); /* enable/disable SEV-ES DebugSwap support */ static bool sev_es_debug_swap_enabled = true;