Installation guide

The pci_8086_10c9 is one of the Physical Functions and pci_8086_10ca_0 is the first
corresponding Virtual Function for that Physical Function. Use the virsh nodedev-
dumpxml command to get advanced output for both devices.
# virsh nodedev-dumpxml pci_8086_10ca
# virsh nodedev-dumpxml pci_8086_10ca_0
<device>
<name>pci_8086_10ca_0</name>
<parent>pci_8086_3408</parent>
<driver>
<name>igbvf</name>
</driver>
<capability type='pci'>
<domain>0</domain>
<bus>3</bus>
<slot>16</slot>
<function>1</function>
<product id='0x10ca'>82576 Virtual Function</product>
<vendor id='0x8086'>Intel Corporation</vendor>
</capability>
</device>
This example adds the Virtual Function pci_8086_10ca_0 to the guest in Step 8. Note the
bus, slot and function parameters of the Virtual Function, these are required for adding
the device.
8.
Ad d t h e Virt u al Fun ct io n t o t h e g u est
a. Shut down the guest.
b. Use the output from the virsh nodedev-dumpxml pci_8086_10ca_0 command to
calculate the values for the configuration file. Convert slot and function values to
hexadecimal values (from decimal) to get the PCI bus addresses. Append "0x" to the
beginning of the output to tell the computer that the value is a hexadecimal number.
The example device has the following values: bus = 3, slot = 16 and function = 1. Use
the printf utility to convert decimal values to hexadecimal values.
$ printf %x 3
3
$ printf %x 16
10
$ printf %x 1
1
This example would use the following values in the configuration file:
bus='0x03'
slot='0x10'
function='0x01'
c. Open the XML configuration file with the virsh edit command. This example edits a
guest named MyGuest.
# virsh edit MyGuest
Chapt er 1 6 . SR- IO V
207