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 <dun....@intel.com> > Cc: Eric Dong <eric.d...@intel.com> > Cc: Ray Ni <ray...@intel.com> > Cc: Rahul Kumar <rahul1.ku...@intel.com> > Cc: Gerd Hoffmann <kra...@redhat.com> > Cc: Laszlo Ersek <ler...@redhat.com> > --- > 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 <ler...@redhat.com> -=-=-=-=-=-=-=-=-=-=-=- 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: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/9847357/21656/1706620634/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-