[edk2-devel] [PATCH V3 7/8] OvmfPkg: Update DxeAcpiTimerLib to read HostBridgeDevId in PlatformInfoHob

Min Xu min.m.xu at intel.com
Thu Feb 24 02:12:54 UTC 2022


On February 23, 2022 7:04 PM, Gerd Hoffmann wrote:
> 
> >    //
> >    // Query Host Bridge DID to determine platform type
> > +  // Tdx guest stores the HostBridgePciDevId in a GuidHob.
> > +  // So we first check if this HOB exists
> >    //
> > -  HostBridgeDevId = PcdGet16 (PcdOvmfHostBridgePciDevId);
> > +  GuidHob = GetFirstGuidHob (&gUefiOvmfPkgTdxPlatformGuid);  if
> > + (GuidHob != NULL) {
> > +    PlatformInfo    = (EFI_HOB_PLATFORM_INFO *)GET_GUID_HOB_DATA
> (GuidHob);
> > +    HostBridgeDevId = PlatformInfo->HostBridgePciDevId;  } else {
> > +    HostBridgeDevId = PcdGet16 (PcdOvmfHostBridgePciDevId);  }
> 
> Another thing we can probably simplify when we use a PlatformInfoHob in
> both PEi and PEI-less mode.
Agree.
> 
> > +[Guids]
> > +  gUefiOvmfPkgTdxPlatformGuid                      ## CONSUMES
> 
> name this UefiOvmfPkgPlatformInfoGuid ?
Sure. Thanks for the suggestion. It will be renamed in the next version.

Thanks
Min


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#86942): https://edk2.groups.io/g/devel/message/86942
Mute This Topic: https://groups.io/mt/89266123/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list