From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.40]) by mx.groups.io with SMTP id smtpd.web12.14894.1624902213036203009 for ; Mon, 28 Jun 2021 10:43:33 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=Q9U099gH; 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.220.40, mailfrom: brijesh.singh@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yql1pul3myGTUr0qxzr+xaTnXpJrAJBEtkfplfMS0rJF/RMSrPq1Llu2Y1aMnMde56Mu43do+Xd3Y5nuNT6gyk0QAq+xqJmyMwpB7TrZgd4rl4xcScoja1WtakVBQOrcQVlJ2LgjDXRIKEM+vo8lUc4EnLSHH8CXb7SOQhHzGLQuhr4tvTy5/ErdvbKzBb5rQ3ZF5dRJnnfY1fFVrosigGkUErkLOGdH2b4Dzf/pETpd2yQXrpBOxdjt55jQUih9uCYIgBnOfQLV7yrfMWvSi59FWZ5/ZMoHMkgtSCLHQydNDp0WnZV7EVxqJ60HCrnXEP+O04TpVM7rXOBYxa+QQA== 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-SenderADCheck; bh=WttPWIeqydim111YSyO9AqbiZ0/Wl1pBHdiPbk966mA=; b=F2D0I8YOHmNcxQWT6RE8weaQTZlm2eDvB2m69M4CvY7AvH3HVmudPxW6OIpIUpqq1p5S4V6K5rzq7I2G3a9pTbUg/ZMjSOQ0pz4wgbt8BS9FnFmbxhoWOVm/58ATVFTxJYXxtWwCXInsw7HierbYBQX3UapXXEfON94U8pAnuB3anGLjV45deA81X6I7h48e2XzS2/tIK3aMkZnY//u6pj32tphjArcb20f1hVOYJBZHxKqlcMw9QYpz74XiccM9iid7QeancLM13e9KzTfgMCZE5Xn/0xny+dxN4S0aycAE1Qua5LoxnSOeF6mZfRnLrU4n+tPzxxKxoFjTm6vZVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=WttPWIeqydim111YSyO9AqbiZ0/Wl1pBHdiPbk966mA=; b=Q9U099gHNFpG3Ht0SIKPMgARBVlZuJD2sHob2LUiEYDgiw4N6XV8PnPKrAB51Gg+uCNU0T+EUrSNiQNR7EHV7gTF7maRRSy6C/gCucT+UQi92F/bKg6Yvudmzq7VjCSSpbe8twuAZGb9r0iotdWNz7tzc6Ki4bfiZlexDz/e83A= Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=amd.com; Received: from DM6PR12MB2714.namprd12.prod.outlook.com (2603:10b6:5:42::18) by DM6PR12MB4172.namprd12.prod.outlook.com (2603:10b6:5:212::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.19; Mon, 28 Jun 2021 17:43:31 +0000 Received: from DM6PR12MB2714.namprd12.prod.outlook.com ([fe80::7df8:b0cd:fe1b:ae7b]) by DM6PR12MB2714.namprd12.prod.outlook.com ([fe80::7df8:b0cd:fe1b:ae7b%5]) with mapi id 15.20.4264.026; Mon, 28 Jun 2021 17:43:31 +0000 From: "Brijesh Singh" To: devel@edk2.groups.io CC: James Bottomley , Min Xu , Jiewen Yao , Tom Lendacky , Jordan Justen , Ard Biesheuvel , Laszlo Ersek , Erdem Aktas , Eric Dong , Ray Ni , Rahul Kumar , Michael D Kinney , Liming Gao , Zhiguang Liu , Michael Roth , Brijesh Singh Subject: [RFC PATCH v4 09/27] UefiCpuPkg: Define the SEV-SNP specific dynamic PCDs Date: Mon, 28 Jun 2021 12:42:05 -0500 Message-ID: <20210628174223.1302-10-brijesh.singh@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210628174223.1302-1-brijesh.singh@amd.com> References: <20210628174223.1302-1-brijesh.singh@amd.com> X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SN4PR0601CA0020.namprd06.prod.outlook.com (2603:10b6:803:2f::30) To DM6PR12MB2714.namprd12.prod.outlook.com (2603:10b6:5:42::18) Return-Path: brijesh.singh@amd.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sbrijesh-desktop.amd.com (165.204.77.1) by SN4PR0601CA0020.namprd06.prod.outlook.com (2603:10b6:803:2f::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.19 via Frontend Transport; Mon, 28 Jun 2021 17:43:30 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f537f9f3-24ac-4956-021c-08d93a5c3eca X-MS-TrafficTypeDiagnostic: DM6PR12MB4172: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3JoI+HcaLWtvgju06r2frduUU9QsJTM7Twc7zRhoTlscHNWGXJhLmzZtYaOu2KT6jlA8lp8SpmvRa71fu6p52mnL75pf45+SylcG2du634sdAvvnY2tVEEtktm/Nkcq08Z9ngBuoKWufdvXMH8PVi06/nlBg9nB2ZQAedHxUGheSmRXy5ZQWzsu2vxrniNXItTMl5jdGMt7UjHK5RH9fkdbtFCsuRJEFq2L1qT2pH3JrfAac4RpPDD5qmV3xxFYL73gZzVrq7biw43MWJY/tKfRQggbog+9fJuVXLgcwzuyFBl6aTX4EPso9Z0GQiDEHlJXQWlTv48f1+xxqedTdRGg74Kgwq5AIzn4U05oz4y4n2Iq4wEw8yN2QhPUtB5MAw3DIQSRD97SN14tMry/A1Sn1fn41+C/q4SLIKKvTBGrdAcp1+NGDodL4a8kZGMqhZAX1Aj3mERh/LQWlX8h6YFjK4b6e3mJankGcoXU8mUuNfxYvaUKG0+x1PlAyd4qnNfXKqHvJQQUC0MTm7REeglqelY5+RMWAjJUy1U1PmH0MJlu4z5OecCHsn2QzT+wfXl1BdtFEkYB8Km/ZR/kE7B6WX2/WVwsp81qqtFteZNdF2MHLHg0hABAa5JbKyAEWGmhzECsf3rxQE2tNO//UKJrYSRwnyiUccj6JDYWzqL86zagdAxp+pyetH7Kznu5b60aknJGZmJSBBnkEAwnDfedj1E5SSBUYSYcF4VFiYdxxotBtDR6IxzOotVGsMac0pfRLQazK+L7qxfgREOIH0A+YO/vtjUbJXQNbDSB8wEQqjM2Qco//UnrxijchYGADWhK1UDCooPR3PkZ21+i1gg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB2714.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(136003)(376002)(346002)(39860400002)(396003)(8676002)(66476007)(66556008)(66946007)(966005)(5660300002)(1076003)(6666004)(8936002)(38350700002)(38100700002)(4326008)(478600001)(52116002)(2616005)(316002)(956004)(6916009)(7416002)(86362001)(54906003)(2906002)(7696005)(16526019)(36756003)(186003)(26005)(6486002)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?iqZ2jbD2us+9199OQZ6iNLippjKSUz5rMGwk2GdYZeopxx1J/uErUf5Ivc+/?= =?us-ascii?Q?FoidmkZoKbIAT7ue2ya+yDADyzZIdIKsN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AIG5z3GMLR22W1n7dX5dQDRVkdrROSp1BGL18LkGS?= =?us-ascii?Q?NLHh3Qf7w87dkv316ElrcMp1a7SEZJWXNgeMVMLq3Im61anb1+Hx1XCi18LA?= =?us-ascii?Q?ZVg5MhWkS+KUAAhIeByXdGtS2TvhcE6bx+EtDH4vQjcx0jGyTB2jjkv1phCp?= =?us-ascii?Q?uclsytLjMtG4Sn6hWqYiwQ5lZC3F37B2PPJ3NS0vKRVgTFwWxxCVlLQf2UKH?= =?us-ascii?Q?P1H4QJ3DIRWCqTS9boeGaQ0pto5GN6mCkf9ZBNu87kLZu+qtU09g25xNJc4h?= =?us-ascii?Q?wXeTskFTMK/gMSFKTknLxjH0Zrx3ZXPJd1clHJq9iDqKjrIwFczxZvUnTPDD?= =?us-ascii?Q?ZKnUFInab323T7T9jYDz+f87?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f537f9f3-24ac-4956-021c-08d93a5c3eca X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB2714.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2021 17:43:31.5913 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3u/gj/kEYzfF/10W7c0BeHprjGFJg/nhBb/S8uYFBkcBLI+PaN8R69kxaAlikzeQRnhTrYco4V1czlhfi4Xjhg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4172 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3275 Define the PCDs used by the MpInitLib while creating the AP when SEV-SNP is active in the guest VM. 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: Laszlo Ersek Cc: Erdem Aktas Signed-off-by: Brijesh Singh --- UefiCpuPkg/UefiCpuPkg.dec | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 62acb291f309..0ec25871a50f 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -396,5 +396,16 @@ [PcdsDynamic, PcdsDynamicEx] # @Prompt SEV-ES Status gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|FALSE|BOOLEAN|0x60000016 =20 + ## This dynamic PCD indicates whether SEV-SNP is enabled + # TRUE - SEV-SNP is enabled + # FALSE - SEV-SNP is not enabled + # @Prompt SEV-SNP Status + gUefiCpuPkgTokenSpaceGuid.PcdSevSnpIsEnabled|FALSE|BOOLEAN|0x60000017 + + ## 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.17.1