]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/XenPlatformPei: Ignore missing PCI Host Bridge on Xen PVH
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 13 Aug 2019 11:31:09 +0000 (12:31 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 21 Aug 2019 16:03:49 +0000 (18:03 +0200)
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>

OvmfPkg/XenPlatformPei/Platform.c

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