Re: [edk2-devel] [PATCH V3 4/8] OvmfPkg: Add TdxStartupLib

2022-02-23 Thread Gerd Hoffmann
Hi, > > Beside that: The name TdxStartupLib doesn't reflect reality any more, we > > should give it a better name. > How about PeilessStartupLib? Don't like it too much, but don't have a better idea. In any case clearly better than TdxStartupLib. take care, Gerd -=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [PATCH V3 4/8] OvmfPkg: Add TdxStartupLib

2022-02-23 Thread Min Xu
On February 23, 2022 6:50 PM, Gerd Hoffmann wrote: > > > +EFI_STATUS > > +EFIAPI > > +InitializePlatform ( > > + EFI_HOB_PLATFORM_INFO *PlatformInfoHob > > + ) > > +{ > > > + Pci64Base = 0; > > + Pci64Size = 0; > > + > > + FirstNonAddress = PlatformGetFirstNonAddress > >

Re: [edk2-devel] [PATCH V3 4/8] OvmfPkg: Add TdxStartupLib

2022-02-23 Thread Gerd Hoffmann
> +EFI_STATUS > +EFIAPI > +InitializePlatform ( > + EFI_HOB_PLATFORM_INFO *PlatformInfoHob > + ) > +{ > + Pci64Base = 0; > + Pci64Size = 0; > + > + FirstNonAddress = PlatformGetFirstNonAddress > (&Pci64Base, &Pci64Size, 0x8); > + PlatformInfoHob->PcdPciMmio64Base

[edk2-devel] [PATCH V3 4/8] OvmfPkg: Add TdxStartupLib

2022-02-19 Thread Min Xu
RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 TdxStarupLib provides a function (TdxStartup ()) which brings up both Legacy and Tdx guest from SEC phase to DXE phase. PEI phase is skipped so that the attack surfaces are reduced as much as possible. TdxStartup() does below tasks: 1. Cont