From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.107.223.87]) by mx.groups.io with SMTP id smtpd.web12.956.1589925091268137670 for ; Tue, 19 May 2020 14:51:31 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=pvocW3Vj; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.223.87, mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e9t7KNgTaqEQkE9jayxuqAXB8r9unLODt0Jnv+aTOsQb+9RlRqgZXJeY6EAY6D+ztcrHWWJxxnVlUGyd8TPTM+Bi5yZ2toqmSAZ2k+MFhqTlycCYSx6ItwKz4kbijuzxcDxZysX6tE7dpcjWcFhu7SJAQH2kpZ8d039ujyzWF6sLe/hlxKsSUdpD6d6I8b7xjHZbbHoXIQ17oyOW91ofa/AY+21uzYdRsCHun9LPYiG1W1tp8B1Je2jjS9Vqsvd0DhyFF+4FxyaTiFUyB4TaK9jKKo6HzXgZaj8cGN6WJUdub9UXhVFu4i11vaajiA6rhNE6dC+Bizmg+9E4jKsbCQ== 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=6GMfZpqaDCveBhfY9SpKC+k3XFWgR1F4AnC1i8PPp8A=; b=kZ5aMDZJLq9S7uJYd2wLLvUtnBmY9DLpvJW3++sLHK5hxlo4kQcTt9k8p+ZO5QmXn+w/TRmU8bBzOuzjC08h21GphZNwstYi6C+OC16OkEfMlMajcM3WjwkOP93rB8hjBg+H5rLWGXkxPml7vthLgwrsHkWg5ZFSdH70MKNay3PM4FavdmogM2Rsv+ZXQ7hAN1L7D7yKz0M6NE++etRGzl5vDPwvydA9ztig4cho/YywFBrAR31VKXUpTXmstc13FWN6CxPu8LzALsxg4hGs8OfWBGfXrVVC8fPwoCiW7aYkYFIYaOP+7JeH1P5PbimjBHeMzbtj93TSwdyFRfvF3Q== 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=6GMfZpqaDCveBhfY9SpKC+k3XFWgR1F4AnC1i8PPp8A=; b=pvocW3VjsQG9BNM1r5Zi6BQ3pqk5ss23ep9eouulDBeWeZ3gwydFDzY925AmVB1FIWk9f2BvvroyJdcTwBvINP6Eak3sgznLjsOfgdbhKHk/HWK+cTgGOQkXZ1qJfPdbwIqtvrMVhfks7LYbtsMTrgZmg4b9OwfvRl8f7isNaeE= 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 DM5PR12MB2504.namprd12.prod.outlook.com (2603:10b6:4:b5::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20; Tue, 19 May 2020 21:51:30 +0000 Received: from DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::4ce1:9947:9681:c8b1]) by DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::4ce1:9947:9681:c8b1%10]) with mapi id 15.20.3000.034; Tue, 19 May 2020 21:51:30 +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 v8 01/46] MdeModulePkg: Create PCDs to be used in support of SEV-ES Date: Tue, 19 May 2020 16:50:29 -0500 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-ClientProxiedBy: DM6PR11CA0048.namprd11.prod.outlook.com (2603:10b6:5:14c::25) 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 DM6PR11CA0048.namprd11.prod.outlook.com (2603:10b6:5:14c::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.25 via Frontend Transport; Tue, 19 May 2020 21:51:29 +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: d689cebd-82eb-475d-946d-08d7fc3ec9a9 X-MS-TrafficTypeDiagnostic: DM5PR12MB2504: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-Forefront-PRVS: 040866B734 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VHEsLCGFfXw1jfnAqThSXbZCMnbLef8buPtGXAANOSqyDSxh5RU0TGB1DrHeNHQNpId5jAa/hLS0p+MP5HCVprNnKtK0tRYDMzpGuMcjAcUPpALrOtDzyOEz2YRh7Z9diIP49oro/0XnhnAJxrdUnYT2FLCUwgERzS7Z4TdMHyrOAePy0SAHdNjmlbkWAjpXuhYyF08KDwDKaxQOdLmYPl/PvHV/21zWKod2XgyUf7j7lTq2ToGTxzQ9rvrJLzIGNoAC0F4BGSGIdBm9Xe5ivdt3E53vQ/ySq+05tSNeS6J5UgniGRE5RS8+19RX0bjuLdb2FycUc0ZNwrIdCE80Gx9/44BCsTjaji3yNc9z/qOZ3cqvT9Am/CPEnTYDtFCVsGOzxLZTY71o1T43pj1ge8s5cKN8IXvjyVfBslqT+Epra6rMuCAhEArBFDgWjW5ZHKgPuDgP32AcLntQlLIzuIfV2KDUbP0fw99dNMRnnsPpChHOT2ROmmdA3xbFtFa46ErbeT6lI6NbeT3ubCnhA1/O9pvtf//KhhCTXMLXMy64BdHtUBj+PHqZqwpdiy2dUHJnazjMNJJnDaYviV/28w== 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)(376002)(39860400002)(136003)(346002)(396003)(366004)(316002)(86362001)(2906002)(54906003)(7696005)(52116002)(2616005)(956004)(66946007)(66476007)(66556008)(36756003)(26005)(16526019)(186003)(7416002)(4326008)(8676002)(5660300002)(966005)(6486002)(8936002)(6916009)(478600001)(136400200001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 4pTquLEb0LtCbpif774MWspSomqIokiRg7Je7P68XgL9739iLEv0dPG7npdC8xxdsCtEnzzn1oQOlvruy/ybWj+gIzutn4OziW0vbpM9VVJhub7qu9BMLkLAzl9U0Pi0dtmKKxn8cdNqSjp9LTVSpTVSMsUBfUKnZ2IvhQ2/rcwjK4oL0h27OFKonmKADd0TOa5URapg0lR6A3fXijk+5XnJ9yyikHeoqSGwEncvO9Cyjy/hgNOJVo3TEF47+E9i5A15lI0hsQ3n44XmyCgIAK/ZwBoqGXQcHc/RDRXL/Ia0cZdTLNEyssEeWSPub0DuKsvKBs8E7VLKLDsqBpG/t2VgySfFHGkR3zlY+PK37a47FQoWmIa+i9Wkog3+xOWNHnrApBjQAN7o9k9fI6zIYXJek3cbKpcCzn1C5s+7RkELiUaY95s7iVffp3EVw6kRpgXGQ2KGXY7yHoXHj9/UjClXnLv6hq1Qu1TDwUNb6Kc= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: d689cebd-82eb-475d-946d-08d7fc3ec9a9 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2020 21:51:29.9249 (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: d2ARXHX6L1znfU6MJ0V64tTH3sgvL7CqbSSR/T/RtG07/TV8SmczknHHBQ6QJjyU1f+DTCA0D7QRezYFkeKqag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2504 Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2198 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 4f44af694862..8085e761bbeb 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 + ## 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/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_PROMPT #language en-US "TCG Platform Firmware Profile revision" #string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdTcgPfpMeasurementRevision_HELP #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-US "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-US "Used with SEV-ES support to identify the size of the address range that is not to be encrypted." -- 2.17.1