audk/UefiCpuPkg/CpuDxe
Jian J Wang 0dbb0f1a5c UefiCpuPkg/CpuDxe: fix bad boot performance
If features like memory profile, protection and heap guard are enabled,
a lot of more memory page attributes update actions will happen than
usual. An unnecessary sync of CR0.WP setting among APs will then cause
worse performance in memory allocation action. Removing the calling of
SyncMemoryPageAttributesAp() in function DisableReadOnlyPageWriteProtect
and EnableReadOnlyPageWriteProtect can fix this problem. In DEBUG build
case, the boot performance can be boosted from 11 minute to 6 minute.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
2018-01-19 14:16:12 +08:00
..
Ia32 UefiCpuPkg/CpuDxe: Remove unused codes and files 2016-08-17 20:07:07 +08:00
X64 UefiCpuPkg/CpuDxe: Remove unused codes and files 2016-08-17 20:07:07 +08:00
CpuDxe.c UefiCpuPkg/CpuDxe: Enable protection for newly added page table 2017-12-12 10:14:51 +08:00
CpuDxe.h UefiCpuPkg/CpuDxe: Enable protection for newly added page table 2017-12-12 10:14:51 +08:00
CpuDxe.inf UefiCpuPkg/CpuDxe: Initialize stack switch for MP 2017-12-08 14:38:50 +08:00
CpuDxe.uni UefiCpuPkg/CpuDxe: Consume MpInitLib to produce CPU MP Protocol services 2016-08-17 20:06:56 +08:00
CpuDxeExtra.uni UefiCpuPkg/CpuDxe: Consume MpInitLib to produce CPU MP Protocol services 2016-08-17 20:06:56 +08:00
CpuGdt.c UefiCpuPkg: CpuDxe: Update GDT to be consistent with DxeIplPeim 2015-10-30 17:32:27 +00:00
CpuGdt.h UefiCpuPkg: CpuDxe: Update GDT to be consistent with DxeIplPeim 2015-10-30 17:32:27 +00:00
CpuMp.c UefiCpuPkg/CpuDxe: suppress invalid warning about uninitialized variable 2017-12-13 11:37:11 +08:00
CpuMp.h UefiCpuPkg CpuDxe: Update return status to follow spec. 2017-07-07 08:54:10 +08:00
CpuPageTable.c UefiCpuPkg/CpuDxe: fix bad boot performance 2018-01-19 14:16:12 +08:00
CpuPageTable.h UefiCpuPkg/CpuDxe: Enable protection for newly added page table 2017-12-12 10:14:51 +08:00