From mboxrd@z Thu Jan 1 00:00:00 1970 From: Espen Skoglund Subject: [PATCH] Make new PCI device probe work with older hypervisors Date: Mon, 7 Jul 2008 13:40:46 +0100 Message-ID: <18546.3791.24322.404685@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Be a bit more forgiving if hyervisor does not implement the manage_pci_add hypercall. Signed-off-by: Espen Skoglund -- 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);