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.53]) by mx.groups.io with SMTP id smtpd.web10.21004.1594736929615139220 for ; Tue, 14 Jul 2020 07:28:49 -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=MdfNtjUs; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.92.53, mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J00XZPhcZ8bnSU1/qdWWXs0EOA5V4Ogozt8+0ZJC5xwPnH2zlFHoaOrILrqme1IJBGDMSQykbdO/UlLsc9DG7giC7rLqkn6kg7MfoBokq74fOHpb10ZsfPVvyAVze/xREvhA4xNFaqplMDDw0LpM5+uYU9Bmg/QpFV3H1LRaxdke3S57S4aHS95VEVD/vszR1IpOQfh0KPnDvPsyJBU+5pDDj95BsZiQArhBFWQdqScQV0BQo1N4ebw8R6HAIum6dNSHM6LvQbvht486HtbKcAxrJbVShuNeIL/qc5l2/fdd2ZJaIrJJAeST/VGd79bCevqQNrGIqTgD3dVoh6G98w== 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=TvFV5ne/T0AX8DnAsRP3rPWexXyQuuI83eIvcWioFt636qHaVNN00m15xljexaW83I3/3+8B3avn8Tn+9jM/YSiDmBgmqoE5E/3cGuTnB5IUUef2OHHYPC/ZPCIVzXtLWZA+8tdhYc1Pvy+N+g8h3yps4NgRtW412qfpDlhhBJDqKhL07lVYIQyxPcJkB7AhBM01W2IksqBzToCaTpz7yZerWCbSEZTBGW8zCbw0HkLKe/OxX2nbGQ31UpQkTL7AsOfEf66gpS2YdZPOMRrttZmy8mNTQg7t7HRoFl6qgg/Oy9A38jIcty7MVJgrWglWWHGsjxLgs6fs0nXdfCNdsQ== 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=MdfNtjUsAQpIFA7q6n72RgaZ00lIbwYccUixzAq79O21HcE99lYA/qP/jNEu1iR6c7/zQ8Nad2ZdB6fehul2JtMqs9o/l+dwHj1Ew1B1mwu5LIJvpSep4Vgvq3LM+S5WZcrb7fEUKMJ2m+8tp+54HpQsRO40amUqS97wxMcS1z8= 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 DM6PR12MB3177.namprd12.prod.outlook.com (2603:10b6:5:187::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22; Tue, 14 Jul 2020 14:28:48 +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.3174.026; Tue, 14 Jul 2020 14:28:48 +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 v10 01/46] MdeModulePkg: Create PCDs to be used in support of SEV-ES Date: Tue, 14 Jul 2020 09:27:32 -0500 Message-ID: <8303617f29e455a510a296dfeb67e6a8ae10e9ad.1594736896.git.thomas.lendacky@amd.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: X-ClientProxiedBy: SN4PR0501CA0110.namprd05.prod.outlook.com (2603:10b6:803:42::27) 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 SN4PR0501CA0110.namprd05.prod.outlook.com (2603:10b6:803:42::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.9 via Frontend Transport; Tue, 14 Jul 2020 14:28:47 +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: 5b32a019-1a7f-49d7-393f-08d828023893 X-MS-TrafficTypeDiagnostic: DM6PR12MB3177: 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: AbvM891E0S53Jltf90vDlPkwFzEElV4YhVvpSM7aSK5jxQ1jYiXAd+jVU7sdrpoMZ0FAGBUc43ORg/iqjcg//kT+/SC3PTS7ZGjX7WAqrBOD2dT/aX70yOUzJWesdPSqmLIj54PhgDl5h/IB5w0n6OAcFK2xErv2HlXH7X2ZfNysy9sxyeGYZGYELfPWohJjWxcJXW/Xgkp4z6XGyUL8dpTKJqwN5VTJIxCnplW9Mvdy4GvC5ILH3g9HFcCz7H81Wza5f7v32h/RFpUr+FQg/Vspgvmu+2gZ+B+aeaOLex02C6TdK+qzVaQ+EYlw2afSlg7Ro5griByR0v7yJ5mukXGoGTmHuF78qKloXDFYbGQtjk0hPu09PFQc69QhT4tW1jcmXCey0AUbtJNw7txUSpeiq9Fs/FiXT5PLhxV0/At3X39YMP7hfgxnYZtskdPfo5Y5wdNKO/VaEBMc9GxZgQ== 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)(396003)(39860400002)(136003)(346002)(366004)(376002)(86362001)(478600001)(8676002)(54906003)(6916009)(2906002)(8936002)(956004)(6486002)(2616005)(52116002)(966005)(7696005)(66946007)(7416002)(4326008)(6666004)(66476007)(186003)(66556008)(16526019)(26005)(5660300002)(316002)(36756003)(136400200001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: bwX3tUKPKV8sMpVPtmuesRY7VvtgNWB14gCjj2yGOx0qqJ5VG6KHZEAzbsPt9ptu5e9vfd9Z1ccobPlfzj4LgYFZD+TEVE00pA/1TCZuimN8DHZJrKEK6oBHZdmeQllEko5SOGk52Ui0GEfdSZoLxCBh0EniccJ1W4mbkMDUplj5ey4BaRpp7UKNq9mgBWgCN7RAQ9sRM7SxL1urvws83D+hGr1E8D3EpSXdzuDDKhnVSaM2J/zEDV3rV3HKLwkKnucjViSY5nZJF07fZR7y2fz/Fjkt4RVxLo+uHJFBps9D+Yi2p8pSYwT06J+LhSdG520ryRPYFdcjSzW4+rExnIyHNVvWux4/Jx+4VeMabloFyoPeY7e5szfUd9Q/C6bCnQMCvIh39rEwPMW34Km43cBHoEprpvzVu1sYc6Yh7ZoLocYm5u6eD/XlNgmG3iqh+Nn2n+tcQRYZ2M373IcM7DVzSxnwPQOIwbccxn1ABYo= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b32a019-1a7f-49d7-393f-08d828023893 X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB1355.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2020 14:28:48.0541 (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: lBUeKUm42jc7hAOongx+AZdX1hDKQsyNoCFaWmN7kcbiYdMtuWLXBc19POl5jzVvClc31iEPu8D8qE/QbMIPEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3177 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