Re: [edk2-devel] [PATCH V6 34/42] OvmfPkg: Update PlatformPei to support Tdx guest

2022-02-23 Thread Min Xu
OnFebruary 23, 2022 6:14 PM, Gerd Hoffmann wrote: > > -Pml4Entries = 1 << (mPhysMemAddressWidth - 39); > > +if (TdIsEnabled ()) { > > + Pml4Entries = 0x200; > > +} else { > > + Pml4Entries = 1 << (mPhysMemAddressWidth - 39); > > +} > > With the PlatformAddressWidthInitial

Re: [edk2-devel] [PATCH V6 34/42] OvmfPkg: Update PlatformPei to support Tdx guest

2022-02-23 Thread Gerd Hoffmann
Hi, > -Pml4Entries = 1 << (mPhysMemAddressWidth - 39); > +if (TdIsEnabled ()) { > + Pml4Entries = 0x200; > +} else { > + Pml4Entries = 1 << (mPhysMemAddressWidth - 39); > +} With the PlatformAddressWidthInitialization() update in patch #33 it should not be needed to sp

[edk2-devel] [PATCH V6 34/42] OvmfPkg: Update PlatformPei to support Tdx guest

2022-02-19 Thread Min Xu
RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429 OvmfPkg/PlatformPei is updated to support Tdx guest. There are below major changes. - Set Tdx related PCDs - Build Tdx PlatformInfoHob - Publish Tdx RamRegions Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Brijesh Singh Cc: Erdem Aktas Cc