Re: [libvirt] PATCH: Xen PCI device passthrough

2009-04-03 Thread Daniel Veillard
On Mon, Mar 30, 2009 at 03:00:55PM +0100, Daniel P. Berrange wrote: > This patch implements PCI device passthrough for Xen. > > In pci.c there is a fair bit of refactoring to better support both > pcistub.ko and pciback.ko. The latter has two extra sysfs files, > add_slot and remove_slot for assoc

Re: [libvirt] PATCH: Xen PCI device passthrough

2009-03-31 Thread Daniel P. Berrange
On Tue, Mar 31, 2009 at 10:10:14AM +0200, Gerd Hoffmann wrote: > Hi, > > > +static const char * > > +pciFindStubDriver(virConnectPtr conn) > > +{ > > +char drvpath[PATH_MAX]; > > +int probed = 0; > > + > > +recheck: > > +pciDriverDir(drvpath, sizeof(drvpath), "pci-stub"); > > +if

Re: [libvirt] PATCH: Xen PCI device passthrough

2009-03-31 Thread Gerd Hoffmann
Hi, > +static const char * > +pciFindStubDriver(virConnectPtr conn) > +{ > +char drvpath[PATH_MAX]; > +int probed = 0; > + > +recheck: > +pciDriverDir(drvpath, sizeof(drvpath), "pci-stub"); > +if (virFileExists(drvpath)) > +return "pci-stub"; > +pciDriverDir(drvpath,

[libvirt] PATCH: Xen PCI device passthrough

2009-03-30 Thread Daniel P. Berrange
This patch implements PCI device passthrough for Xen. In pci.c there is a fair bit of refactoring to better support both pcistub.ko and pciback.ko. The latter has two extra sysfs files, add_slot and remove_slot for associating the driver with a specific PCI device domain:bus:slot:func address, whe