WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Make new PCI device probe work with older hypervisor

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Make new PCI device probe work with older hypervisors
From: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>
Date: Mon, 7 Jul 2008 13:40:46 +0100
Delivery-date: Mon, 07 Jul 2008 05:41:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Be a bit more forgiving if hyervisor does not implement the
manage_pci_add hypercall.

Signed-off-by: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>

--
diff -r bb937c2f7382 drivers/xen/core/pci.c
--- a/drivers/xen/core/pci.c    Fri Jul 04 17:55:07 2008 +0100
+++ b/drivers/xen/core/pci.c    Mon Jul 07 13:34:32 2008 +0100
@@ -19,7 +19,7 @@
        manage_pci.devfn = pci_dev->devfn;
 
        r = HYPERVISOR_physdev_op(PHYSDEVOP_manage_pci_add, &manage_pci);
-       if (r)
+       if (r && r != -ENOSYS)
                return r;
 
        r = pci_bus_probe(dev);

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel