Installation guide
Each PCI device is identified by a string in the following format (where 8086 is a variable that
in this case represents Intel equipment, and **** is a four digit hexadecimal code specific to
each device):
pci_8086_****
Note
Comparing lspci output to lspci -n (which turns off name resolution) output can
assist in deriving which device has which device identifier code.
Record the PCI device number; the number is needed in other steps.
2. Information on the domain, bus and function are available from output of the virsh
nodedev-dumpxml command:
# virsh nodedev-dumpxml pci_8086_3a6c
<device>
<name>pci_8086_3a6c</name>
<parent>computer</parent>
<capability type='pci'>
<domain>0</domain>
<bus>0</bus>
<slot>26</slot>
<function>7</function>
<id='0x3a6c'>82801JD/DO (ICH10 Family) USB2 EHCI Controller #2</product>
<vendor id='0x8086'>Intel Corporation</vendor>
</capability>
</device>
3. Detach the device from the system. Attached devices cannot be used and may cause various
errors if connected to a guest without detaching first.
# virsh nodedev-dettach pci_8086_3a6c
Device pci_8086_3a6c dettached
4. 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.
For example, if bus = 0, slot = 26 and function = 7 run the following:
$ printf %x 0
0
$ printf %x 26
1a
$ printf %x 7
7
The values to use:
bus='0x00'
slot='0x1a'
function='0x7'
5.
Red Hat En t erp rise Lin ux 5 Virt ualizat ion Guid e
194