X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=UefiCpuPkg%2FLibrary%2FCpuCommonFeaturesLib%2FExecuteDisable.c;h=ff06cb9b6099d3174060e3e2811a6a7331d5fa97;hp=921656a1e86989e27117e3db01c7a49c18138cd2;hb=d28daaddb3e732468e930a809d3d3943a5de9558;hpb=38381e18bf08dadad91627949996d106612f4753 diff --git a/UefiCpuPkg/Library/CpuCommonFeaturesLib/ExecuteDisable.c b/UefiCpuPkg/Library/CpuCommonFeaturesLib/ExecuteDisable.c index 921656a1e8..ff06cb9b60 100644 --- a/UefiCpuPkg/Library/CpuCommonFeaturesLib/ExecuteDisable.c +++ b/UefiCpuPkg/Library/CpuCommonFeaturesLib/ExecuteDisable.c @@ -79,6 +79,16 @@ ExecuteDisableInitialize ( IN BOOLEAN State ) { + // + // The scope of the MSR_IA32_EFER is core for below processor type, only program + // MSR_IA32_EFER for thread 0 in each core. + // + if (IS_SILVERMONT_PROCESSOR (CpuInfo->DisplayFamily, CpuInfo->DisplayModel)) { + if (CpuInfo->ProcessorInfo.Location.Thread != 0) { + return RETURN_SUCCESS; + } + } + CPU_REGISTER_TABLE_WRITE_FIELD ( ProcessorNumber, Msr,