[fedora-virt] Re: <Hostdevice> parameters
Daniel P. Berrange
berrange at redhat.com
Thu Oct 8 20:58:36 UTC 2009
On Wed, Oct 07, 2009 at 01:17:06PM +0200, Andr?s Garc?a wrote:
>
> >
> ><hostdev mode='subsystem' type='sub'>
> ><source>
> ><address bus='0x06' slot='0x02' function='0x0'/>
> ></source>
> ></hostdev>
> >
> >'bus' and 'slot' I can get with 'lsusb', but what does 'function' mean?
> >
> >
> >
> Looking it up in the libvirt sources, it appears to be used only for pci
> devices.
For USB passthrough, you want
<hostdev mode='subsystem' type='usb'>
<source>
<address bus='0x01' device='0x02' />
</source>
</hostdev>
The bus/slot/domain/function style is for PCI device addressing.
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
More information about the Fedora-virt
mailing list