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

[Xen-changelog] [linux-2.6.18-xen] Make new PCI device probe work with older hypervisors



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1215435136 -3600
# Node ID da710ff0899a034efa63d330efe9a14c07d50364
# Parent  bb937c2f73823cbf636e6245e9aaf9d703b90da9
Make new PCI device probe work with older hypervisors

Be a bit more forgiving if hypervisor does not implement the
manage_pci_add hypercall.

Signed-off-by: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>
---
 drivers/xen/core/pci.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r bb937c2f7382 -r da710ff0899a 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:52:16 2008 +0100
@@ -19,7 +19,7 @@ static int pci_bus_probe_wrapper(struct 
        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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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