OvmfPkg/XenPlatformPei: Ignore missing PCI Host Bridge on Xen PVH

When the device ID of the host bridge is unknown, check if we are
running as a PVH guest as there is no PCI bus in that case.

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1689
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20190813113119.14804-26-anthony.perard@citrix.com>
This commit is contained in:
Anthony PERARD 2019-08-13 12:31:09 +01:00 committed by Laszlo Ersek
parent 77d35f5008
commit 198a8dc9cd
1 changed files with 6 additions and 0 deletions

View File

@ -283,6 +283,12 @@ MiscInitialization (
AcpiEnBit = ICH9_ACPI_CNTL_ACPI_EN;
break;
default:
if (XenPvhDetected ()) {
//
// There is no PCI bus in this case
//
return;
}
DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",
__FUNCTION__, mHostBridgeDevId));
ASSERT (FALSE);