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

Re: [Xen-devel] [PATCH] Make new PCI device probe work with older hypervisors


  • To: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
  • Date: Mon, 07 Jul 2008 13:55:58 +0100
  • Cc:
  • Delivery-date: Mon, 07 Jul 2008 05:56:22 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcjgMMzaC3qpDkwkEd2QRgAX8io7RQ==
  • Thread-topic: [Xen-devel] [PATCH] Make new PCI device probe work with older hypervisors

Thanks. One thing also -- do old dom0 kernels work with new Xen (i.e., do we
have compatibility both ways)?

 -- Keir

On 7/7/08 13:40, "Espen Skoglund" <espen.skoglund@xxxxxxxxxxxxx> wrote:

> Be a bit more forgiving if hyervisor does not implement the
> manage_pci_add hypercall.
> 
> Signed-off-by: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>
> 
> --
> 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);
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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