]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/PiSmmCpu: Allow SMM access-out when static paging is OFF
authorNi, Ray <ray.ni@intel.com>
Thu, 18 Jul 2019 06:58:07 +0000 (14:58 +0800)
committerRay Ni <ray.ni@intel.com>
Fri, 26 Jul 2019 06:55:47 +0000 (14:55 +0800)
commit30f6148546c7092650ab4886fc6d95d5065c3188
tree63e02fc8c84876b165f22c05fe66a29b80528f2e
parent520a1e60de4341f55c59cf4680d6d0242a7f929f
UefiCpuPkg/PiSmmCpu: Allow SMM access-out when static paging is OFF

Commit c60d36b4d1ee1f69b7cca897d3621dfa951895c2
* UefiCpuPkg/SmmCpu: Block access-out only when static paging is used

updated page fault handler to treat SMM access-out as allowed
address when static paging is not used.

But that commit is not complete because the page table is still
updated in SetUefiMemMapAttributes() for non-SMRAM memory. When SMM
code accesses non-SMRAM memory, page fault is still generated.

This patch skips to update page table for non-SMRAM memory and
page table itself.

Signed-off-by: Ray Ni <ray.ni@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c