audk/UefiCpuPkg/Library/MpInitLib
Jian J Wang 199de89677 UefiCpuPkg/MpInitLib: force flushing TLB for AP in mwait loop mode
The reason doing this is that we found that calling StartupAllAps() to
flush TLB for all APs in CpuDxe driver after changing page attributes
will spend a lot of time to complete. If there are many page attributes
update requests, the whole system performance will be slowed down
explicitly, including any shell command and UI operation.

The solution is removing the flush operation for AP in CpuDxe driver.
Since TLB is always flushed in HLT loop mode, we just need to enforce
a TLB flush for mwait loop mode.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
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: Ruiyu Ni <ruiyu.ni@intel.com>
2018-01-29 09:37:41 +08:00
..
Ia32 UefiCpuPkg/MpInitLib: split wake up buffer into two parts 2018-01-18 17:03:22 +08:00
X64 UefiCpuPkg/MpInitLib: split wake up buffer into two parts 2018-01-18 17:03:22 +08:00
DxeMpInitLib.inf UefiCpuPkg/MpInitLib: Add missing Guard page setup for APs 2017-12-22 14:16:51 +08:00
DxeMpInitLib.uni UefiCpuPkg/MpInitLib: Add two instances PeiMpInitLib and DxeMpInitLib 2016-08-17 19:58:07 +08:00
DxeMpLib.c UefiCpuPkg/MpInitLib: split wake up buffer into two parts 2018-01-18 17:03:22 +08:00
Microcode.c UefiCpuPkg/MpInitLib: Avoid call PcdGet* in Ap & Bsp. 2017-10-20 10:30:46 +08:00
MpLib.c UefiCpuPkg/MpInitLib: force flushing TLB for AP in mwait loop mode 2018-01-29 09:37:41 +08:00
MpLib.h UefiCpuPkg/MpInitLib: fix issue in wakeup buffer initialization 2018-01-25 10:24:21 +08:00
PeiMpInitLib.inf UefiCpuPkg/MpInitLib: needn't to allocate AP reset vector 2017-04-26 08:55:44 +08:00
PeiMpInitLib.uni UefiCpuPkg/MpInitLib: Add two instances PeiMpInitLib and DxeMpInitLib 2016-08-17 19:58:07 +08:00
PeiMpLib.c UefiCpuPkg/PeiMpLib: Fix a system hang-in-pei issue. 2018-01-24 11:07:22 +08:00