From nobody Mon Feb 9 03:31:01 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+60769+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+60769+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 159136367671214.979229234151148; Fri, 5 Jun 2020 06:27:56 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id yWy8YY1788612xkWnoeK0udU; Fri, 05 Jun 2020 06:27:55 -0700 X-Received: from NAM02-BL2-obe.outbound.protection.outlook.com (NAM02-BL2-obe.outbound.protection.outlook.com [40.107.75.55]) by mx.groups.io with SMTP id smtpd.web10.10746.1591363673877273318 for ; Fri, 05 Jun 2020 06:27:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TAjZMSXt/I30sTYQ1dkdU79e49ChJxt2zH2pRbL7nMwGh47cx7KgrzWfCWNbz4hUbUbp7IsbhvCcrJH2GeHQhYO9VnwPaIYJb287aZ5Ec/BEm43ghACX5NLpUfa3xFcw2lWe0KK7idch9Z4iYC8FPhCNyGhIbdZBVoPaiA1+CsDMAbS5yo/hDYiAbap7xVYr5RQoYBE7qwfmpUinyIY1XNGSYpUKDFEpKEqDptYibKUlTYpeLDzJEKQrMVsUyAFSbMsdXlr5jAOdfJRtSmd4p+gL8yP6JS5fOKfUC9/X1CAP9qGUS3Ni3SNy5R143x/C1bpf+16xYJQCkcYKoJu8Hw== 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=eagmtgouBZZ89pRdCc+fHLUvZaeijeX+98iX/4197i8=; b=G33Ij3tk+NAGkH8VrL15jguvVXuuzT9PMq4befCGdW5u4p5amtFfGY9reZrnDgYr6NtfiT3wYX8/jTZAK+rP45nlJfpi3tnfkhQFpWQE/QHgSgk9bPYGCet16aYZG1RGst5JiL2igA27u+pGYyElmILs8ixdyoipzUmq9jkTHb2CqywEJHN2hlNDp7Xg5JADxjvfoPueI8SfBf9t/Zt2cpZr3Jtv4ys4n4wU/J/hNJP4ktJMvDUd2uCZ0j/GeMjjwEw6vRINpO7ux9OYBh0h2Qel0MUMhidag2s5eus476rgU/OCMldLNm2OBb2FRIHHbp05fjd1KYdUiCh1gWqVxA== 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 DM5PR12MB1594.namprd12.prod.outlook.com (2603:10b6:4:e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Fri, 5 Jun 2020 13:27:51 +0000 X-Received: from DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::4ce1:9947:9681:c8b1]) by DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::4ce1:9947:9681:c8b1%10]) with mapi id 15.20.3066.019; Fri, 5 Jun 2020 13:27:50 +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 v9 01/46] MdeModulePkg: Create PCDs to be used in support of SEV-ES Date: Fri, 5 Jun 2020 08:26:52 -0500 Message-Id: <748df943b382412b4d56c521f6a40890de6ccf60.1591363657.git.thomas.lendacky@amd.com> In-Reply-To: References: X-ClientProxiedBy: DM5PR19CA0060.namprd19.prod.outlook.com (2603:10b6:3:116::22) 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 DM5PR19CA0060.namprd19.prod.outlook.com (2603:10b6:3:116::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18 via Frontend Transport; Fri, 5 Jun 2020 13:27:49 +0000 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1b7e9277-0e0c-4b59-3809-08d809543e93 X-MS-TrafficTypeDiagnostic: DM5PR12MB1594: 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: Q5L+T0Ey37r6gbulJ+4Xx3o0GpkzX6gjRT2Np1+QKW3a8hRSOECVxw4+RFIGQT6UHiwqWffo3MwyY9ubdLIzcHWzcavza//ipcPHJJi16doltiEwvMvjQvCHUbEOdoWOtvFQ2EsT7YDGyvepdnOL61c5jdagyPdYW1w3f4Sz24WSuANdxUQ4GCg5xFOEPiCHLVnF7iDoPWCxGIJ1L6tsXewEuCGQgn2ZiQSIsRCdxxWerRJY6bV//XZelHseIawIaHKRvKtWFJIeNc7TCf1COAJPNoJTo5KSYNfl1SOYRqizoCdFwnCYWLm+OR/CbwCoex6G4aHS9Zzcad4mEozQBdS9fTNFO/l46D2yoIPGatBrEgOdY1JZmgeATJ/b5B2XKuUSOxZfiNB5WUdRwuGpQhK+Mp5qKn4OXHIri/OycS6CPofYfnbQtqzL0jf0l1dnnMeBYM0t3PGsJvf4XWTuXQ== X-MS-Exchange-AntiSpam-MessageData: p3vBYnEkB9cXPM8sJPsH/pAUf4sgqihSX9IE9I7tgx/FKZoG/CkpjID55QSepQjNhRJRThqPESuQb4Ek9MpopZgpoqZyuRdYivG828pmxpV/xz6AizPxIv+V2VB+ZMVRoykpgGlB8rJ8LXh8K5brZe2oqXJyjn1fSYsK2iCCPGen6hvxeVVxa/AgK77CxtQg/CR+4y8ilcMdMTZlnlQLj3CuejkZTX9qBucvzXwQq8T7im0K/+ZiwJHgWzlpNJVU1IYP4bCjWe7mCT/kA4HU6wQmA98mfo6RlZ5N+neJ6C4Az2F5dSQtctAwEqqt/VZSLJpVicBRvyI0l4ihqmJlx4svEequtfqVixOAu3qMx6qEtHX8Xy20YZfVRREMjkfcii9oxZtb4W51yQIZGhFb9Vdrwwf1nKGuoVrQWuQ3sedRiFm/9S/ZdayQyUSFWFg4cNzIyWhcrRZivI7BDjZMNwLZ+foRvq01aeZjyeCFxT4= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b7e9277-0e0c-4b59-3809-08d809543e93 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2020 13:27:50.7022 (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: chgy+jlrzknaztbysdyLFFX2ErLz90StL/E11W6yDA8sT4ovUjYsB/mN7LpxtD1n//NNpYIdCdZuQZlMYSzTVQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1594 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: uIcwYDc69HmBiPG2g23N8NaVx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1591363675; bh=0DBxWFzmEna9dQ+GiUvLzlPwhpePQuG06PBjwD8PG78=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=ONBhvUmkBOdo+tUR92g+Y0n9Lv69GheZLJoJWtxn85NESC9sbnY/iqpJEyzbDWPbApI ScLcfoM5zj7vWNhsCx+2ynzLFJLZrH71fblQL+MZV/6unVxIHUbmVdrfbjYqGHgRNn5nr ihakPOUf25pHmHB379ne/wQA/V6NX99lGiM= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 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 4f44af694862..8085e761bbeb 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 (#60769): https://edk2.groups.io/g/devel/message/60769 Mute This Topic: https://groups.io/mt/74692404/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-