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/
Home Products Support Community News


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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] Make new PCI device probe work with older hypervisors
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 07 Jul 2008 10:40:10 -0700
Delivery-date: Mon, 07 Jul 2008 10:39:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] Make new PCI device probe work with older hypervisors, Xen patchbot-linux-2.6.18-xen <=