audk/UefiCpuPkg/Library/CpuCommonFeaturesLib
Ray Ni 6d17c9c24a UefiCpuPkg/CpuCommonFeaturesLib: Remove XD enable/disable logic
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2329

XD (ExecutionDisable) feature, when turned on, allows page table
entry BIT63 set to 1 indicating the memory pointed by the page table
is disallowed to execute.
DxeIpl::CreateIdentityMappingPageTables() enables the XD when CPU
supports it.
Later DxeCore modifies the page table to set the BIT63 to protect
the stack/heap to disallow code execution in stack/heap.

UefiCpuPkg/CpuCommonFeaturesLib enables/disables the XD feature
according to PcdCpuFeaturesSetting.
When XD is disabled, GP fault is generated immediately because some
page entries have BIT63 set.

To fix this issue, this patch removes the XD feature logic from
UefiCpuPkg/CpuCommonFeaturesLib so the XD feature is only taken
care of by DxeIpl.

Signed-off-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
2019-11-13 07:26:16 +00:00
..
Aesni.c UefiCpuPkg CpuCommonFeaturesLib: Remove CPU generation check 2019-05-18 13:55:50 +08:00
C1e.c UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
ClockModulation.c UefiCpuPkg CpuCommFeaturesLib: Reduce to set MSR_IA32_CLOCK_MODULATION 2019-06-06 18:52:35 +08:00
CpuCommonFeatures.h UefiCpuPkg/CpuCommonFeaturesLib: Use new macros. 2019-08-21 02:44:50 +08:00
CpuCommonFeaturesLib.c UefiCpuPkg/CpuCommonFeaturesLib: Remove XD enable/disable logic 2019-11-13 07:26:16 +00:00
CpuCommonFeaturesLib.inf UefiCpuPkg/CpuCommonFeaturesLib: Remove XD enable/disable logic 2019-11-13 07:26:16 +00:00
CpuCommonFeaturesLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
Eist.c UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
FastStrings.c UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
FeatureControl.c UefiCpuPkg/CpuCommonFeaturesLib: Use new macros. 2019-08-21 02:44:50 +08:00
LimitCpuIdMaxval.c UefiCpuPkg: Remove double \r 2019-05-13 08:45:22 +08:00
MachineCheck.c UefiCpuPkg/CpuCommonFeaturesLib: Use new macros. 2019-08-21 02:44:50 +08:00
MonitorMwait.c UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
PendingBreak.c UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
Ppin.c UefiCpuPkg CpuCommonFeaturesLib: Enhance Ppin code 2019-07-16 16:03:51 +08:00
ProcTrace.c UefiCpuPkg CpuCommFeaturesLib: Fix GP fault issue about ProcTrace 2019-06-06 18:51:45 +08:00
X2Apic.c UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00