From b70c4d07f35df5c5acdb87b11dabaac53288ea03 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Thu, 19 Feb 2015 23:45:42 +0000 Subject: [PATCH] OvmfPkg/AcpiPlatformDxe: FindAcpiTablesInFv => InstallOvmfFvTables Since this function also installs the tables, this is a better name. It also aligns with the InstallXenTables name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16883 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c b/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c index 331cdc4050..3632d84375 100644 --- a/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c +++ b/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c @@ -130,14 +130,20 @@ LocateFvInstanceWithTables ( /** - Find ACPI tables in an FV and parses them. This function is useful for QEMU and KVM. + Find ACPI tables in an FV and install them. + + This is now a fall-back path. Normally, we will search for tables provided + by the VMM first. + + If that fails, we use this function to load the ACPI tables from an FV. The + sources for the FV based tables is located under OvmfPkg/AcpiTables. @param AcpiTable Protocol instance pointer **/ EFI_STATUS EFIAPI -FindAcpiTablesInFv ( +InstallOvmfFvTables ( IN EFI_ACPI_TABLE_PROTOCOL *AcpiTable ) { @@ -259,7 +265,7 @@ AcpiPlatformEntryPoint ( } if (EFI_ERROR (Status)) { - Status = FindAcpiTablesInFv (AcpiTable); + Status = InstallOvmfFvTables (AcpiTable); } return Status;