Rely on CcProbe() to identify when running on TDX so that ACPI tables can be retrieved differently for Cloud Hypervisor. Instead of relying on the PVH structure to find the RSDP pointer, the tables are individually passed through the HOB. Signed-off-by: Jiaqi Gao <jiaqi.gao@intel.com> 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>
68 lines
1.7 KiB
INI
68 lines
1.7 KiB
INI
## @file
|
|
# OVMF ACPI Platform Driver
|
|
#
|
|
# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = QemuFwCfgAcpiPlatform
|
|
FILE_GUID = 17985e6f-e778-4d94-aefa-c5dd2b77e186
|
|
MODULE_TYPE = DXE_DRIVER
|
|
VERSION_STRING = 1.0
|
|
ENTRY_POINT = AcpiPlatformEntryPoint
|
|
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
|
|
#
|
|
|
|
[Sources]
|
|
AcpiPlatform.c
|
|
AcpiPlatform.h
|
|
BootScript.c
|
|
CloudHvAcpi.c
|
|
EntryPoint.c
|
|
PciDecoding.c
|
|
QemuFwCfgAcpi.c
|
|
|
|
[Packages]
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
MdePkg/MdePkg.dec
|
|
OvmfPkg/OvmfPkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
BaseMemoryLib
|
|
DebugLib
|
|
MemoryAllocationLib
|
|
OrderedCollectionLib
|
|
PcdLib
|
|
QemuFwCfgLib
|
|
QemuFwCfgS3Lib
|
|
UefiBootServicesTableLib
|
|
UefiDriverEntryPoint
|
|
HobLib
|
|
CcProbeLib
|
|
|
|
[Protocols]
|
|
gEfiAcpiTableProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
|
gEfiPciIoProtocolGuid # PROTOCOL SOMETIMES_CONSUMED
|
|
gQemuAcpiTableNotifyProtocolGuid # PROTOCOL PRODUCES
|
|
|
|
[Guids]
|
|
gRootBridgesConnectedEventGroupGuid
|
|
gUefiOvmfPkgTdxAcpiHobGuid
|
|
|
|
[Pcd]
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdXenPvhStartOfDayStructPtr
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdXenPvhStartOfDayStructPtrSize
|
|
|
|
[Depex]
|
|
gEfiAcpiTableProtocolGuid
|