On 11/17/23 10:39, duntan wrote: > Copy MpInformation.h and gMpInformationHobGuid to > UefiCpuPkg. > Previously, the HOB is defined, created and consumed > only in StandaloneMmPkg. The HOB contains the number > of processors and EFI_PROCESSOR_INFORMATION structure. > This is the same as the information that PiSmmCpuDxeSmm > uses EfiMpServiceProtocolGuid to get. > The incoming plan is to create gMpInformationHobGuid > for both StandaloneMm and legacy DXE_SMM in early > phase. Then PiSmmCpuDxeSmm can consume the hob, which can > simplified code logic about consuming MpService Protocol. > So move this HOB definition to UefiCpuPkg. > > Signed-off-by: Dun Tan <[email protected]> > Cc: Eric Dong <[email protected]> > Cc: Ray Ni <[email protected]> > Cc: Rahul Kumar <[email protected]> > Cc: Gerd Hoffmann <[email protected]> > Cc: Laszlo Ersek <[email protected]> > --- > UefiCpuPkg/Include/Guid/MpInformation.h | 39 > +++++++++++++++++++++++++++++++++++++++ > UefiCpuPkg/UefiCpuPkg.dec | 3 +++ > 2 files changed, 42 insertions(+) > > diff --git a/UefiCpuPkg/Include/Guid/MpInformation.h > b/UefiCpuPkg/Include/Guid/MpInformation.h > new file mode 100644 > index 0000000000..29da80d4df > --- /dev/null > +++ b/UefiCpuPkg/Include/Guid/MpInformation.h > @@ -0,0 +1,39 @@ > +/** @file > + EFI MP information protocol provides a lightweight MP_SERVICES_PROTOCOL. > + > + MP information protocol only provides static information of MP processor. > + > + If SwitchBSP or Enable/DisableAP in MP service is called between the HOB > + production and HOB consumption, EFI_PROCESSOR_INFORMATION.StatusFlag and > + NumberOfEnabledProcessors fields in this HOB may be invalidated.
Thanks for the update. Acked-by: Laszlo Ersek <[email protected]> -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111410): https://edk2.groups.io/g/devel/message/111410 Mute This Topic: https://groups.io/mt/102644630/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/leave/9847357/21656/1706620634/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
