From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from aserp2120.oracle.com (aserp2120.oracle.com [141.146.126.78]) by mx.groups.io with SMTP id smtpd.web10.31720.1613978391470280373 for ; Sun, 21 Feb 2021 23:19:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=xC6LX8sl; spf=pass (domain: oracle.com, ip: 141.146.126.78, mailfrom: ankur.a.arora@oracle.com) Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11M7F30k132647; Mon, 22 Feb 2021 07:19:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2020-01-29; bh=ZSmLXnkGnrGbL4Gfu1w8+AqfVIYwQx2NR1XNbeKZBdM=; b=xC6LX8slT1l17vMMqUCjdR9Qlcqun8SIvcfznupXwqZnvzvREbRMWup05a9ltDoTfQdx 3dcgm8DrydhmPJ2+2xBN/KcD/BjW4Q69CVpNK8j+zODhEjFulEMQAat22xsmSZW3EseT VfW6ILq7X84Nag7rQSYnqZoCl4WPKcigHNAoRbI48fRCjlOlVRvhPjKNALKpS6Vkwn/T Ju9Ix91X5aQcPbymaeXyuUv1O0lTYo+6V3rTqd8Bc1TuLIwmZxVnOjH9hGrrwZOWzA9T 1vRKfbUwyGl5suEZC/J/Fdf6hTIlGiMIIUfBrzTA4wq6Q7BaeUBmcZhUt8N/9ZeSyMFC iQ== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 36ttcm2kec-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 Feb 2021 07:19:48 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11M7GSL7067574; Mon, 22 Feb 2021 07:19:47 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2168.outbound.protection.outlook.com [104.47.57.168]) by aserp3020.oracle.com with ESMTP id 36ucawnxq0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 Feb 2021 07:19:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gQMr5Iwkgn7uaiiq73+3cUTQFXUlCGcYP2XfaVLsLwnPA0Z9L1qDjVExbFzmQQ/ofl8PS+GvvjcIMKhmNI5Q3KC4LEDmKcnnNU0OUOR5eV1NZhUjTrkXrtTcRE9DQBb5kBvtnkId57egs6HFCmAMVPzsZEcwlI+jmQwBGO08rXz7yLQbSRtHhucwvkinPYk/ZMTIVOOyO2noCW6g866gZYrGt+1spG2C4ChKABNW6W6KGxGLlRoryE/eOrqZ53TgSOsjsxl5ssR3X+8bademITTNiWiCuFKH0af6XTl8tsgB0pDMygtjoJ+OZL45w5xkfvVYqW2vVbH3D+TOILAcoQ== 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=ZSmLXnkGnrGbL4Gfu1w8+AqfVIYwQx2NR1XNbeKZBdM=; b=OEPvNRKgo4u6ts7I3So179BpSxr0+NnmOuWo1b1oGch//jf39c3ByUfGlnHxBPR56+FOdAf5+7Gv282y84Hji3kSWEHbxKBXrAqEA9IgSO7hfkOIifKBrgYuJN0vSgXQWXKms+0/DezBW/ZwJmM5oNMLOpcTS6bx2d4jZZB9WMY7rczOHPmM1YuFQDRbZmkHgrElsrpoFAdVz6THFcOCXWpPqXLv7M68Q1nNouXFr6ZqTljYAqdmZONlJqmUouYkKZsJir2M05KILyw0mNINb5l7KeRfunF3sQg7MOlOHl2whlb62RiI3BQbiYArZwYkQ+7e6mMxbRnyAAEMn2SkIg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZSmLXnkGnrGbL4Gfu1w8+AqfVIYwQx2NR1XNbeKZBdM=; b=CmVqWVUXy0G47o9pyJ69oV+hku14keeM5bJr0fSK7z91UpJ/RBLlrTqdUZHgbEZfzn9Ul+F1o36kMw6tvLsrjlLFVoA9puXvo5VVHbO4gzuNyEFT1hCwTT30ZZ7NcCdudkN25sMtd+bbxuO2Q6Qlwdx7g2gVCDQtRJMKNCeDPQo= Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=oracle.com; Received: from SJ0PR10MB4605.namprd10.prod.outlook.com (2603:10b6:a03:2d9::24) by BY5PR10MB3922.namprd10.prod.outlook.com (2603:10b6:a03:1fd::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.32; Mon, 22 Feb 2021 07:19:45 +0000 Received: from SJ0PR10MB4605.namprd10.prod.outlook.com ([fe80::a021:790:7ce6:6f16]) by SJ0PR10MB4605.namprd10.prod.outlook.com ([fe80::a021:790:7ce6:6f16%6]) with mapi id 15.20.3868.033; Mon, 22 Feb 2021 07:19:45 +0000 From: "Ankur Arora" To: devel@edk2.groups.io Cc: lersek@redhat.com, imammedo@redhat.com, boris.ostrovsky@oracle.com, Ankur Arora , Jordan Justen , Ard Biesheuvel , Aaron Young Subject: [PATCH v8 06/10] OvmfPkg/SmmCpuFeaturesLib: init CPU ejection state Date: Sun, 21 Feb 2021 23:19:24 -0800 Message-Id: <20210222071928.1401820-7-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210222071928.1401820-1-ankur.a.arora@oracle.com> References: <20210222071928.1401820-1-ankur.a.arora@oracle.com> X-Originating-IP: [148.87.23.11] X-ClientProxiedBy: MWHPR17CA0065.namprd17.prod.outlook.com (2603:10b6:300:93::27) To SJ0PR10MB4605.namprd10.prod.outlook.com (2603:10b6:a03:2d9::24) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from prion.us.oracle.com (148.87.23.11) by MWHPR17CA0065.namprd17.prod.outlook.com (2603:10b6:300:93::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.27 via Frontend Transport; Mon, 22 Feb 2021 07:19:44 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 64b7c523-28d4-4054-c8b3-08d8d7023abc X-MS-TrafficTypeDiagnostic: BY5PR10MB3922: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:124; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wgsn+GDSvNqIl5BSYwhzDrx2Br7NaY/n9j0gVa2nHa5u6wKIqhhGH04trQVsKjSNSdZsauxVI8SFe1o+UeKeLV5RGb5UrInPsPqybZNbCkXJ/nNv/ITKUpzWAZE/I3s5AFDeWs5m5zmMkT1syS/UefpNq2dLFLKM/tuce8vtSvGSfbZQqEvuDJ1J3Vi/hvWgj/NS/dT5uB9BhcWRD7A++nUkGkxFQgKE06fWl17jVVYG9U2JeLA2G4OtvwHoVXkdM84wav3nhTg3HnAQ43dClIpe1vRyj1ezQilcsUyK/gFBUXoVf5XKoV8cJYXNMNmk7ZvgMLD1/9zKZbaXECtnE0ROjDyN0ETtRfCJ5KrM7oGZwSBbliFMW1uk3wP7EBcWsOfyq/D4y8jcvUdp+scgVuHX+axgkYswcs4hY4FAjab6WXRvH5W80sN/jBCKRte0PXXRhErh7sjCZZOzJh/Q0ss79yip6VIdXuDz0g+MNoJsxvWi1c3ajdgE8Qc1gZNpDiOxkQqch9b4Br3Q/q/TJokXWKRQQm+XElCCQYHgpWf1U/oYCYGZeyyfwzxDy+FZQ8ta999Qvq3tXXeGyWBqe847518y6T52M69mM26lfwY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR10MB4605.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(396003)(376002)(39860400002)(346002)(136003)(366004)(6666004)(6486002)(6916009)(2906002)(86362001)(52116002)(1076003)(7696005)(316002)(36756003)(107886003)(4326008)(26005)(478600001)(2616005)(8676002)(8936002)(966005)(16526019)(5660300002)(186003)(54906003)(103116003)(66476007)(66556008)(66946007)(83380400001)(956004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?oXXzLBlnfEkvsDuSVad1rN9FHIt4ymcGID0uAojkbtmpuJ8UyaO3X3KTVQ0x?= =?us-ascii?Q?t3xobMKslE0uNU5A2Dp7TuV9jbxgfRfGlOCz2uxwiU+QieivoAJSOFMYUmiX?= =?us-ascii?Q?Bbgk/9+nBnTK63nGeuzNCdKdipB2ibRB9EUMzWY4NPm4qMWSc/3zzkdcOEeK?= =?us-ascii?Q?1qnmbcbkxzioiCdWb6xowSlKSO6SPsCFTy2/p18tJb9tGoZVoj4U8j1twYmN?= =?us-ascii?Q?hTFpUBjlvy4+XSfWymtQ0J7F/0pK3o+iUcrJ/KGVC1yj1uCl8pLzo3ruE3Dg?= =?us-ascii?Q?kV90ko6o9PdqnKcxTPPv1mDTTFvzn9wIu5zq4c97QxcwRwoliFREyqRSrIMp?= =?us-ascii?Q?ECRDy4MIaNuKu/wwBYG555d56/aWatFpe6DCsnSRqI2xMUcG7OFr246CUk81?= =?us-ascii?Q?mzJrkP7eI85YSViK7YZxj23M82L6S2VWId+spH8F3wUrKW3X8m1d+22z1X9n?= =?us-ascii?Q?5n6W74aeb9hDaxEwJ0oPPPkJG+ZGU+7HfYGNPRGGcVC91G2gSxhmx3t6G8Pz?= =?us-ascii?Q?n8xa+JS3FnXCq03ZJ2y7RaC/8C6oYgZ2pDgAkLUkW0I8asyskc59A/QUVP7x?= =?us-ascii?Q?/SdyvZyiRzJ8v2zyhl7rRXKh/Nph4stfz7U8ZMr4JnqZ5wDqy1EEZ4geeB6a?= =?us-ascii?Q?dtQPtfpXmlJ5mU7xvFYF+hfMxCZFl9Cp/SCQ98AQ5XnJg8jcS5N17D8n0rG3?= =?us-ascii?Q?JDlsBbfw/LkA1N/Je81lknp3P23egMAvxwAzH3Si+udSHj2CWriewsXj4DXf?= =?us-ascii?Q?QVjGAzV5WmuUcFy+onYbYSLNxgxux1fh5YpzXeJj27HZpHfXtQr/Mqc4Ah5x?= =?us-ascii?Q?guj+xcD8Xjq9TlmZXobB1ufGGSJ9YX6A9VZvaLI+dlwEIyGxfkPLXWzmWOri?= =?us-ascii?Q?x/8LtKBOm5lojwMCuNL/mfDDxWsGUJKLYdCJH7Yp7/V8yNp7X8KlrzMGjUaX?= =?us-ascii?Q?0EIf16jl84Q7zuqY7qqex2K6F8U10eP/N3uKJ6pGdrUPbvZEFRyeUI/igFdp?= =?us-ascii?Q?qnckGYNfMLdUb3M5ss+q227MibEeHX55euN2NOPVUgvQcP2DTxUrWEGMPlJz?= =?us-ascii?Q?Lo4HbVY4zbxwzYFg1rMz0F5I/yfcsu0vCBbHxPX5kV1QHH+fVEHbBkwKyb53?= =?us-ascii?Q?erkhi/lAxzJqT+r9INCw4XVJBiwkta3yOeio+IaenRS55Rq5O7vGApuSNIdi?= =?us-ascii?Q?HcSsFKA9J43TMPzu0bp1mVj3o/tmKZA4Dd2XAm/2RagOIpKtNBQBYz/fpfeO?= =?us-ascii?Q?rOLiJDk08jPkGVyJhEu4ouOzOBI8IqNuFPrffFmFMDThWk4xxsR2RYY5gPPl?= =?us-ascii?Q?NiisrUBEec4xPFqA3xZEC7PL?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 64b7c523-28d4-4054-c8b3-08d8d7023abc X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB4605.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2021 07:19:44.9586 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: W5RdDylVSly0vo/eE3jap8Fdz2UkwQVtaYZoAct/SkUAy1N3lRKkOOLz1MikJ5QlA8T+YU/PBkjaO6MeZ0ytuUpmfpweuPvX65TTQnCoWc0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB3922 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9902 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 bulkscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102220064 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9902 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 lowpriorityscore=0 spamscore=0 mlxscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 impostorscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102220064 Content-Transfer-Encoding: 8bit Content-Type: text/plain Init CPU_HOT_EJECT_DATA, which will be used to share CPU ejection state between SmmCpuFeaturesLib (via PiSmmCpuDxeSmm) and CpuHotPlugSmm. The init happens via SmmCpuFeaturesSmmRelocationComplete(), and so it will run as part of the PiSmmCpuDxeSmm entry point function, PiCpuSmmEntry(). Once inited, CPU_HOT_EJECT_DATA is exposed via PcdCpuHotEjectDataAddress. The CPU hot-eject handler (CPU_HOT_EJECT_DATA->Handler) is setup when there is an ejection request via CpuHotplugSmm. Cc: Laszlo Ersek Cc: Jordan Justen Cc: Ard Biesheuvel Cc: Igor Mammedov Cc: Boris Ostrovsky Cc: Aaron Young Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3132 Signed-off-by: Ankur Arora --- Notes: Addresses the following review comments: (1) Detail in commit message about context in which CPU_HOT_EJECT_DATA is inited. (2) Add in sorted order MemoryAllocationLib in LibraryClasses (3) Sort added includes in SmmCpuFeaturesLib.c (4a-4b) Fixup linkage directives for mCpuHotEjectData. (5) s/CpuHotEjectData/mCpuHotEjectData/ (6,10a,10b) Remove dependence on PcdCpuHotPlugSupport (7) Make the tense structure consistent in block comment for InitCpuHotEject(). (8) s/SmmCpuFeaturesSmmInitHotEject/InitCpuHotEject/ (9) s/mMaxNumberOfCpus/MaxNumberOfCpus/ (11) Remove a bunch of obvious comments. (14a,14b,14c) Use SafeUint functions and rework the allocation logic so we can just use a single allocation. (12) Remove the AllocatePool() cast. (13) Use a CpuDeadLoop() in case of failure; albeit via a goto, not inline. (15) Initialize the mCpuHotEjectData->QemuSelectorMap locally. (16) Fix indentation in PcdSet64S. (17) Change the cast in PcdSet64S() to UINTN. (18) Use RETURN_STATUS instead of EFI_STATUS. (19,20) Move the Handler logic in SmmCpuFeaturesRendezvousExit() into into a separate patch. .../SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf | 4 + .../Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c | 92 ++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf b/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf index 97a10afb6e27..8a426a4c10fb 100644 --- a/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf +++ b/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf @@ -30,9 +30,13 @@ [LibraryClasses] BaseMemoryLib DebugLib MemEncryptSevLib + MemoryAllocationLib PcdLib + SafeIntLib SmmServicesTableLib UefiBootServicesTableLib [Pcd] + gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber + gUefiOvmfPkgTokenSpaceGuid.PcdCpuHotEjectDataAddress gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase diff --git a/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c b/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c index 7ef7ed98342e..adbfc90ad46e 100644 --- a/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c +++ b/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c @@ -11,10 +11,13 @@ #include #include #include +#include #include +#include #include #include #include +#include #include #include #include @@ -171,6 +174,92 @@ SmmCpuFeaturesHookReturnFromSmm ( return OriginalInstructionPointer; } +STATIC CPU_HOT_EJECT_DATA *mCpuHotEjectData = NULL; + +/** + Initialize mCpuHotEjectData if PcdCpuMaxLogicalProcessorNumber > 1. + + Also setup the corresponding PcdCpuHotEjectDataAddress. +**/ +STATIC +VOID +InitCpuHotEjectData ( + VOID + ) +{ + UINTN ArrayLen; + UINTN BaseLen; + UINTN TotalLen; + UINT32 Idx; + UINT32 MaxNumberOfCpus; + RETURN_STATUS PcdStatus; + + MaxNumberOfCpus = PcdGet32 (PcdCpuMaxLogicalProcessorNumber); + + if (MaxNumberOfCpus == 1) { + return; + } + + // + // We want the following lay out for CPU_HOT_EJECT_DATA: + // UINTN alignment: CPU_HOT_EJECT_DATA + // --- padding if needed --- + // UINT64 alignment: CPU_HOT_EJECT_DATA->QemuSelectorMap[] + // + // Accordingly, we allocate: + // sizeof(*mCpuHotEjectData) + (MaxNumberOfCpus * + // sizeof(mCpuHotEjectData->QemuSelectorMap[0])). + // Add sizeof(UINT64) to use as padding if needed. + // + + if (RETURN_ERROR (SafeUintnMult (sizeof (*mCpuHotEjectData), 1, &BaseLen)) || + RETURN_ERROR (SafeUintnMult ( + sizeof (mCpuHotEjectData->QemuSelectorMap[0]), + MaxNumberOfCpus, &ArrayLen)) || + RETURN_ERROR (SafeUintnAdd (BaseLen, ArrayLen, &TotalLen))|| + RETURN_ERROR (SafeUintnAdd (TotalLen, sizeof (UINT64), &TotalLen))) { + DEBUG ((DEBUG_ERROR, "%a: invalid CPU_HOT_EJECT_DATA\n", __FUNCTION__)); + goto Fatal; + } + + mCpuHotEjectData = AllocatePool (TotalLen); + if (mCpuHotEjectData == NULL) { + ASSERT (mCpuHotEjectData != NULL); + goto Fatal; + } + + mCpuHotEjectData->Handler = NULL; + mCpuHotEjectData->ArrayLength = MaxNumberOfCpus; + + mCpuHotEjectData->QemuSelectorMap = (void *)mCpuHotEjectData + + sizeof (*mCpuHotEjectData); + mCpuHotEjectData->QemuSelectorMap = + (void *)ALIGN_VALUE ((UINTN)mCpuHotEjectData->QemuSelectorMap, + sizeof (UINT64)); + // + // We use mCpuHotEjectData->QemuSelectorMap to map + // ProcessorNum -> QemuSelector. Initialize to invalid values. + // + for (Idx = 0; Idx < mCpuHotEjectData->ArrayLength; Idx++) { + mCpuHotEjectData->QemuSelectorMap[Idx] = CPU_EJECT_QEMU_SELECTOR_INVALID; + } + + // + // Expose address of CPU Hot eject Data structure + // + PcdStatus = PcdSet64S (PcdCpuHotEjectDataAddress, + (UINTN)(VOID *)mCpuHotEjectData); + if (RETURN_ERROR (PcdStatus)) { + ASSERT_EFI_ERROR (PcdStatus); + goto Fatal; + } + + return; + +Fatal: + CpuDeadLoop (); +} + /** Hook point in normal execution mode that allows the one CPU that was elected as monarch during System Management Mode initialization to perform additional @@ -188,6 +277,9 @@ SmmCpuFeaturesSmmRelocationComplete ( UINTN MapPagesBase; UINTN MapPagesCount; + + InitCpuHotEjectData (); + if (!MemEncryptSevIsEnabled ()) { return; } -- 2.9.3