From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=lpfz/nK0; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.237.55, mailfrom: thomas.lendacky@amd.com) 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gHi+Xp4siy9T/cX8B6vif+UAHONsYLKZ2ig742WdjzE=; b=lpfz/nK0N6rQEDD4pD/7k5mEC6aGPUeUAxWSQNSgkgzzKn3ZfRkavqS6ziraZT3RWjXMIsnlZa8w7D/pyh3VjSx+6BD3zUXcvQTWT/y+NfdDSTyLi3raoZscRgKCS5CXGLaaGpExMfG4WkvLQ34nLR8QF1/wgf42IxnTbwMGllY= Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=amd.com; 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 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: [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> X-Mailer: git-send-email 2.27.0 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) Return-Path: thomas.lendacky@amd.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 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-Mailer: git-send-email 2.27.0 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: BCL:0; X-Microsoft-Antispam-Message-Info: uOSZm6M4TKjLIuFIKT36aMF9cwKdqrQEVv7XifAczl3D3Rt9Ttxdxun0vW8iNLLxv3vVFMJWsHBaCPFy06qvVJRRuWCrG6r+65azlRN1JT0Zcckyw/vsHYMWU+JUZIQeEDKYt6j+BAtuXLWuWeiLnbnNne0PzX8i24Ae3z5Hdahd/a7HZfCRlwjcEoRn/K2sdOBRVSggS6D4W62GpaxH1K9lehfuzVpBzVoxZX6Hr4LPfBgN2MKyMKbD5YEd2WsXgt6pI9XLT3CI/FiEOTbu4ypK2sTW9FCQ1Ctz2ipAE4vGM7cyU6Tji2zY6OEAdW/yTc7pcEsh6Q6Q0iUcZ3C74XGUpPqdA6cRqq0jOKj1ylNVNSgMDspseh5AFk1DrkZVqiBHhCoimVGP0n9OeO8PQ6pwekpm37slJEwBxvXNEIZe1A/Qpn/MN94quN1xziRkurC96PrfIbFnmL+eY4XWhg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR12MB1352.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(346002)(39860400002)(376002)(136003)(396003)(366004)(4326008)(2906002)(7416002)(16526019)(54906003)(478600001)(86362001)(8936002)(316002)(83380400001)(6916009)(26005)(186003)(956004)(966005)(8676002)(2616005)(6486002)(52116002)(7696005)(6666004)(66556008)(5660300002)(66946007)(36756003)(66476007)(136400200001);DIR:OUT;SFP:1101; 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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