From nobody Sun Feb 8 15:37:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+62992+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+62992+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1595366388645590.6118391545702; Tue, 21 Jul 2020 14:19:48 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id FSN0YY1788612xo8qgpRcyI5; Tue, 21 Jul 2020 14:19:48 -0700 X-Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.107.223.64]) by mx.groups.io with SMTP id smtpd.web10.5598.1595366387629071851 for ; Tue, 21 Jul 2020 14:19:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cYJPcjRcjFdMvcgj+fSu3GxnkJL8Yu9qJyR8VZNm1TP7WUx9DFk3zgnpUyK8hnduNfjwFxVctk8coBMvSLOZDD2CDBYNzCEyZ3BaCky28yHngvWNEZknbx5MzVoPgVjeg39iDx/oT0y9Mjk5VsYr0hF47P5RaGwY7Hwm5XfGlh+H3Bke+vSvymvV39KYeJW0yLmQZeld0Qc6oVEBszcsjGOw4SdYYYjmHRqOU/X+iCwPr1UjsLc72Vpw1zRjrmkEdebSBu0wJ/jR6oNHLaKJOYqTQGCYIAPgluIDByHnbpjyCEBQFzWuJ3QrPZ1KItfwm1d9L4n5pqKzbGDvmW9F2g== 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=Hqe1rDuCswusit5U/Sbl9vY8AnSbuBv1xrlSJIgoLm4=; b=FJxdXEUHp/antCDQtsh3McekccFMB/1Jp0S+FfYhq310HPUVQqcK5gL54p2/fkrnvzJORQP6VK7oD9cB3zIWlZJ2ZXCkWPMckZ7CykWe4qjl08TW3uIOvwSo8Rwt/DmdeyjJIZyUmfXRnQfBwZ9sPFugVvVMiEGf6/HrhuP0sxh1SBgAi0gVyjgpmgCxc30kROcczUOtoo9AhwU8I34ZKVlwL4wEZeaGkPXXwO4Y+wgW6R1WXPV9TJYN/ztQbqEW7/w87zviGlMHzwEjYlZZ+QYrJacxIFyl2j92iN4u2fOPMue2ZaoxEdj4XgD9S7hGpK6SkRe47LdXroqp/8gNnw== 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 X-Received: from CY4PR12MB1352.namprd12.prod.outlook.com (2603:10b6:903:3a::13) by CY4PR12MB1606.namprd12.prod.outlook.com (2603:10b6:910:10::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.23; Tue, 21 Jul 2020 21:19:45 +0000 X-Received: from CY4PR12MB1352.namprd12.prod.outlook.com ([fe80::9181:78bf:bf0:702b]) by CY4PR12MB1352.namprd12.prod.outlook.com ([fe80::9181:78bf:bf0:702b%5]) with mapi id 15.20.3216.020; Tue, 21 Jul 2020 21:19:45 +0000 From: "Lendacky, Thomas" To: devel@edk2.groups.io CC: Brijesh Singh , Ard Biesheuvel , Eric Dong , Jordan Justen , Laszlo Ersek , Liming Gao , Michael D Kinney , Ray Ni , Jian J Wang , Hao A Wu Subject: [edk2-devel] [PATCH v11 01/46] MdeModulePkg: Create PCDs to be used in support of SEV-ES Date: Tue, 21 Jul 2020 16:18:38 -0500 Message-ID: <0e4c84fc8f06d00ca2d13061153fd9a64f9e3b2c.1595366363.git.thomas.lendacky@amd.com> In-Reply-To: References: X-ClientProxiedBy: SN4PR0701CA0012.namprd07.prod.outlook.com (2603:10b6:803:28::22) To CY4PR12MB1352.namprd12.prod.outlook.com (2603:10b6:903:3a::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from tlendack-t1.amd.com (165.204.77.1) by SN4PR0701CA0012.namprd07.prod.outlook.com (2603:10b6:803:28::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.20 via Frontend Transport; Tue, 21 Jul 2020 21:19:43 +0000 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1a6e0540-268a-44a8-f07d-08d82dbbca48 X-MS-TrafficTypeDiagnostic: CY4PR12MB1606: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: ZEsxHerXsjYsGmfXonSPwyVUX44WZJN4z3FhRACmQ6ycJ2F7efPdg4h17VbvOpg+k+XrZsdec2ixj5bEGt1D/HUhIm9TacdGgS4FG3UdOtwy12+TpFsOL0tZm9pehv3cXE7/Kp7rAomFMlyIJWuu3k95WkwEGC2TFmNBwStoCnM6bxGsxUcf3AjXGdDblJo7X7/yLYLhxkptLPoVGQHnzqbpOkeIJaimqzZGcrwQYyRJFoAsL3e3Pzlh556eSGOidbFEJVF6tog/+Db8Mny0T7U9dv7Kj9DvGLKbGhpL7jwqPS9zXp9dKWLo4bnkFcuezFJ9aIzCVrsPqaWkqLaWInNPx8OZ88OxPthjJGpms50jM5KmzUpf2UFaaujmyCBxlZrQtsm9TK3mMNtg8sv4C8SaHyAqTij0IuDsakuvZ5YhmhRzf1dDzAyyf0Ra+DkPwcUXkaOHwUSPJpd4//FCZQ== X-MS-Exchange-AntiSpam-MessageData: FczrwOCV9XewOn3Z/1RpD/mdV1ryTyENoqt8b8J9vcMOwoxT2u43KGwYu2XNIc8g+zK73yaQtMSNUVIxiQHWCSi0DYgEh1P9UsASuxXtPDgtHQyZfiRPplAmdAGbGpkE00b3HU96MW/43rg1H15mA5KxzijBoqAkLmRWec8EsRw7OwPC9r9KXgqARF9/yVHRmrzwbf31V8MYkcW4FBKeax7bSZAbwdQBlhEa0/yvLdtmfhisttWrk+8VRB2AAhGolz6/xU1Nqwru7ICQ21xdoEHjiqJrteEBlbsTCKiVgTChvZgwMG5pZAvFuggO5XPEhyO0zzgmIX9h1viIMAnffwg2My9om0k7ySHNJpq5X+ZtzXChEbgD5Vtj0sIba9tiXjsVyAQuqmq3fxtDLLrhLG96X7x3qdIS6PoSfff74S+tYjOHZt/73GvexXMNdOIWSnG263ShwJq4kjzdgSeHUUSDsGSfeQXwtp3cAz1uZsI= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a6e0540-268a-44a8-f07d-08d82dbbca48 X-MS-Exchange-CrossTenant-AuthSource: CY4PR12MB1352.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2020 21:19:45.2395 (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: nGB1FUVYhftPwgGqyGjoQOP7rZqkjxkqXNGJt4ur+MOn9qnIS6bOGSY0jmrPuyU072vrrL+HqDH/qIWiRuYx0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1606 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,thomas.lendacky@amd.com X-Gm-Message-State: 3npQKqJGQ7S8YZgWALVxDxSgx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1595366388; bh=nQKbhrm2izv+51oxytsQry6w7qwzM9jgqUQQ3x1lFlA=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=oSGYDATPXygTHpIAHpP6jwd2UEg1bcZ2MzmYYESmmDldnxOUY0qTdlRx+GuLzzzcNBb ggwbjQT/ILhYjMRkMNeoqZD7zPpYCagK3n8+N3PApQNf3g0y+vnxKWbsJ+l82uUylxcEM 9QPsuHZRZnK1Li4iQuOOX+XALfI/GRim3JE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Tom Lendacky BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2198 Two new dynamic MdeModulePkg PCDs are needed to support SEV-ES under OVMF: - PcdGhcbBase: UINT64 value that is the base address of the GHCB allocation. - PcdGhcbSize: UINT64 value that is the size, in bytes, of the GHCB allocation (size is dependent on the number of APs). Cc: Jian J Wang Cc: Hao A Wu Signed-off-by: Tom Lendacky --- MdeModulePkg/MdeModulePkg.dec | 9 +++++++++ MdeModulePkg/MdeModulePkg.uni | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 843e963ad34b..f8cd9239b4ce 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -2051,6 +2051,15 @@ [PcdsDynamic, PcdsDynamicEx] # @Prompt If there is any test key used by the platform. gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed|FALSE|BOOLEAN|0x00030003 =20 + ## This dynamic PCD holds the base address of the GHCB pool allocation. + # @Prompt GHCB Pool Base Address + gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0|UINT64|0x00030007 + + ## This dynamic PCD holds the total size of the GHCB pool allocation. + # The amount of memory allocated for GHCBs is dependent on the number o= f APs. + # @Prompt GHCB Pool Size + gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0|UINT64|0x00030008 + [PcdsDynamicEx] ## This dynamic PCD enables the default variable setting. # Its value is the default store ID value. The default value is zero as= Standard default. diff --git a/MdeModulePkg/MdeModulePkg.uni b/MdeModulePkg/MdeModulePkg.uni index 2007e0596c4f..2f8cca03e527 100644 --- a/MdeModulePkg/MdeModulePkg.uni +++ b/MdeModulePkg/MdeModulePkg.uni @@ -1297,3 +1297,11 @@ #string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdTcgPfpMeasurementRevision_PR= OMPT #language en-US "TCG Platform Firmware Profile revision" =20 #string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdTcgPfpMeasurementRevision_HE= LP #language en-US "Indicates which TCG Platform Firmware Profile revision = the EDKII firmware follows." + +#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdGhcbBase_PROMPT #language en= -US "GHCB Pool Base Address" + +#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdGhcbBase_HELP #language en-U= S "Used with SEV-ES support to identify an address range that is not to be = encrypted." + +#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdGhcbSize_PROMPT #language en= -US "GHCB Pool Base Size" + +#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdGhcbSize_HELP #language en-U= S "Used with SEV-ES support to identify the size of the address range that = is not to be encrypted." --=20 2.27.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#62992): https://edk2.groups.io/g/devel/message/62992 Mute This Topic: https://groups.io/mt/75713031/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-