From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (NAM04-BN3-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web12.473.1587577339915064264 for ; Wed, 22 Apr 2020 10:42:20 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=xCOvwk8Q; spf=none, err=SPF record not found (domain: amd.com, ip: , mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dBwsc0pni7C0mRbNVyZuk3IKRHPywM2+j0H0KqWp3a3E7eBSphJz40PRyWxQJhDKJ3DDt/UOlrVs3kQE9ow8i6181mM1l7AYR51OgeeF3daMveRU4+cw7hl7tEMtebqyaPkSN10GlJgVex/HQ31YH5vtTXA2fxO98XSbKst50EdAiE1jVayuaOrfAeTKI+Yu6YKwU698p9H4wFPRrTKAWWNeQoaxrrUoTh134wSxfeQrm1J2z4rRTyoB2OJZ9kBgegyvzcIKzY06h0bpKSCFUtK4gEOVJRpQ3gr2v35kXw/H+kMTPbU4Z81Ome3zhNuIPR7vNJ1+FsgfVEWWdpyXkQ== 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=Y1iVstiemD+XYC0Z0onck2AFHpkBWFqnjQknM0+NAnI=; b=KidL9Y017ZSpxT4IgEvmxuj4uWJZP23rhCVJ+WDirqpSqvpLiP98jDTLy53XxadjogMK47+NECHFxiI3I886brzpc8cyeMa0thuaquHgDB+ninCczLE7dZLW8QvfXnugq3l/46UOl8VDwi0PP0ZmpXHYJCBSUdbrBX4Nb2kvJ2HEQmock4csNcvBngy/EGDfO8Zif71hZvvjf+sWFU2eYMDf+xPZ3t7E1LBhrtu3XI8ezxCBcseqgJNNJK5k97ju5tw8yhvGTU16tkc950YxkBsauKIm8lD2Yz6Ym+mVnMtDnTY1bmb2iNQMuZ5JL6wD+u99jMQJvWuatU3eeMkThA== 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=Y1iVstiemD+XYC0Z0onck2AFHpkBWFqnjQknM0+NAnI=; b=xCOvwk8QLCFBlaafwOb+HennKzSh4uAIzN7TbH5pL3jPwnWZu/D3GOhyHn0zKMLNhOID+ujUEj4Bnho86WaVIGFIPGCw+SW2Muhs7eDCT1tLbMybz+UwkzINdf+qBHJMSRYEHVahox5fNUVKsV2Dq9q1NDWo7wZr9DsRxfS0qxs= 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 DM6PR12MB3449.namprd12.prod.outlook.com (2603:10b6:5:3b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.25; Wed, 22 Apr 2020 17:42:17 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::9ae:cb95:c925:d5bf]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::9ae:cb95:c925:d5bf%4]) with mapi id 15.20.2921.030; Wed, 22 Apr 2020 17:42:17 +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 v7 01/43] MdeModulePkg: Create PCDs to be used in support of SEV-ES Date: Wed, 22 Apr 2020 12:41:16 -0500 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-ClientProxiedBy: DM5PR04CA0060.namprd04.prod.outlook.com (2603:10b6:3:ef::22) 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 DM5PR04CA0060.namprd04.prod.outlook.com (2603:10b6:3:ef::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13 via Frontend Transport; Wed, 22 Apr 2020 17:42:16 +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: 7e7fc496-c4b8-4b79-60bd-08d7e6e48007 X-MS-TrafficTypeDiagnostic: DM6PR12MB3449:|DM6PR12MB3449: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-Forefront-PRVS: 03818C953D X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB3163.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(10009020)(4636009)(136003)(346002)(376002)(39860400002)(366004)(396003)(66556008)(16526019)(66476007)(186003)(5660300002)(4326008)(86362001)(54906003)(8936002)(81156014)(966005)(6486002)(66946007)(316002)(52116002)(7696005)(956004)(7416002)(36756003)(6916009)(2906002)(2616005)(8676002)(478600001)(26005)(136400200001);DIR:OUT;SFP:1101; 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: KxTtToD6K3AJvl4IuYRHVuSpRX2d9aIRa/TmkdohlbTAnDrvhgABLjYe2rMgwQvCyv5qORKNBPK9H5+00rkKTa7J+eV3+gDVETwkXj4FKJRh9Hbmj1btBNfmiysvnZekil0Ih1Q3YzvQ3SIDcnbicXorU5EWppdB6aYqpl2KEuFLbxyhRv0WeyeC09CEcupw4JnH0vgVHKKB0lX8jeJgokpQ2Jjawn2mvOIKLXpt0Kiv7/R252hu4xCm4nVzEB9jiCpLLp+VGucV6nar/ZI2Bt6sv5iAsvQ6ydvu2Cqq0OpNhOQZ5QV9vL/CqS5tdSX/X0smYGzCsx0w+pZ7X1RyJibyg3/ADYjnaE094uOHMaruvXv8mH8P+v+6ZApT0cF2Gx1piWj9+Hv7r1XAbn24rjpLAjANNbMMHZEe/4QbGdEDLgABVKS29DLFGoyPF1Olr5Xc9WbVehdo1LCN/ufopvXFZr8ZtWsAicgLYyJCOrYlXP+NduxVSiJ4ggZOFCEXZmM7BvUk1h9F2bQWx/R+CtMnu2l8FTZlORaHJpBlouNW5Z8S/PhEw/YNyRyTjkd/bjTFkIR9XwQ8raiSHWX5yg== X-MS-Exchange-AntiSpam-MessageData: i/ezw661r4nOgqd1ggC8fZbCcY2ffdH8j1gK8Lq3SdHk0uQ8tDN1zVrAZ2nGcFldNBpBBQ5pPF1RuJyk2/LEOcC/ArWN8HrMCd7+/xm0lxQtfEz3Qf6HJrTMeXvH4RG7dvMOEwda9wTdjR0q/1LICg== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e7fc496-c4b8-4b79-60bd-08d7e6e48007 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2020 17:42:17.5001 (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: Z2D54RlpPl0Ynr+V75ur7wMZlJ8UiyLkb6KYSWi6mut3HYxjGI9tNoVGnw6I9Cl6r+cF2/zuV1OAvUa7cIqqUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3449 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 42ad21cf244d..642a4791d83c 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -2048,6 +2048,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