ba20254888
The only remaining part is querying vm-side BDF. That can't be done in libvirt.
11 lines
265 B
XML
11 lines
265 B
XML
<hostdev type="pci" managed="yes">
|
|
<source>
|
|
<address
|
|
bus="0x{{ device.bus }}"
|
|
slot="0x{{ device.device }}"
|
|
function="0x{{ device.function }}" />
|
|
</source>
|
|
</hostdev>
|
|
|
|
{# vim : set ft=jinja ts=4 sts=4 sw=4 et : #}
|