The patch set refines the original CR2 save/restore logic by adding a new internal function IsStaticPageTableEnabled() because now there are two use cases that need to conditionally do something based on whether static page table is enabled. Based on the refine, the patch changes the policy to allow SMM access out when static paging is OFF.
Ray Ni (3): UefiCpuPkg/PiSmmCpu: Add Internal function IsStaticPageTableEnabled UefiCpuPkg/PiSmmCpu: Refine CR2 save/restore logic UefiCpuPkg/PiSmmCpu: Allow SMM access-out when static paging is OFF UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/PageTbl.c | 41 ++++++++------------ UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 8 +++- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 21 +++++++--- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 27 +++++-------- UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c | 45 ++++++++-------------- 5 files changed, 63 insertions(+), 79 deletions(-) -- 2.21.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#44467): https://edk2.groups.io/g/devel/message/44467 Mute This Topic: https://groups.io/mt/32616000/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-