[libvirt] patch for pci passthrough
Jason Krieg
jason.krieg at collax.com
Tue Dec 16 02:02:11 UTC 2008
Hi,
This patch adds support for the -pcidevice host=bus:dev.func
added in kvm-79
I used the structure as already defined in src/domain_conf.h
so analog to usb one now can add pci devices
as example:
lspci: 06:02.0 Network controller: Eicon Networks Corporation Diva
Server 2FX (rev 01)
<hostdev mode='subsystem' type='pci'>
<source>
<address bus="0x06" slot="0x02" function="0x0"/>
</source>
</hostdev>
values are hex so for bus: 0 to ff, slot: 0 to 1f and function: 0 to 7
Hope this patch is useful it applies to libvirt-0.5.1 and cvs checkout
from today (with some hunks)
Regards Jason
--
Collax GmbH . Burkheimer Str. 3 . 79111 Freiburg . Germany
p: +49 (0) 89-990157-0
f: +49 (0) 89-990157-11 . http://www.collax.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pci-passthrough.patch
Type: text/x-diff
Size: 8333 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081216/9e578a3a/attachment-0001.bin>
More information about the libvir-list
mailing list