]> git.proxmox.com Git - mirror_edk2.git/commit - UefiCpuPkg/CpuDxe/CpuPageTable.c
UefiCpuPkg/CpuDxe: remove all code to flush TLB for APs
authorJian J Wang <jian.j.wang@intel.com>
Mon, 29 Jan 2018 01:26:31 +0000 (09:26 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Mon, 29 Jan 2018 01:37:41 +0000 (09:37 +0800)
commit41a9c3fd110bed93c4fdf088eea18412bb2dfcde
treefc280129447d240ca1681a88eeb3c37cd0c4842f
parent199de89677deffffff30eda7ad17793b30042cce
UefiCpuPkg/CpuDxe: remove all code to flush TLB for APs

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
and let AP flush TLB after woken up.

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>
UefiCpuPkg/CpuDxe/CpuPageTable.c