diff options
author | Dun Tan <dun.tan@intel.com> | 2023-05-15 18:06:38 +0800 |
---|---|---|
committer | Ray Ni <ray.ni@intel.com> | 2023-06-30 11:07:40 +0530 |
commit | 4ceefd6dd1334e815d9e8393b727cecfaf441a1f (patch) | |
tree | 0d5c7ce830b3214925b0341a0a51b3d906d5cf10 /UefiCpuPkg/PiSmmCpuDxeSmm/X64 | |
parent | b4394cca2dbe41f6adca06d600b330b3a8d7e0fc (diff) | |
download | edk2-4ceefd6dd1334e815d9e8393b727cecfaf441a1f.tar.gz edk2-4ceefd6dd1334e815d9e8393b727cecfaf441a1f.tar.bz2 edk2-4ceefd6dd1334e815d9e8393b727cecfaf441a1f.zip |
UefiCpuPkg: Refinement to smm runtime InitPaging() code
This commit is code refinement to current smm runtime InitPaging()
page table update code. In InitPaging(), if PcdCpuSmmProfileEnable
is TRUE, use ConvertMemoryPageAttributes() API to map the range in
mProtectionMemRange to the attrbute recorded in the attribute field
of mProtectionMemRange, map the range outside mProtectionMemRange
as non-present. If PcdCpuSmmProfileEnable is FALSE, only need to
set the ranges not in mSmmCpuSmramRanges as NX.
Signed-off-by: Dun Tan <dun.tan@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'UefiCpuPkg/PiSmmCpuDxeSmm/X64')
0 files changed, 0 insertions, 0 deletions