Installation guide

Chapter 13. SR-IOV
120
pci_0000_0b_10_2
pci_0000_0b_10_3
pci_0000_0b_10_4
pci_0000_0b_10_5
pci_0000_0b_10_6
pci_0000_0b_11_7
pci_0000_0b_11_1
pci_0000_0b_11_2
pci_0000_0b_11_3
pci_0000_0b_11_4
pci_0000_0b_11_5
The serial numbers for the Virtual Functions and Physical Functions should be in the list.
8. Get device details with virsh
The pci_0000_0b_00_0 is one of the Physical Functions and pci_0000_0b_10_0 is the first
corresponding Virtual Function for that Physical Function. Use the virsh nodedev-dumpxml
command to get advanced output for both devices.
<device>
<name>pci_0000_0b_00_0</name>
<parent>pci_0000_00_01_0</parent>
<driver>
<name>igb</name>
</driver>
<capability type='pci'>
<domain>0</domain>
<bus>11</bus>
<slot>0</slot>
<function>0</function>
<product id='0x10c9'>Intel Corporation</product>
<vendor id='0x8086'>82576 Gigabit Network Connection</vendor>
</capability>
</device>
# virsh nodedev-dumpxml pci_0000_0b_10_0
<device>
<name>pci_0000_0b_10_0</name>
<parent>pci_0000_00_01_0</parent>
<driver>
<name>igbvf</name>
</driver>
<capability type='pci'>
<domain>0</domain>
<bus>11</bus>
<slot>16</slot>
<function>0</function>
<product id='0x10ca'>Intel Corporation</product>
<vendor id='0x8086'>82576 Virtual Function</vendor>
</capability>
</device>
This example adds the Virtual Function pci_0000_0b_10_0 to the guest in Step 10. Note the
bus, slot and function parameters of the Virtual Function, these are required for adding the
device.
9. Detach the Virtual Functions
Devices attached to a host cannot be attached to guests. Red Hat Enterprise Linux automatically
attaches new devices to the host. Detach the Virtual Function from the host so that the Virtual
Function can be used by the guest. Detaching the Physical Function causes errors, only detach
the required Virtual Functions.
# virsh nodedev-dettach pci_0000_0b_10_0