On October 12, 2021 6:32 PM, Gerd Hoffman wrote: > Hi, > > > + do { > > + AsmCpuid (0, &LargestEax, &Ebx, &Ecx, &Edx); > > Again: this should use PCD. ConfidentialComputing PCD is set in PlatformPei. So any check of this PCD should be after PlatformPei. MpInitLib will be included in CpuMpPei. So if PCD is checked in MpInitLib, then we must assume CpuMpPei is called after PlatformPei. In current OVMF, CpuMpPei is called after PlatforPei. But I am not sure if it is always the case. Can we have such assumption? Based on above consideration, CPUID is used to probe if it is Tdx guest. > > take care, > Gerd > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#81927): https://edk2.groups.io/g/devel/message/81927 Mute This Topic: https://groups.io/mt/86085743/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-