]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg: Extend SMM CPU Service with rendezvous support.
authorLi, Zhihao <zhihao.li@intel.com>
Tue, 1 Mar 2022 11:22:19 +0000 (19:22 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 4 Mar 2022 05:44:42 +0000 (05:44 +0000)
commit4a68176cb548902cad93e6ebb5957d0cac94d297
treedb78f666a4d37560383070c2726067ce30be0dd3
parentb83d0a6438f24ba3c6234d9b7593be6f2246ec1e
UefiCpuPkg: Extend SMM CPU Service with rendezvous support.

REF? https://bugzilla.tianocore.org/show_bug.cgi?id=3815

This patch define a new Protocol with the new services
SmmWaitForAllProcessor(), which can be used by SMI handler
to optionally wait for other APs to complete SMM rendezvous in
relaxed AP mode.

A new library SmmCpuRendezvousLib is provided to abstract the service
into library API to simple SMI handler code.

Cc: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Zhihao Li <zhihao.li@intel.com>
Signed-off-by: Zhihao Li <zhihao.li@intel.com>
UefiCpuPkg/Include/Library/SmmCpuRendezvousLib.h [new file with mode: 0644]
UefiCpuPkg/Include/Protocol/SmmCpuService.h
UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.c [new file with mode: 0644]
UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf [new file with mode: 0644]
UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c
UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
UefiCpuPkg/UefiCpuPkg.dec
UefiCpuPkg/UefiCpuPkg.dsc