ia64/linux-2.6.18-xen.hg

changeset 594:da710ff0899a

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@netronome.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Jul 07 13:52:16 2008 +0100 (2008-07-07)
parents bb937c2f7382
children 92247f7e5d8a
files drivers/xen/core/pci.c
line diff
     1.1 --- a/drivers/xen/core/pci.c	Fri Jul 04 17:55:07 2008 +0100
     1.2 +++ b/drivers/xen/core/pci.c	Mon Jul 07 13:52:16 2008 +0100
     1.3 @@ -19,7 +19,7 @@ static int pci_bus_probe_wrapper(struct 
     1.4  	manage_pci.devfn = pci_dev->devfn;
     1.5  
     1.6  	r = HYPERVISOR_physdev_op(PHYSDEVOP_manage_pci_add, &manage_pci);
     1.7 -	if (r)
     1.8 +	if (r && r != -ENOSYS)
     1.9  		return r;
    1.10  
    1.11  	r = pci_bus_probe(dev);