audk/UefiCpuPkg/CpuMpPei
Zhiguang Liu c10e5703fe UefiCpuPkg/CpuMpPei: Don't write CR3 in ConvertMemoryPageToNotPresent
The purpose of writing CR3 in ConvertMemoryPageToNotPresent is just
to flush TLB, because CR3 won't be changed in function
ConvertMemoryPageToNotPresent.
After ConvertMemoryPageToNotPresent, there is always a flush TLB
function. Also, because ConvertMemoryPageToNotPresent in called in a
loop, to improve performance, there is no need to flush TLB
inside ConvertMemoryPageToNotPresent. Just flushing TLB after the loop
is enough.

Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
2024-02-22 03:28:55 +00:00
..
CpuBist.c UefiCpuPkg: Fix conditionally uninitialized variables 2023-04-03 15:29:08 +00:00
CpuMp2Pei.c UefiCpuPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CpuMpPei.c UefiCpuPkg: change name of gMpInformationHobGuid2 2024-01-15 01:46:36 +00:00
CpuMpPei.h UefiCpuPkg: Cache core type in MpInfo2 HOB 2023-12-12 01:37:41 +00:00
CpuMpPei.inf UefiCpuPkg: change name of gMpInformationHobGuid2 2024-01-15 01:46:36 +00:00
CpuMpPei.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
CpuMpPeiExtra.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
CpuPaging.c UefiCpuPkg/CpuMpPei: Don't write CR3 in ConvertMemoryPageToNotPresent 2024-02-22 03:28:55 +00:00