[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] hvmloader crashed when passthrough bridge device but not intel piix4 acpi pm


  • To: xen-devel <xen-devel@xxxxxxxxxxxxx>
  • From: lcy985a <lcy985a@xxxxxxx>
  • Date: Mon, 17 Jun 2019 18:16:22 +0800 (CST)
  • Delivery-date: Mon, 17 Jun 2019 10:18:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

    When passthrough a PLX PCI9056 PCI to IOBus bridge,
    hvmloader will crashed for it disallow init bridge class pci device
    except intel PIIX4 ACPI PM.
   
    Signed-off-by: Beyond Lee <lcy985a@xxxxxxx>
diff --git a/tools/firmware/hvmloader/pci.c b/tools/firmware/hvmloader/pci.c
index 0b708bf..33aadc7 100644
--- a/tools/firmware/hvmloader/pci.c
+++ b/tools/firmware/hvmloader/pci.c
@@ -189,6 +189,8 @@ void pci_setup(void)
             break;
         case 0x0680:
             /* PIIX4 ACPI PM. Special device with special PCI config space. */
+            if ( (vendor_id == 0x10b5) && (device_id == 0x9056) )
+                break;
             ASSERT((vendor_id == 0x8086) && (device_id == 0x7113));
             pci_writew(devfn, 0x20, 0x0000); /* No smb bus IO enable */
             pci_writew(devfn, 0xd2, 0x0000); /* No smb bus IO enable */


 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.