From mboxrd@z Thu Jan 1 00:00:00 1970 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 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=rCn7/BHn; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.92.52, mailfrom: thomas.lendacky@amd.com) 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 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=Hqe1rDuCswusit5U/Sbl9vY8AnSbuBv1xrlSJIgoLm4=; b=rCn7/BHnK/pGM4CERPrGncL9kfd47CKzn7k3vSC6g/zMa+op6dVBznsQuDcIivTb4ZfthU93lCXMcpThGHwuXG39jmEshZKF6rJ6uzfZTXG40p5ZXCyVnBB0HSLLqnnEPA/nn0kSu7zIJVgkWSUFHQAfap70Dr/CBlGS9365jOU= 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 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 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: [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> X-Mailer: git-send-email 2.27.0 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) 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 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-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: 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: BCL:0; X-Microsoft-Antispam-Message-Info: hDpyAjwNIwQz/98OROrtw/AXyBpoZdCAeJo/DNsOLyNauWKsyzTGNDCLkF/b6Yrhm0ZacRNe7p2NpPmwP7LAu9B7fOw7HUnlZVukYvQbkG5+KMFF18JXbtR7/VlJNtwlmZTpySz8LO7zAc7z/EddG7UVUEO7cMf5zOWO5ndSLzJLjDRNhvAQ9luIY1qThx9owPZ5H8dqBPeE+O2kUGJVk+4lY529nKboTCkY+xG/qrGTve2W9zal3lHGiE3/hP88iMhlQ9S63dX/hHntzUg5CXHK76bKX8LQ264IjqizAwxcJcxrVVLcDBfwlWWgzNX76qzIPkIs3QraejhimOj8S+U7yS3Af7yFNv9jOhCTNiC4OFkMd7xOr7UXkIDCz3ehEzInqXG8RXd5kBiMPVnNV0VkLSmD9veWi8qybZ2HEXnSm3TP9s91OqwND0v98urRNo6ZtXJvlaqzl7f7hUUnkg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR12MB1355.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(136003)(376002)(366004)(39860400002)(396003)(346002)(2906002)(16526019)(2616005)(956004)(7416002)(26005)(8936002)(186003)(8676002)(4326008)(52116002)(7696005)(5660300002)(66476007)(6486002)(66556008)(6666004)(478600001)(966005)(54906003)(6916009)(66946007)(36756003)(316002)(86362001)(136400200001);DIR:OUT;SFP:1101; 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 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 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