From nobody Fri Dec 19 17:54:50 2025 Delivered-To: importer@patchew.org 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+57832+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 1587577342970641.3018962507276; Wed, 22 Apr 2020 10:42:22 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id nPCTYY1788612x3SAK9gDtUu; Wed, 22 Apr 2020 10:42:22 -0700 X-Received: from NAM04-BN3-obe.outbound.protection.outlook.com (NAM04-BN3-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web12.473.1587577339915064264 for ; Wed, 22 Apr 2020 10:42:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dBwsc0pni7C0mRbNVyZuk3IKRHPywM2+j0H0KqWp3a3E7eBSphJz40PRyWxQJhDKJ3DDt/UOlrVs3kQE9ow8i6181mM1l7AYR51OgeeF3daMveRU4+cw7hl7tEMtebqyaPkSN10GlJgVex/HQ31YH5vtTXA2fxO98XSbKst50EdAiE1jVayuaOrfAeTKI+Yu6YKwU698p9H4wFPRrTKAWWNeQoaxrrUoTh134wSxfeQrm1J2z4rRTyoB2OJZ9kBgegyvzcIKzY06h0bpKSCFUtK4gEOVJRpQ3gr2v35kXw/H+kMTPbU4Z81Ome3zhNuIPR7vNJ1+FsgfVEWWdpyXkQ== 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=Y1iVstiemD+XYC0Z0onck2AFHpkBWFqnjQknM0+NAnI=; b=KidL9Y017ZSpxT4IgEvmxuj4uWJZP23rhCVJ+WDirqpSqvpLiP98jDTLy53XxadjogMK47+NECHFxiI3I886brzpc8cyeMa0thuaquHgDB+ninCczLE7dZLW8QvfXnugq3l/46UOl8VDwi0PP0ZmpXHYJCBSUdbrBX4Nb2kvJ2HEQmock4csNcvBngy/EGDfO8Zif71hZvvjf+sWFU2eYMDf+xPZ3t7E1LBhrtu3XI8ezxCBcseqgJNNJK5k97ju5tw8yhvGTU16tkc950YxkBsauKIm8lD2Yz6Ym+mVnMtDnTY1bmb2iNQMuZ5JL6wD+u99jMQJvWuatU3eeMkThA== 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 DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:15e::26) by DM6PR12MB3449.namprd12.prod.outlook.com (2603:10b6:5:3b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.25; Wed, 22 Apr 2020 17:42:17 +0000 X-Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::9ae:cb95:c925:d5bf]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::9ae:cb95:c925:d5bf%4]) with mapi id 15.20.2921.030; Wed, 22 Apr 2020 17:42:17 +0000 From: "Lendacky, Thomas" To: devel@edk2.groups.io Cc: Jordan Justen , Laszlo Ersek , Ard Biesheuvel , Michael D Kinney , Liming Gao , Eric Dong , Ray Ni , Brijesh Singh , Jian J Wang , Hao A Wu Subject: [edk2-devel] [PATCH v7 01/43] MdeModulePkg: Create PCDs to be used in support of SEV-ES Date: Wed, 22 Apr 2020 12:41:16 -0500 Message-Id: In-Reply-To: References: X-ClientProxiedBy: DM5PR04CA0060.namprd04.prod.outlook.com (2603:10b6:3:ef::22) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:15e::26) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from tlendack-t1.amd.com (165.204.77.1) by DM5PR04CA0060.namprd04.prod.outlook.com (2603:10b6:3:ef::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13 via Frontend Transport; Wed, 22 Apr 2020 17:42:16 +0000 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7e7fc496-c4b8-4b79-60bd-08d7e6e48007 X-MS-TrafficTypeDiagnostic: DM6PR12MB3449:|DM6PR12MB3449: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; 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+57832+1787277+3901457@groups.io; helo=web01.groups.io; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: KxTtToD6K3AJvl4IuYRHVuSpRX2d9aIRa/TmkdohlbTAnDrvhgABLjYe2rMgwQvCyv5qORKNBPK9H5+00rkKTa7J+eV3+gDVETwkXj4FKJRh9Hbmj1btBNfmiysvnZekil0Ih1Q3YzvQ3SIDcnbicXorU5EWppdB6aYqpl2KEuFLbxyhRv0WeyeC09CEcupw4JnH0vgVHKKB0lX8jeJgokpQ2Jjawn2mvOIKLXpt0Kiv7/R252hu4xCm4nVzEB9jiCpLLp+VGucV6nar/ZI2Bt6sv5iAsvQ6ydvu2Cqq0OpNhOQZ5QV9vL/CqS5tdSX/X0smYGzCsx0w+pZ7X1RyJibyg3/ADYjnaE094uOHMaruvXv8mH8P+v+6ZApT0cF2Gx1piWj9+Hv7r1XAbn24rjpLAjANNbMMHZEe/4QbGdEDLgABVKS29DLFGoyPF1Olr5Xc9WbVehdo1LCN/ufopvXFZr8ZtWsAicgLYyJCOrYlXP+NduxVSiJ4ggZOFCEXZmM7BvUk1h9F2bQWx/R+CtMnu2l8FTZlORaHJpBlouNW5Z8S/PhEw/YNyRyTjkd/bjTFkIR9XwQ8raiSHWX5yg== X-MS-Exchange-AntiSpam-MessageData: i/ezw661r4nOgqd1ggC8fZbCcY2ffdH8j1gK8Lq3SdHk0uQ8tDN1zVrAZ2nGcFldNBpBBQ5pPF1RuJyk2/LEOcC/ArWN8HrMCd7+/xm0lxQtfEz3Qf6HJrTMeXvH4RG7dvMOEwda9wTdjR0q/1LICg== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e7fc496-c4b8-4b79-60bd-08d7e6e48007 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2020 17:42:17.5001 (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: Z2D54RlpPl0Ynr+V75ur7wMZlJ8UiyLkb6KYSWi6mut3HYxjGI9tNoVGnw6I9Cl6r+cF2/zuV1OAvUa7cIqqUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3449 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: 1K88A62iVxVyiSkT8kLLuUVhx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1587577342; bh=nZbI+9o0MuKFpFBzGRXD/jhXrtoqAqn/TRPxiWV89Zo=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=gIlTrF5H6Ktyf/kyScQeNrCW4AQjH+Q2mXU0fnTCpOuUExqTo+ZgBAwZd7lLCb9diOo YiLxs4hgVGN956NRN4y0eaA4vcFjSZGrWnRfE1qLY3dzl1wGCQIWEZhM39bHbKxKWwIWM 59o2nF/5wuJxMD/T8jK66/bATpyinQ0iuhY= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable 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 42ad21cf244d..642a4791d83c 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -2048,6 +2048,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.17.1 -=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 (#57832): https://edk2.groups.io/g/devel/message/57832 Mute This Topic: https://groups.io/mt/73201887/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-