audk/UefiCpuPkg/Library/SmmCpuFeaturesLib
Wu, Jiaxin 76ec17526b UefiCpuPkg: Add PCD to control SMRR enable & SmmFeatureControl support
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3962

Two SMM variables (mSmrrSupported & mSmmFeatureControlSupported) are global
variables, they control whether the SMRR and SMM Feature Control MSR will
be restored respectively.
To avoid the TOCTOU, add PCD to control SMRR & SmmFeatureControl enable.

Cc: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
2022-08-31 04:23:55 +00:00
..
Ia32 UefiCpuPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
X64 UefiCpuPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CpuFeaturesLib.h UefiCpuPkg/SmmCpuFeaturesLib: Abstract PcdCpuMaxLogicalProcessorNumber 2021-03-08 18:07:32 +00:00
SmmCpuFeaturesLib.c UefiCpuPkg/SmmCpuFeaturesLib: Add Standalone MM support 2021-03-08 18:07:32 +00:00
SmmCpuFeaturesLib.inf UefiCpuPkg: Add PCD to control SMRR enable & SmmFeatureControl support 2022-08-31 04:23:55 +00:00
SmmCpuFeaturesLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
SmmCpuFeaturesLibCommon.c UefiCpuPkg: Add PCD to control SMRR enable & SmmFeatureControl support 2022-08-31 04:23:55 +00:00
SmmCpuFeaturesLibNoStm.c UefiCpuPkg/SmmCpuFeaturesLib: Add Standalone MM support 2021-03-08 18:07:32 +00:00
SmmCpuFeaturesLibStm.inf UefiCpuPkg: Add PCD to control SMRR enable & SmmFeatureControl support 2022-08-31 04:23:55 +00:00
SmmStm.c UefiCpuPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SmmStm.h UefiCpuPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
StandaloneMmCpuFeaturesLib.c UefiCpuPkg/SmmCpuFeaturesLib: Add Standalone MM support 2021-03-08 18:07:32 +00:00
StandaloneMmCpuFeaturesLib.inf UefiCpuPkg: Add PCD to control SMRR enable & SmmFeatureControl support 2022-08-31 04:23:55 +00:00
TraditionalMmCpuFeaturesLib.c UefiCpuPkg/SmmCpuFeaturesLib: Abstract PcdCpuMaxLogicalProcessorNumber 2021-03-08 18:07:32 +00:00