From nobody Tue Nov 26 00:32:18 2024 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+63843+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+63843+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 1596829196272439.46336093043146; Fri, 7 Aug 2020 12:39:56 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id fdk5YY1788612x7k0NZmvOZG; Fri, 07 Aug 2020 12:39:55 -0700 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.55]) by mx.groups.io with SMTP id smtpd.web12.4175.1596829195383266165 for ; Fri, 07 Aug 2020 12:39:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ey4xttb1HbSCVdKF1SG8m7pppfrbqQpMkYP6qqWw8VEXM/BjiGzm3ZZ+Vt/esrZd7vupiocIrOiDn8MCjJ6hUodul1zObN5O7ng7t+5lN2p3QGLSrHe6RsvzHRjauxTENPC55CxBiZwJnf1wZKOA3XzZBelPPEBhOLTUhRDQcsSgUhLiOdSpgF16puP6HLeVD65vnlZEl6yekWVsiSXtzyS3rMdeeY4z0POnQbNTWNaBxbvTHyyt66hj1wi5IoLgfFF/nmQkt736HnWpt8k3sC5jIJW+oTRh9FWjZeKP5H4GFlhIU99hiIFFnKXAhYx/L5CIvDBUp6zF9p9iC3Snbw== 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=gHi+Xp4siy9T/cX8B6vif+UAHONsYLKZ2ig742WdjzE=; b=JJpMW6ESSpH7erRwqMqtMB3mB4Qb3EG5Q3DdT+CBWez38n/dAhB9/rxhKHLJB8rcMavBGB2FVytrxoadFsiY+Y8MiFotgj4vMqO2/Rv3eEiaiODWynfEGQngt68vmarnRIUksCmWStnqytPch+jYBYesX7RTsx2KPYDbyhC/LBV0H0kL1/T6CUYRMvb+cP50T2Ljsqg8v2H7NtogWi/7B25r3hwLRFIIcJifaLRME8FYPYsk7DTudnR62Cj9naAoSsFAZ0fW6LBsJ3UeX4dqPVj3EyoxZT3l8nwuIC0eTyPa/i7Tr1RHflwFsheNGmNoxt1pCc4ua4a69+WUwsqDUQ== 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 CY4PR1201MB2532.namprd12.prod.outlook.com (2603:10b6:903:d8::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.20; Fri, 7 Aug 2020 19:39:51 +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.3239.024; Fri, 7 Aug 2020 19:39:51 +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 v14 01/46] MdeModulePkg: Create PCDs to be used in support of SEV-ES Date: Fri, 7 Aug 2020 14:38:46 -0500 Message-ID: <0af5022ceb7f7d203a135dc7735642f6377fec42.1596829170.git.thomas.lendacky@amd.com> In-Reply-To: References: X-ClientProxiedBy: SN6PR08CA0001.namprd08.prod.outlook.com (2603:10b6:805:66::14) 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 SN6PR08CA0001.namprd08.prod.outlook.com (2603:10b6:805:66::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.19 via Frontend Transport; Fri, 7 Aug 2020 19:39:50 +0000 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2429790e-af00-425b-1a49-08d83b09a6d2 X-MS-TrafficTypeDiagnostic: CY4PR1201MB2532: 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: uOSZm6M4TKjLIuFIKT36aMF9cwKdqrQEVv7XifAczl3D3Rt9Ttxdxun0vW8iNLLxv3vVFMJWsHBaCPFy06qvVJRRuWCrG6r+65azlRN1JT0Zcckyw/vsHYMWU+JUZIQeEDKYt6j+BAtuXLWuWeiLnbnNne0PzX8i24Ae3z5Hdahd/a7HZfCRlwjcEoRn/K2sdOBRVSggS6D4W62GpaxH1K9lehfuzVpBzVoxZX6Hr4LPfBgN2MKyMKbD5YEd2WsXgt6pI9XLT3CI/FiEOTbu4ypK2sTW9FCQ1Ctz2ipAE4vGM7cyU6Tji2zY6OEAdW/yTc7pcEsh6Q6Q0iUcZ3C74XGUpPqdA6cRqq0jOKj1ylNVNSgMDspseh5AFk1DrkZVqiBHhCoimVGP0n9OeO8PQ6pwekpm37slJEwBxvXNEIZe1A/Qpn/MN94quN1xziRkurC96PrfIbFnmL+eY4XWhg== X-MS-Exchange-AntiSpam-MessageData: gBDLfHQvsfK4BR8pkG0ZSL9Xlb2Qr8caih2E/u/AQ9mWqwzcS8APUvniG+pgk8B0uQmsUpaILQRjuz226Ydo2xtV7dvWyVWOSkHRKGo3cyXnoSVeZlBmL1UlnikEZnWio9TQR+uoZ9K+oghomfVlhXAVhQYOuKFU2p0lLrLl9zTP2ODRpcD5Zk+7gUE/9NET9Z33anWYRIYNQ2O279bLrJ/zqR1zv80ndGBSkHsj823hJ1MfXIo4MU91lKo4mnPmNf2J72ohNC8IPNHHdoXRCSuNlvYPX8TvB6qzXYyLH1FJL90tNjh7HVr56L7MR2YprJLhgKaQYF2tULz+YkoHcUQHMiAQz8+AXAcbi0RI/RP/liXDENSMbVPcRMiKyYBfGFXlHwUuKs4Jlq1QjSS9pAobhYnuOGwm5wcRv6Fr5NgCliVwQg4lqJMqz8LHPsGIS2IWoxs9B+O98fSVMoDJhU3lsz0i2kIpHjHp/zxy8C13mxGEmEZKuXy48x6X4tCJRxjui8Vmtarn2Y7+T2bD/nl/5rBKLwxch7FO7/E5woPtxtEoOI6HUfol65oNjqKJCbQlt2McS5+8rKjkRIRJh1lluyq7ItOrjtfg1pwyt4LfNYY7VwN97dkZdKyANvWI3/VvkRJ+AUMq1SwDME58tw== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2429790e-af00-425b-1a49-08d83b09a6d2 X-MS-Exchange-CrossTenant-AuthSource: CY4PR12MB1352.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2020 19:39:51.4165 (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: gSWJ9/mg8DPbNfJJN/qjeJhpMdMrr4rnCmuywRh+B2app1Koung2477lut7X6YuZT+LJ2G3PiOSUm1vu7WOu7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1201MB2532 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: QsVhMBzRtqoR9hP8o0JUW3Yrx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1596829195; bh=8lsIj6lKF2cTF6DYgNn6eupV9CnUOOW0KYT8OWquYeU=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=VdyEBds2Y7Z07AIJnfeDfzszs7YFxr4i6wK6rYAEEAkDGei5PaabANb5ROqQwFiR4G8 abTFuA+NLM6QWhAty3CnRlKAprdLvaSfjGR1OkV9fIUU3QM49t+B4UQlhrr1p6q7X2qFo d6PyB3WAnCeN9+kjJ/mhXNhiu7YpdOP5Voo= 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 Reviewed-by: 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 d7572eedd18c..cb30a7975849 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -2063,6 +2063,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 Guest-Hypervisor Commu= nication Block (GHCB) pool allocation. + # @Prompt GHCB Pool Base Address + gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0|UINT64|0x00030007 + + ## This dynamic PCD holds the total size of the Guest-Hypervisor Communi= cation Block (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 5235dee561ad..b8c867379a86 100644 --- a/MdeModulePkg/MdeModulePkg.uni +++ b/MdeModulePkg/MdeModulePkg.uni @@ -1303,3 +1303,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 "Guest-Hypervisor Communication Block (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 "Guest-Hypervisor Communication Block (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 (#63843): https://edk2.groups.io/g/devel/message/63843 Mute This Topic: https://groups.io/mt/76056466/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-