]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/PlatformInitLib: Differentiate TDX case for Cloud Hypervisor
authorSebastien Boeuf <sebastien.boeuf@intel.com>
Thu, 15 Dec 2022 15:10:02 +0000 (23:10 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 16 Dec 2022 02:37:56 +0000 (02:37 +0000)
commite03b0d06726c0a2c3fa4a6aff43a8c584172767b
tree715d81dc8caa4c11a301728cb49409f8d9ef88a3
parent0adc35fccd59c8c5171273319ec899aa48fc2c35
OvmfPkg/PlatformInitLib: Differentiate TDX case for Cloud Hypervisor

Rely on the CcProbe() function to identify when running on TDX. This
allows the firmware to follow a different codepath for Cloud Hypervisor,
which means it doesn't rely on PVH to find out about memory below 4GiB.
instead it falls back onto the CMOS to retrieve that information.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Reviewed-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
OvmfPkg/Library/PlatformInitLib/MemDetect.c