From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.107.243.79]) by mx.groups.io with SMTP id smtpd.web08.2425.1636582536358139801 for ; Wed, 10 Nov 2021 14:15:36 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=Z1grKHZD; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.243.79, mailfrom: brijesh.singh@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XHRQTCkPlMBCSxhYZp6r/+wi/OPB+s5lO4mLRqvdNHaCPdsTgx5kb0EJGW2XfkMp4zWu13Vv7YA5G1JOqVTJAExWm4omAU0NhRD2Y4A/kjqLHdkRMa0adGd2CCDn+lA/nZtqnUQIMLV1XhCyechb0d8lqOGZTkAU3Fwmnbfmn6HMxWVuB0oGU2WR5W7FuprA7gOoFPMAPYJ9gJ/nqn2eO8+OCUJvnkflv40NtWy7oMWOjxzQDgZgPThs0LSYlVnZ/a6sg5BqR7R16Kk28PRrVBaPwEhH6MWJd1SmQ6lb/0tsF6LtNDJSKYNqSt9P/tHbxLH/5Na2sTSYSKkZwaGNgA== 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=axPf5+xqp9XABvBj68lEjn3cO1Zlv4EutULsKiGvtPQ=; b=nOV4P07u03XbjVEJluY5svbhj0mBfDzaTw4nmoSOTRncb7CJKHfV39dv0724ChBao+5TQCnZfKzBSk+Jz0ULRyU3uE7ZP3KqIcPHnlXP9ezCzUXcGynuODQ6IWT6SptW/K+uVGOVWJyDt5I8fvG2yOBE2XfX6NF5qsPUrWcPmpwYdPlLuFXtZ9Ln0vPWr8KStY71eDPjheJ8aRi6S7dbjAgcNF/8hgTTXQue9CUwzAynU3nmwk+I1tIUo1p20tZLkBANatkvBG4wgAUviLf8P2oXMsWt5lncReUswe4wcR5lCuploncza41nb1NuKROYdPDygkWgOAFNqQeGRMTh/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io 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=axPf5+xqp9XABvBj68lEjn3cO1Zlv4EutULsKiGvtPQ=; b=Z1grKHZDb11u9+3A3zIaEwftGXWArYFmrXlYf7ZquVNXwEvEKTXTJ2tuwdjkD8HwnaqLq01tFJWcb3j8Mf6ZSsNAfqVLhnSpltBElDNbEo2q8XVUolNxWtz6LeHfOZponomzxTohODQrrSt7cddPTC2IZxrYLvjhMFZ7nljLllw= Received: from BN6PR2001CA0024.namprd20.prod.outlook.com (2603:10b6:404:b4::34) by MWHPR12MB1728.namprd12.prod.outlook.com (2603:10b6:300:112::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.13; Wed, 10 Nov 2021 22:15:29 +0000 Received: from BN8NAM11FT066.eop-nam11.prod.protection.outlook.com (2603:10b6:404:b4:cafe::a) by BN6PR2001CA0024.outlook.office365.com (2603:10b6:404:b4::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.13 via Frontend Transport; Wed, 10 Nov 2021 22:15:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; 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; Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT066.mail.protection.outlook.com (10.13.177.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 22:15:29 +0000 Received: from sbrijesh-desktop.amd.com (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.2375.17; Wed, 10 Nov 2021 16:15:27 -0600 From: "Brijesh Singh" To: CC: James Bottomley , Min Xu , "Jiewen Yao" , Tom Lendacky , "Jordan Justen" , Ard Biesheuvel , Erdem Aktas , "Michael Roth" , Gerd Hoffmann , "Michael D Kinney" , Liming Gao , Zhiguang Liu , Ray Ni , Rahul Kumar , Eric Dong , Brijesh Singh , Michael Roth Subject: [PATCH v12 23/32] UefiCpuPkg: add PcdGhcbHypervisorFeatures Date: Wed, 10 Nov 2021 16:14:48 -0600 Message-ID: <20211110221457.2397234-24-brijesh.singh@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211110221457.2397234-1-brijesh.singh@amd.com> References: <20211110221457.2397234-1-brijesh.singh@amd.com> MIME-Version: 1.0 Return-Path: brijesh.singh@amd.com 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-Office365-Filtering-Correlation-Id: 4c5206ac-ae2e-4c25-fd8f-08d9a4979ac7 X-MS-TrafficTypeDiagnostic: MWHPR12MB1728: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MDffPEpS0rMca9YH08bcNYuxglHSpnJRjh46TwCuVyius5P2hAmOMK1ZEMSGy8joZxC6hgiczWIyMb6E/Pa16LnY4d9DPQm4i+rWhUI0/EqfaqeSjsopYVy+G4aSmLaTzfd1kUX6mdKW6Ahj5bgkPcJuLZmHkD6Lacz2NLePbA8kVEGy9keNAitCfwR3H1JcSwVqHv/W00xk7TO4e6hnj4Xk/yex0r2fiiiITxOc16gWucdlOPVKGLmXRNGCrJEXzEKYZUBjB7ZrQhMLH76PKUC27ZJ5Xs50Zqq2JPG9ox1iJimGhKFgp/NASUR9kQVywxAENL3mWSYto2G2jHUijMwnLAarlpWa5zB6kzVdACILOQPByczvzLnsbtc7jbzktg6UuOjDxe0B7bLTjkvEzA+sT9+L7bjZtof4Z5B8tTT0Jw8dm5xme3Sqj8Y5jTipRUv7xw9OYz/jAUs8/KuR0lOd9sbjx6DdYMfOMrCdcejp7BakFVr4OA0gTYX+FDOUa2EvFMgnKij0u3CT89E1MCloqs2gjK6rXxb0ZVTLeD5OgtfFbN1ti+n1FmkO/7DEMbnHY8O5w7tYLqslvmRe1J5QYLYOsQKyoyudI/Kyjeg9w9fu02a4QeyMiNBCL1zyeprd3lJ20uNdQAWN6iPGYXRvBV36j+Q21BTwXakj+uw8+4iMJ8o4nq4HoRO5gicVIhjls1yOaiW0nEUILylpI+D7jcJug40p7RHBYBVuoIjiJIRlr6whnEjn87PjvEDprgllN29zZWIwWBRcsRtOxPWNxbantrN9Q/vtc0il0coP8bgeRwS9aEjf1JY6hSFpbcvDs9vMSujMFVoGicv5oLk6yicJAjtjl23Yg0x9Qy0= 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:(4636009)(36840700001)(46966006)(8676002)(70206006)(508600001)(186003)(26005)(82310400003)(36756003)(16526019)(8936002)(47076005)(6916009)(356005)(70586007)(81166007)(966005)(86362001)(54906003)(5660300002)(2906002)(7416002)(336012)(316002)(4326008)(36860700001)(2616005)(7696005)(426003)(44832011)(1076003)(6666004)(156123004)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 22:15:29.3000 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4c5206ac-ae2e-4c25-fd8f-08d9a4979ac7 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: BN8NAM11FT066.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1728 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3275 Version 2 of the GHCB specification added a new VMGEXIT that the guest could use for querying the hypervisor features. One of the immediate users for it will be an AP creation code. When SEV-SNP is enabled, the guest can use the newly added AP_CREATE VMGEXIT to create the APs. The MpInitLib will check the hypervisor feature, and if AP_CREATE is available, it will use it. See GHCB spec version 2 for more details on the VMGEXIT. Cc: Michael Roth Cc: Ray Ni Cc: Rahul Kumar Cc: Eric Dong Cc: James Bottomley Cc: Min Xu Cc: Jiewen Yao Cc: Tom Lendacky Cc: Jordan Justen Cc: Ard Biesheuvel Cc: Erdem Aktas Cc: Gerd Hoffmann Acked-by: Gerd Hoffmann Signed-off-by: Brijesh Singh --- UefiCpuPkg/UefiCpuPkg.dec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 62acb291f309..7de66fde674c 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -396,5 +396,10 @@ [PcdsDynamic, PcdsDynamicEx] # @Prompt SEV-ES Status gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|FALSE|BOOLEAN|0x60000016 =20 + ## This dynamic PCD contains the hypervisor features value obtained thro= ugh the GHCB HYPERVISOR + # features VMGEXIT defined in the version 2 of GHCB spec. + # @Prompt GHCB Hypervisor Features + gUefiCpuPkgTokenSpaceGuid.PcdGhcbHypervisorFeatures|0x0|UINT64|0x6000001= 8 + [UserExtensions.TianoCore."ExtraFiles"] UefiCpuPkgExtra.uni --=20 2.25.1