summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
diff options
context:
space:
mode:
authorAaron <105021049+apop5@users.noreply.github.com>2024-08-01 21:52:48 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-10-14 07:40:44 +0300
commit0d6d87f99485a1a3cfa7e27c74941f0f13beee66 (patch)
treeb4012e5bba7c91ebe5f97953f427a9e49a9f0c20 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
parente95045e3905fe8242cd6cadb278a67f4febe1218 (diff)
downloadedk2-0d6d87f99485a1a3cfa7e27c74941f0f13beee66.tar.xz
UefiCpuPkg: CpuPageTableLib: Fix page table handling for non-present pages
Current page table logic skips the content population when the attribute is RP. This is problematic when a smaller page is marked present from a big non-present page. The remainder of the non-present pages will drop their address and attribute bits. Page table consumers treat such zero entries as unmapped. For example, GetMemoryAttributes of `EDKII_SMM_MEMORY_ATTRIBUTE_PROTOCOL` in PiSmmCpuDxeSmm returns `EFI_UNSUPPORTED` for those ranges instead of reporting EFI_MEMORY_RP. This change adds logic to populate the address and propagate attribute bits for the non-present pages. This was tested on QEMU Q35 platform and booted to OS. Co-authored-by: Kun Qin <kun.qin@microsoft.com> Signed-off-by: Kun Qin <kun.qin@microsoft.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions