Hmm, I guess we should move the pcd then so it cam be used more widely.Calling CPUID should not be needed, we have a new fancyThe gUefiCpuPkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr is defined in UefiCpuPkg. While BaseIoLibIntrinsicSev is in MdePkg.
Confidential computing has an impact beyond just cpu, it's also memory,
io and more.
That'll work too, I don't care much about the ordering.Maybe that's something to cleanup for amd (Brijesh?) beforehand, so theTdx patches can first use above structure. AMD can update it later. Either way is ok.