From nobody Mon Feb 9 01:07:02 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+63305+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+63305+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 1595863608769140.93006429129343; Mon, 27 Jul 2020 08:26:48 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id eH3vYY1788612x6gl9mcc6g1; Mon, 27 Jul 2020 08:26:48 -0700 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.52]) by mx.groups.io with SMTP id smtpd.web12.58058.1595863607784951457 for ; Mon, 27 Jul 2020 08:26:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XVwQwUz5DkEMizrlEMYbPFikdff2Cra6MOPtS5mpCI52hoIORm8JAigaoXCNpau2DMY+4cyOgoviXjvxNljDKRsBiIuEQoOn+Zkw+O/DwIWduxRQK9XSXZmYZlV/CGOyO2zUCtkswykSFRiO1iSwdu27emCwm1NPPWIBRyNGmmW6hT6kXSnWkCHibUwD2E5ggPOzc7jckANU3OfkRBTE9B4RImX2R9wcxOSKSlSRZGoRwCmxuBjMXXtkBCSG+k2PZluwgd+GWnnLLS0vXY8UqmkVRVQZNtBE3eAb8iBImTXxFleV9sjT00whVdjjMstv0n+JcuiT6ehjKO6+FjnzWQ== 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=LUrp1/IW2eKN9VToMljs05020ByPrqzJlJn0OL+URX4kf2VJBgXDAdCO2fcAUT1Vp38E4Mle199FWo+JSimtn8GJygC/9S6MvyndeUPy97JutDVrr8n4Padx7LvLo5+vBDVSf49hepQaDgsZYKU/31RsZJcN6YxBwRMtCABu6aSf5b8u4IuxNk177zslSaCBt5ZdL93hk6QYP7TDv5aqJPutuUNxs9NAJocB1S6UXP+0bzgpmiU5h4+eZGSMKihF7Lh07HNcDR71WtDkc35LeZVLAerLPQrQc08sJJkRHNUAmQ8hQzUKjCKmK/deOOQE6V4f+9X1LoAJ5I+aNCc4rw== 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 DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) by DM5PR12MB1641.namprd12.prod.outlook.com (2603:10b6:4:10::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.23; Mon, 27 Jul 2020 15:26:46 +0000 X-Received: from DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::25ec:e6ba:197c:4eb0]) by DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::25ec:e6ba:197c:4eb0%8]) with mapi id 15.20.3216.031; Mon, 27 Jul 2020 15:26: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 v12 01/46] MdeModulePkg: Create PCDs to be used in support of SEV-ES Date: Mon, 27 Jul 2020 10:25:42 -0500 Message-ID: <2c52c409211b48edf96dd75ed817e9966c27559c.1595863587.git.thomas.lendacky@amd.com> In-Reply-To: References: X-ClientProxiedBy: DM5PR12CA0022.namprd12.prod.outlook.com (2603:10b6:4:1::32) To DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from tlendack-t1.amd.com (165.204.77.1) by DM5PR12CA0022.namprd12.prod.outlook.com (2603:10b6:4:1::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.24 via Frontend Transport; Mon, 27 Jul 2020 15:26:45 +0000 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c8c071cf-18e2-4d2f-1191-08d832417907 X-MS-TrafficTypeDiagnostic: DM5PR12MB1641: 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: hDpyAjwNIwQz/98OROrtw/AXyBpoZdCAeJo/DNsOLyNauWKsyzTGNDCLkF/b6Yrhm0ZacRNe7p2NpPmwP7LAu9B7fOw7HUnlZVukYvQbkG5+KMFF18JXbtR7/VlJNtwlmZTpySz8LO7zAc7z/EddG7UVUEO7cMf5zOWO5ndSLzJLjDRNhvAQ9luIY1qThx9owPZ5H8dqBPeE+O2kUGJVk+4lY529nKboTCkY+xG/qrGTve2W9zal3lHGiE3/hP88iMhlQ9S63dX/hHntzUg5CXHK76bKX8LQ264IjqizAwxcJcxrVVLcDBfwlWWgzNX76qzIPkIs3QraejhimOj8S+U7yS3Af7yFNv9jOhCTNiC4OFkMd7xOr7UXkIDCz3ehEzInqXG8RXd5kBiMPVnNV0VkLSmD9veWi8qybZ2HEXnSm3TP9s91OqwND0v98urRNo6ZtXJvlaqzl7f7hUUnkg== X-MS-Exchange-AntiSpam-MessageData: HErubzXtsIDKbWERdV5+W9/QcafX7WAPkGsdJmAhTIe1Sq1fXbOqVHz80noftSBI9eZ2+8Oc48oakVGB3fAi7S/iOWW9Q87SvdHC/jAUuUV2O4pVa3B5w2sqogwSUQDTTf11lQA6jB5AjwQ2MZdv8yjHQP/ZWKihxLVSUdMXrm3JrUIPrLmjkii6y59EJYizotxWHuiMZoRDccv/7spBG1lm0upjnoX+VzFfBz+bAP6JfS76twVji/V9OL0AcmYUjc7iQNzgBHpbjvdAztuS68POyvLrCxvhC79l2+YbYKcIr6K7GiHtKRoLfWmBLseV2fEGGuH24HFTdAzQ7DrCGnnljrImXFSGB0DCwPE2Nyo+VTmWC+LuX6FE+1m/gU6vHYXx4TV58Z+JMgEpREUv82dHtrPIWoRKDnEsholgZxZfZhg5lhslN19H4wgtyXiGZByURD0qMzcuR/5mSJievMuANlX+wTHO9uyWYvn25EQ= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8c071cf-18e2-4d2f-1191-08d832417907 X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB1355.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2020 15:26:45.8854 (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: Abx5o9Ubci8HsSai2RUF5Gskjo+V1/Awbn5WOHt9ucVeONVO+w7gmIHzF0xhIqb8CnwoQVOHetjHJDIyEVgn8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1641 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: tjuEr7tUnRs7FYt04zfcJhkHx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1595863608; bh=U3CDD/tNYo0qYyX/XbEWYiWjwdverXc0esYS6C5IPRs=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=aYLMJOm7t42okAzVnzjBZDf2RwPCVVbyuo4lOZolM+vhb0aZcjxnG7xgsYtt+Mkakf/ ILosjLGcbl2yBWXZW4T+sxAbBKaNhXDGPMnsg4tMRZ3PuhTssqaPt4LMsnQk7ET7S0l87 aOVsx6W4LZLJrbJ+mo+1ERglqN0HzaxECsI= 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 (#63305): https://edk2.groups.io/g/devel/message/63305 Mute This Topic: https://groups.io/mt/75824928/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-