Message ID | 20240423162144.1780159-5-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 B497AC4345F for <linux-mm@archiver.kernel.org>; Tue, 23 Apr 2024 16:25:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 46B236B0133; Tue, 23 Apr 2024 12:25:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3F4136B0135; Tue, 23 Apr 2024 12:25:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 220476B0136; Tue, 23 Apr 2024 12:25:20 -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 F261B6B0133 for <linux-mm@kvack.org>; Tue, 23 Apr 2024 12:25:19 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id AE76A1C0BB5 for <linux-mm@kvack.org>; Tue, 23 Apr 2024 16:25:19 +0000 (UTC) X-FDA: 82041321558.11.F6D0857 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2082.outbound.protection.outlook.com [40.107.236.82]) by imf25.hostedemail.com (Postfix) with ESMTP id D7B06A000F for <linux-mm@kvack.org>; Tue, 23 Apr 2024 16:25:16 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=FTjCWayX; spf=pass (imf25.hostedemail.com: domain of Michael.Roth@amd.com designates 40.107.236.82 as permitted sender) smtp.mailfrom=Michael.Roth@amd.com; dmarc=pass (policy=quarantine) header.from=amd.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1713889517; 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=uGdYWeUMgqUQNiInAjcQTgDZEuZULJnifx5b/bbLioA=; b=0QsSzb3Nba1tfZXFh6/BVylI7rBNFt/97CcjljotNBkWRRPMIH3sdSIb5HCJlhdym/ua0x e/Zpj1EdP89hAK5/uxNawweq2IZex+FuBGfLuuQQqzMXuWIh1jnhG/v6cavtPzDI0HK7Xy vi2RwiO05UIYMMndFeI7GUTJiYxncyI= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1713889517; a=rsa-sha256; cv=pass; b=Ik8IF9Oz4Hbw6+1hBwg2gStIx9ZoQaErRJWzayPpn5vCiNq2cvcupymzNy2AHGCDwI3rRS OFKxOKBGpvRxZEwAl0Z72jKCB67I6GpyvHO4UeUoGDbHLtcxes8YBo7RIl9t585yh7iiRZ +TraxxADhALMMsmY25esjuUe4IrN6LU= ARC-Authentication-Results: i=2; imf25.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=FTjCWayX; spf=pass (imf25.hostedemail.com: domain of Michael.Roth@amd.com designates 40.107.236.82 as permitted sender) smtp.mailfrom=Michael.Roth@amd.com; dmarc=pass (policy=quarantine) header.from=amd.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ne4rwnXmWgfPefIaSnCkSTYah74AkqekI+U23EwscScRD3CEF+xjZ5nLHqCYqDSPeaSf2QjIKjxSn34ouwgWLsU1fef1IVYKCanEKgS+0BDumq/yBQuaK1lPQIZBpmMogf0OoPnxXwvI2PftXZIBouXjRGzHPfWQglkNZASXhx3yDEkqFFrhltUSBpyXJyoDI3vt++XhUVCSs+QnxsLp1reUQqyJz+psjRakObuWh5jABja7+n02r9qILvNFTDJEEuk3awGoSbwnMEgjy2g0b54fYsQnvt7SGrYlQT3fR4EUMG2KiHTfguhSO8FHvADDmblRTzm+l1J9Yt0NA2nmOQ== 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=uGdYWeUMgqUQNiInAjcQTgDZEuZULJnifx5b/bbLioA=; b=kdhzWVpCX1d435zcjxuvBDxev49UP5FMDFZB+J4CiSty/6I4w2ryKCpm0H7YZhQhnXFeNidP+Orau+SDL57ntMuABOiWN4ZLo8FligYfmHz2rta62qHMH9Gqssx4NXBLTNoTXHnnuUAXbhBwo8rYrmcygc3RZITYbn4lxiyVyoGzSpZM49L8bNH3fU/sdTev2lu9mFRU8r7Vzibew9QJ/It2sSYYrL6cJ8kxYLreDwP01O5N5uMn+lZz9EguCreCeMzAl5jitFA9ujAn6odubm3i6+sUWLYIiByMHE5r7vNpyI+Rzm0pcFyTcxiWx5DuqJ9Z6Rpjs61B964/MeXI3A== 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=uGdYWeUMgqUQNiInAjcQTgDZEuZULJnifx5b/bbLioA=; b=FTjCWayXZMrCOyUhMR8KcgYukLA+G5LpdsCsv4FefIU85HG2svFjOUsW3XtHCSE72GpipRhlmzxNKe0z8yIQT9ixKMNxa2VlYTh2MGiSVG1DNUGljz7K3Iswx8phEtkja73sqaH3VAaJhIjByfaagA2+Sn6kWfjze61KJoZ3a2E= Received: from CH2PR15CA0017.namprd15.prod.outlook.com (2603:10b6:610:51::27) by PH7PR12MB9204.namprd12.prod.outlook.com (2603:10b6:510:2e7::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Tue, 23 Apr 2024 16:25:14 +0000 Received: from CH1PEPF0000AD7F.namprd04.prod.outlook.com (2603:10b6:610:51:cafe::9c) by CH2PR15CA0017.outlook.office365.com (2603:10b6:610:51::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.22 via Frontend Transport; Tue, 23 Apr 2024 16:25:13 +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 CH1PEPF0000AD7F.mail.protection.outlook.com (10.167.244.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7452.22 via Frontend Transport; Tue, 23 Apr 2024 16:25:13 +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; Tue, 23 Apr 2024 11:25:13 -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 v14 27/22] [SQUASH] KVM: SEV: Provide support for SNP_GUEST_REQUEST NAE event Date: Tue, 23 Apr 2024 11:21:42 -0500 Message-ID: <20240423162144.1780159-5-michael.roth@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240423162144.1780159-1-michael.roth@amd.com> References: <20240421180122.1650812-1-michael.roth@amd.com> <20240423162144.1780159-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: CH1PEPF0000AD7F:EE_|PH7PR12MB9204:EE_ X-MS-Office365-Filtering-Correlation-Id: e5ffe3ab-2aa7-4b93-e711-08dc63b1f441 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KXlemEq4XVwpbgBmb8EyCJNbbuw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xma/Qv9hb/bpLOxO9U/JaRLuKKeiU9RqFgb8UKIGQUj2BnOC8CJ4BHHtuUe1A0sCrF4pKyyIyJZhv5MYygKKi79uvgpcs7it7E/YziTm/fuo/yjyRF5sDRDkpYCrh5kNtt5RU2KlSpiVCV70HXy+cn3I2YBGU6sRgQedzM5qN8503lpboASt2YMyjZElriOPANGIvqLmJTWzCge7y/ChQwJT48q072w6b+gt/fimQ1BnePej8Qqz0vPA0pdSCIhP14xP5JmPTJjuFdkMH/GV/ffnKQViLru7nk= 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)(1800799015)(36860700004);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2024 16:25:13.7307 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e5ffe3ab-2aa7-4b93-e711-08dc63b1f441 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: CH1PEPF0000AD7F.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB9204 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: D7B06A000F X-Stat-Signature: ijahxnuu6mpo3kb8swyqc461ooqyashy X-Rspam-User: X-HE-Tag: 1713889516-560655 X-HE-Meta: U2FsdGVkX1+mf3j6T91s73nf0ASvscV4qMxcJivHuR8kvWZJp6zptDH4Wiojctzdhcovk5iJPEJIgdd9bAOVpOCjQactMAmfDXSsEeR68KdPPKASyFcm9I39DX2MzuRjrVBK1tk5jOgSwyubeGHqIqLw16wxnFM3WQ9xznO3Ew8mfdOcrdjiSjJsoYQSSpnmqJFsw4/6Aa/KAc7teXDNJCR29EZIJKsf0P/O+2HmF89aZX+OXw2Z/Fa07rBcSVs5COeDhKdZ/0dnll8UoQtFE7lcwCcvekTlSWIc6Dz9ldAUeSAIKWQ18ZwNWapYCgzGU1vepclLXzuGYk7/yA0n+hXD4yG/x6EEuQi7rMdbmEitRNB311UfGiu2Jcqv2jVsCMCuqDqCQ9tpknZHw0eTqjxxaIdndxMfJQbi+TvMy7r3u6AW6A1XBaoyNN4e5xTEwqS8FMpBgSlPmSDZ76FXqdsjEs8VpZ5QfYblPw9Vj4U2E6KIdqVclipkeetlNbtJnh1kRQs7DDR9/TdFugYRMvA0EI7YvqNjpzBKZAuHRoszghaOlF5ex3YHAsP3NuHtkDEQzL1ghjNXaCfNguOYN9hpNy+cLF+ChGTAXEv/mg3i8/qqLX6kTIZo9G//ODfgIBPjaXLvFBK+TereYxKNsQGncty/1TVLsQUDykpygjkMDmUpAV+F2JbAa9dygJbEJBPNhYeqW7/2NsgrSZEoe1s2e51UWFG5S+4iUk1GJZaa5e2x8plwOOvgEjSQeW40tGu0EaQ0A1mk83mGk0bnd0dUsuYBWjvHs+xIahOJtlpDzZGn7aUk1aTJJ0fk6MJlkRxaVxD9gw+ZuHinArbp57vmLNgor5AaLzafn5Auz7XKVmRL12+J/IMf84jQ9TXFF54L7DsmPAiMVfWFzluNL0n9nHO+QUKVKNetyfaR3dneavErzQ2DOna+W3mepxQu6grLk/DizIT++wVDueh sKVuSe1C 8Bb2nt+Lw22LWDPIGH3cKfeW20aF74Sm1GL8n X-Bogosity: Ham, tests=bogofilter, spamicity=0.000544, 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/svm/sev.c b/arch/x86/kvm/svm/sev.c index 0e22f588dbe4..2b30b3b0eec8 100644 --- a/arch/x86/kvm/svm/sev.c +++ b/arch/x86/kvm/svm/sev.c @@ -3292,10 +3292,10 @@ static int sev_es_validate_vmgexit(struct vcpu_svm *svm) case SVM_VMGEXIT_TERM_REQUEST: break; case SVM_VMGEXIT_PSC: + case SVM_VMGEXIT_GUEST_REQUEST: if (!sev_snp_guest(vcpu->kvm)) goto vmgexit_err; break; - case SVM_VMGEXIT_GUEST_REQUEST: case SVM_VMGEXIT_EXT_GUEST_REQUEST: break; default:
As with SVM_VMGEXIT_PSC, ensure that SVM_VMGEXIT_GUEST_REQUEST can only be issued by an SNP guest. Signed-off-by: Michael Roth <michael.roth@amd.com> --- arch/x86/kvm/svm/sev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)