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

Re: [Xen-devel] [pvops-dom0] [patch] Hook Linux's PCI probe and remove callbacks



On 07/15/09 22:15, Han, Weidong wrote:
> Hijack the pci_bus_type probe and remove callbacks. This option only
> requires modification to the Xen specific part of Linux.
>
> This is useful to add and remove pci device to Xen hypervisor when
> load and remove its driver. For example, when VFs are created by PF,
> they will be added to Xen hypervisor, and then can be assigned to guest.
>
> This patch is based on xen-tip-master branch of jeremy's pv-ops tree.
>   

Yunhong Jiang sent me a version of this patch as part of his MSI work. 
This kind of interception of pci_bus_type.probe is pretty ugly, and is
unlikely to be accepted upstream in this form (the patch may only touch
a Xen file, but it is changing a variable belonging to the PCI
subsystem).  We need to work with the Linux PCI maintainers to find some
other way of achieving what we need here.

Can you explain what the functional requirements are here.  Could we
defer registering the device with Xen until some other convenient hook,
or must it be done at this point in the code?

Thanks,
    J

_______________________________________________
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®.