diff options
author | Dun Tan <dun.tan@intel.com> | 2023-04-07 15:42:00 +0800 |
---|---|---|
committer | Ray Ni <ray.ni@intel.com> | 2023-06-30 11:07:40 +0530 |
commit | f51967280bcad35ba15faf8bd24df8a86052ce49 (patch) | |
tree | 9c0aa1daeb6ce14ef2e39e99251f3a8aad3f367e /StandaloneMmPkg | |
parent | 6585ced55858fbab7c2dda8e61b0de99cb891ec9 (diff) | |
download | edk2-f51967280bcad35ba15faf8bd24df8a86052ce49.tar.gz edk2-f51967280bcad35ba15faf8bd24df8a86052ce49.tar.bz2 edk2-f51967280bcad35ba15faf8bd24df8a86052ce49.zip |
UefiCpuPkg/PiSmmCpuDxeSmm: Avoid setting non-present range to RO/NX
In PiSmmCpuDxeSmm code, SetMemMapAttributes() marks memory ranges
in SmmMemoryAttributesTable to RO/NX. There may exist non-present
range in these memory ranges. Set other attributes for a non-present
range is not permitted in CpuPageTableMapLib. So add code to handle
this case. Only map the present ranges in SmmMemoryAttributesTable
to RO or 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 'StandaloneMmPkg')
0 files changed, 0 insertions, 0 deletions