From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.46]) by mx.groups.io with SMTP id smtpd.web10.1343.1585071673819169845 for ; Tue, 24 Mar 2020 10:41:14 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=udkC4MPc; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.244.46, mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bYM7XdnIrd4BFnF/3+6Mx+ON9qeVZZcTAOdz9eXgwHMuIr1pRdGRv1XhFuqbh4dkpZxJRKMCanRAYgmNwyDhiOo+TPpWOpl2yGuGMUhudGxYk81rHzUtB//xzQUM3i8G3ZZ9hkMmYTWBs4e5wa/4s67N0+UUyapBcbbiYgqsCtwHvcwJ9KyE/UygMNJGFjWvmTnsCvMMk2EABsMUpoNOcKVwTWbXuLnmOcSAmnX2cgHT5kqHCY48P63p/ryhqmGkZTI3VuqRkaWjwHUidmmV5oAt5uT/j3LPc5Kt8e7q3H43ALmS7K1V5ebpssKZGDuewYriUcx1w+B9817bwzuCSw== 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=Shq+mY4D+D+j9fjGUhN2OZA+UVWjTrvAtbQf3c580GI=; b=FZI3rZmbiweEWkq3gtJliVC4EAfFPLp7S2KAIUr5uQ0EOZozuHqA5QbuS8XiSG3qlOHhd6C+BVGUivK+B1keOAFaRgTVtXWjjGoXQP65l+JYG9vjjlNhvr3ELCXLJwMBv3SCC/WUr9KXrq3yPVnRA3znHtPuUaYd6K5zFugoaCapbBQsqdpqEV3ylzJ8rFpHicEx1do016iWDzeYywnICxTQG9uuLn1KM28JKVmTZeHwOk8fV7JtI2hKgIwHjNd9RPBeR/CTWxrJFNFibsoKgNDlBdPVP3+W3JwI/MdMFYVZtHfw4J7fEVefjGJ8KUohwSBuRfA0l71AVkSbXmJF4w== 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=Shq+mY4D+D+j9fjGUhN2OZA+UVWjTrvAtbQf3c580GI=; b=udkC4MPcox1CshFfCN8bAP8khW7w/MPCfIwND1tCXYS2cTFU37R/siVkqz9UjE2orp4Yr6GV+hlZsgPMEtZJoQhTU1vBP7k5iS1WF0BqUn3tovmWJjwVYv57Z066r5/fPFeKPuaMtJf95GOPMiOMywywB1xQljecZQXgsaTExO4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; Received: from DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:15e::26) by DM6PR12MB4027.namprd12.prod.outlook.com (2603:10b6:5:148::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.20; Tue, 24 Mar 2020 17:41:11 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::f0f9:a88f:f840:2733]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::f0f9:a88f:f840:2733%7]) with mapi id 15.20.2835.023; Tue, 24 Mar 2020 17:41:11 +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 , Brijesh Singh , Jian J Wang , Hao A Wu Subject: [PATCH v6 01/42] MdePkg: Create PCDs to be used in support of SEV-ES Date: Tue, 24 Mar 2020 12:40:15 -0500 Message-Id: <911bbc068606a08bcf22c1519873d65cd2a717d0.1585071656.git.thomas.lendacky@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-ClientProxiedBy: DM5PR06CA0025.namprd06.prod.outlook.com (2603:10b6:3:5d::11) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:15e::26) 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 DM5PR06CA0025.namprd06.prod.outlook.com (2603:10b6:3:5d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.19 via Frontend Transport; Tue, 24 Mar 2020 17:41:10 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ca5fea76-4756-4c10-a4c8-08d7d01a8aa0 X-MS-TrafficTypeDiagnostic: DM6PR12MB4027:|DM6PR12MB4027: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-Forefront-PRVS: 03524FBD26 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(376002)(396003)(346002)(136003)(39860400002)(2906002)(956004)(2616005)(7416002)(5660300002)(8676002)(6916009)(8936002)(966005)(81156014)(478600001)(81166006)(316002)(36756003)(86362001)(54906003)(52116002)(186003)(6486002)(16526019)(66556008)(66946007)(4326008)(26005)(66476007)(7696005)(136400200001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB4027;H:DM6PR12MB3163.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0oDyc/c3a5JnwDQKWqNdGDtN84/qPDSVwOLCgqceGHku7V9bV7BlL7ZQt9GZpHBwwkIHbtld1DbdQrOppSzPbqlLvPm90Gb6ED8P/6TIdsrdNgvFXv/8qj7QdEhJan3SpGf9Z41jYF8hUUgFxHeU/U1Ft/4zLsVHEP2DHMHQX/OwGydsBKcTTFiRwUYExdU03itvflSOyN8oqXSKbw1b7XFxUdclqkNdw/HMQT988DRthxfgOZPGClUXrhimy9R3a42auHaTsO7T54DALQPY0LtZPmloCYNpHYHQKi18vd8BvjVdHj0qn2srbpspVD9lk2u9kh3c/Vp0A9s2bJ2aow+B8A7aiNRNeuUJRISQ6olkRRMTviIpxibe6QsPS2I1wPxRcBJjOMOC+GUJQqlhqxB5UEKYF/jEm+AUcX+EvrvUVQLFrrqabT8Lj3opGCFcTYiLpnAPCJNFGTLyBkfTl7xJ0Tc3pOsltNA8bmViLna15BL6JBk8tnn/0xRwXG9/oPQyPNnQA8kDvlWt8xrm9vSZoV3hlNvPKszm79i8fBGnvE4AS69KNeOtCBL+GgvkGIU1L/j1dy8tNfQPTNVfWg== X-MS-Exchange-AntiSpam-MessageData: IXiWkoszmLPuTPRRDk9Zot1MEV3zYL9kdYcEDyy8tyvWxklqDotw34pLjqRnrmmlThwEhhviPWgH/8S32U2P6dpluAuSoYA/d6J3RhecYJQffdMwfHOcDy0dI6sq1oveK38dz3k5UExaiwA2bTzazg== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca5fea76-4756-4c10-a4c8-08d7d01a8aa0 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2020 17:41:11.1494 (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: 61CK+F6NEU5BW+/oU5OIk7vIGVcju2lzj32dGn9vlJRWDg/cBIynKiNmxonCTPA+5a/TZr9QYBbwS/+/bxGL4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4027 Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2198 Three new dynamic PCDs are needed to support SEV-ES under OVMF: - PcdSevEsIsEnabled: BOOLEAN value used to indicate if SEV-ES is enabled - 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 +++++++++ UefiCpuPkg/UefiCpuPkg.dec | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 91a3c608231c..c144b23233db 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -2071,6 +2071,15 @@ [PcdsDynamic, PcdsDynamicEx] # @Prompt If there is any test key used by the platform. gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed|FALSE|BOOLEAN|0x00030003 + ## 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 of 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/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index e91dc68cbeb2..2f30bf89615f 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -364,5 +364,11 @@ [PcdsDynamic, PcdsDynamicEx] # @ValidRange 0x80000001 | 0 - 1 gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x0|UINT8|0x60000015 + ## This dynamic PCD indicates whether SEV-ES is enabled + # TRUE - SEV-ES is enabled + # FALSE - SEV-ES is not enabled + # @Prompt SEV-ES Status + gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|FALSE|BOOLEAN|0x60000016 + [UserExtensions.TianoCore."ExtraFiles"] UefiCpuPkgExtra.uni -- 2.17.1