All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Make new PCI device probe work with older hypervisors
@ 2008-07-07 12:40 Espen Skoglund
  2008-07-07 12:55 ` Keir Fraser
  0 siblings, 1 reply; 9+ messages in thread
From: Espen Skoglund @ 2008-07-07 12:40 UTC (permalink / raw)
  To: xen-devel

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

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

--
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);

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-07-07 15:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-07 12:40 [PATCH] Make new PCI device probe work with older hypervisors Espen Skoglund
2008-07-07 12:55 ` Keir Fraser
2008-07-07 13:54   ` Espen Skoglund
2008-07-07 14:37     ` Keir Fraser
2008-07-07 14:54       ` Espen Skoglund
2008-07-07 14:57         ` Keir Fraser
2008-07-07 15:04           ` Espen Skoglund
2008-07-07 15:07             ` Keir Fraser
2008-07-07 15:11               ` Espen Skoglund

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.