UefiCpuPkg: Remove FIT based microcode shadow logic from MpInitLib.
Commitc7c964b
anddd01704
add header file for FIT table and update MpInitLib to support FIT based microcode shadow operation. There are comments that FIT is Intel specific specification instead of industry standard, which should not be placed in EDK2 MdePkg and UefiCpuPkg. So this patch adds a platform PPI for the microcode shadow logic, and remove the FIT related code from EDK2. The FIT based microcode shadow support will be implemented as a new platform PEIM in IntelSiliconPkg in edk2-platforms. This patch doesn't provide a DXE version shadow microcode protocol, a platform which only uses DxeMpInitLib instance only supports PCD based microcode shadowing. A detailed design doc can be found here: https://edk2.groups.io/g/devel/files/Designs/2020/0214/Support%20 the%202nd%20Microcode%20FV%20Flash%20Region.pdf TEST: Tested on FIT enabled platform. BZ: https://tianocore.acgmultimedia.com/show_bug.cgi?id=2449 Cc: Eric Dong <eric.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Siyuan Fu <siyuan.fu@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Acked-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## @file UefiCpuPkg.dec
|
||||
# This Package provides UEFI compatible CPU modules and libraries.
|
||||
#
|
||||
# Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2007 - 2020, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#
|
||||
@@ -81,6 +81,9 @@
|
||||
[Ppis]
|
||||
gEdkiiPeiMpServices2PpiGuid = { 0x5cb9cb3d, 0x31a4, 0x480c, { 0x94, 0x98, 0x29, 0xd2, 0x69, 0xba, 0xcf, 0xba}}
|
||||
|
||||
## Include/Ppi/ShadowMicrocode.h
|
||||
gEdkiiPeiShadowMicrocodePpiGuid = { 0x430f6965, 0x9a69, 0x41c5, { 0x93, 0xed, 0x8b, 0xf0, 0x64, 0x35, 0xc1, 0xc6 }}
|
||||
|
||||
[PcdsFeatureFlag]
|
||||
## Indicates if SMM Profile will be enabled.
|
||||
# If enabled, instruction executions in and data accesses to memory outside of SMRAM will be logged.
|
||||
@@ -139,12 +142,6 @@
|
||||
# @Prompt Lock SMM Feature Control MSR.
|
||||
gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmFeatureControlMsrLock|TRUE|BOOLEAN|0x3213210B
|
||||
|
||||
## Indicates if FIT based microcode shadowing will be enabled.<BR><BR>
|
||||
# TRUE - FIT base microcode shadowing will be enabled.<BR>
|
||||
# FALSE - FIT base microcode shadowing will be disabled.<BR>
|
||||
# @Prompt FIT based microcode shadowing.
|
||||
gUefiCpuPkgTokenSpaceGuid.PcdCpuShadowMicrocodeByFit|FALSE|BOOLEAN|0x3213210D
|
||||
|
||||
[PcdsFixedAtBuild]
|
||||
## List of exception vectors which need switching stack.
|
||||
# This PCD will only take into effect if PcdCpuStackGuard is enabled.
|
||||
|
Reference in New Issue
Block a user