Bit SMM_Code_Access_Chk (SMM-RO) in MSR_SMM_MCA_CAP is defined in SDM. If set to 1 indicates that the SMM code access restriction is supported and the MSR_SMM_FEATURE_CONTROL is supported.
If this bit is not set, we needn't to access register SmmFetureControl. Jeff Fan (2): UefiCpuPkg: Not touch SmmFeatureControl if Code_Access_Chk not Set UefiCpuPkg/SmmFeatureLib: Check SmmFeatureControl by Code_Access_Chk .../Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c | 54 ++++++++++++++++------ UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 13 ++---- 2 files changed, 43 insertions(+), 24 deletions(-) -- 1.9.5.msysgit.0 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

