]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/AcpiPlatformDxe: Check PcdConfidentialComputingGuestAttr
authorMin M Xu <min.m.xu@intel.com>
Thu, 22 Dec 2022 13:11:55 +0000 (21:11 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 22 Dec 2022 13:35:44 +0000 (13:35 +0000)
commit8cb4b429a251cd95d43e50bcba51072be9295373
tree17b7828f55432bfe6d4fc95f482da10b6bd35334
parentec87305f90d90096aac2a4d91e3f6556e2ecd6b9
OvmfPkg/AcpiPlatformDxe: Check PcdConfidentialComputingGuestAttr

PcdConfidentialComputingGuestAttr can be used to check the cc guest
type, including td-guest or sev-guest. CcProbe() can do the same
thing but CcProbeLib should be included in the dsc which uses
AcpiPlatformDxe. The difference between PcdConfidentialComputingGuestAttr
and CcProbe() is that PcdConfidentialComputingGuestAttr cannot be used
in multi-processor scenario but CcProbe() can. But there is no such
issue in AcpiPlatformDxe.

So we use PcdConfidentialComputingGuestAttr instead of CcProbeLib so that
it is simpler.

Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c
OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf