From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=FUXspBRX; spf=none, err=SPF record not found (domain: amd.com, ip: , mailfrom: thomas.lendacky@amd.com) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (NAM02-CY1-obe.outbound.protection.outlook.com []) by groups.io with SMTP; Thu, 19 Sep 2019 12:52:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=doSKbmmICibpxRbb1aoLnQ88v5S1MdcYO7jgFvHqKtceMUTDu3NEUucNlbA+jL907GX/2mJxaWZCHLHdh63CCt+7EqHvzKK+9kFRV/2M3b6qDzkKcJK+75NhNJphOZvOR5hO3vdRuQmqYjFbxJtL6u0gYA+X64jjWYOTDBmDocZ45QzaAWuh42oSsj2Yby+9cPx/FLJlqo3HhI3BR7YxY1nBoFxjypbUfnQ/KHWCqXhF6CcLGwsEmPP1s+D0H6dDu98qpmuh1l7/jfXg7C4iU3IqzxOgmJSkiLEytI2hIos30l6h07Ft+XjnBD8RlUfx+zbIqWSkDSBfTE+iQeQgVw== 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=LGJ1YnZNaLOJ4y3r4pVkhogyYH0CMt0lTXjn/4Mp0QQ=; b=Z0+FFKPJQrmtFCsMi0Zi89R8H4P0/y+ODEO6LKu6AnPai6wK2BPwcK86Geq9DXjvAIUxwANK0F6YGt09FwA63ttQoiR6AxOFJJpR6FXIszHnidJOKlj+OkrLKMx9fZYT26KQFgeclT9PzWEETorBaxHoTvZMzKH6/Il1P3MBS4IdsR89S8MLU/+VmCxEY33ah5jnxh5j95mo0DbFPYX0t5OQvSF+R13cpXQQhHNeNPd1RByypQx+TIjMQ8e2tp8Qxe+fpO1Vibf1qAGFNyZjjRtEVPexhsJYEoxcPJZP+tpJs9hABnWKeB3aPk2O18t61HcUFrlrk1Bk4Fu5gVNk3w== 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=LGJ1YnZNaLOJ4y3r4pVkhogyYH0CMt0lTXjn/4Mp0QQ=; b=FUXspBRXnloTDMKiio+iN0/Jw3Zt/KO8N6BkidgOcyGJUp1xjzXyL79jt7oqHAeqeATEGPIjUNRYLLLFMi1UkxeK3K1a6k//AvOvMHx28hI6lDuUqlu6FV2RCqNt6NpOa4gSkqF/L07nW32dja0VWMBvU/V4A5tzFk2QZ63FHu4= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB3228.namprd12.prod.outlook.com (20.179.105.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.13; Thu, 19 Sep 2019 19:52:25 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::400e:f0c3:7ca:2fcc]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::400e:f0c3:7ca:2fcc%6]) with mapi id 15.20.2284.009; Thu, 19 Sep 2019 19:52:25 +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 , "Singh, Brijesh" , Jian J Wang , Hao A Wu Subject: [RFC PATCH v2 01/44] MdePkg: Create PCDs to be used in support of SEV-ES Thread-Topic: [RFC PATCH v2 01/44] MdePkg: Create PCDs to be used in support of SEV-ES Thread-Index: AQHVbyPCOoWFuPvcJUGqXLusBCQyxg== Date: Thu, 19 Sep 2019 19:52:25 +0000 Message-ID: <1161605f56f324b88833496e448d1a81072387e8.1568922728.git.thomas.lendacky@amd.com> References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-clientproxiedby: SN4PR0501CA0146.namprd05.prod.outlook.com (2603:10b6:803:2c::24) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:182::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.78.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 019c2e55-cada-4c3e-7339-08d73d3ae4d1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:DM6PR12MB3228; x-ms-traffictypediagnostic: DM6PR12MB3228: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 016572D96D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(376002)(396003)(136003)(39860400002)(346002)(189003)(199004)(4326008)(26005)(446003)(7416002)(25786009)(52116002)(71200400001)(71190400001)(8936002)(81156014)(81166006)(256004)(8676002)(186003)(50226002)(2351001)(2616005)(102836004)(486006)(11346002)(476003)(66066001)(386003)(6506007)(66446008)(14454004)(76176011)(99286004)(6486002)(36756003)(5640700003)(66556008)(118296001)(3846002)(316002)(7736002)(2501003)(1730700003)(6116002)(5660300002)(478600001)(54906003)(6916009)(966005)(6436002)(2906002)(64756008)(305945005)(86362001)(6512007)(6306002)(66476007)(66946007);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3228;H:DM6PR12MB3163.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: SjSuBqX/gB7rHC53XLW2rFXTRghojD3IWCREBJAr8w37/oJSqCUfg/MMsQPLTtHXj1AAxpSaDdP0SmLKb0RoJVtcdKY5VZul1fDiWgLvmsOpFsEx5fSXWtj3J2dg6RM5JeftzA2O2MXiQXvfdfq6FxTtBtzlVpjYx+N1zPdBQp/xtHH09bLECGU8op6J4XkO2a4MbtGUQ05AEt0xfrRDC4Gg0rGSvywyKzI+k74wvkT/hk/0XUfFd6OdCeTkBxiOtuFrGhvQPiZlAUWQK9ThWfrQH/4Cb5vlO2UiZqLu5Nm4VIFxnyTVDzdwhTvA9ZG0nCyuJGBcIWP6qidb0PARxS8WiuPsEDtrKn/9XewmoqWhbrrTY6aGtDf3baVLg6q9Lt1srlyp1cDIF6dIODzXpsvSasNdWjVEiBxVMRgocXI= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 019c2e55-cada-4c3e-7339-08d73d3ae4d1 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Sep 2019 19:52:25.6221 (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: 8fRUiA6UgJ/H5Cpe3TfDvF/rQQ8enVlDkrtDKmbqvGmcaUKRNZpxed8DEh1jFwKsot/X+VVGlzji64cSm6FK/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3228 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: <2C59EA31B2174341BD1CE27A452BC094@namprd12.prod.outlook.com> Content-Transfer-Encoding: quoted-printable From: Tom Lendacky BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2198 Three new PCDs are needed to support SEV-ES under OVMF: - PcdSevEsActive: BOOLEAN value used to indicate if SEV-ES is active - 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 19935c88fab8..c1ec3e335143 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -2002,6 +2002,21 @@ [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynami= c, PcdsDynamicEx] # @Prompt Capsule On Disk relocation device path. gEfiMdeModulePkgTokenSpaceGuid.PcdCodRelocationDevPath|{0xFF}|VOID*|0x00= 00002f =20 + ## Indicates whether SEV-ES is active + # TRUE - SEV-ES is active + # FALSE - SEV-ES is not active + # @Prompt SEV-ES Status + gEfiMdeModulePkgTokenSpaceGuid.PcdSevEsActive|FALSE|BOOLEAN|0x00011060 + + ## The base address of the GHCB pool allocation. + # @Prompt GHCB Pool Base Address + gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0|UINT64|0x00011061 + + ## The total size of the GHCB allocation. + # The amount of memory allocated for GHCBs is dependent on the number o= f APs. + # @Prompt GHCB Pool Size + gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0|UINT64|0x00011062 + [PcdsPatchableInModule] ## Specify memory size with page number for PEI code when # Loading Module at Fixed Address feature is enabled. --=20 2.17.1