$ virsh nodedev-list --tree
+- pci_0000_00_02_2
| |
| +- pci_0000_06_00_2
| | |
| | +- net_enp6s0f0v0_52_54_00_8e_a4_14
| | +- vdpa_vdpa0
$ virsh nodedev-dumpxml pci_0000_06_00_0
<device>
<name>pci_0000_06_00_0</name>
<path>/sys/devices/pci0000:00/0000:00:02.2/0000:06:00.0</path>
<parent>pci_0000_00_02_2</parent>
<driver>
<name>mlx5_core</name>
</driver>
<capability type='pci'>
<class>0x020000</class>
<domain>0</domain>
<bus>6</bus>
<slot>0</slot>
<function>0</function>
<product id='0x101d'>MT2892 Family [ConnectX-6 Dx]</product>
<vendor id='0x15b3'>Mellanox Technologies</vendor>
<capability type='virt_functions' maxCount='8'>
<address domain='0x0000' bus='0x06' slot='0x00' function='0x2'/>
<address domain='0x0000' bus='0x06' slot='0x00' function='0x3'/>
<address domain='0x0000' bus='0x06' slot='0x00' function='0x4'/>
<address domain='0x0000' bus='0x06' slot='0x00' function='0x5'/>
</capability>
<iommuGroup number='22'>
<address domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
</iommuGroup>
<numa node='0'/>
<pci-express>
<link validity='cap' port='0' speed='16' width='8'/>
<link validity='sta' speed='8' width='8'/>
</pci-express>
</capability>
</device>
$ virsh nodedev-dumpxml pci_0000_06_00_2
<device>
<name>pci_0000_06_00_2</name>
<path>/sys/devices/pci0000:00/0000:00:02.2/0000:06:00.2</path>
<parent>pci_0000_00_02_2</parent>
<driver>
<name>mlx5_core</name>
</driver>
<capability type='pci'>
<class>0x020000</class>
<domain>0</domain>
<bus>6</bus>
<slot>0</slot>
<function>2</function>
<product id='0x101e'>ConnectX Family mlx5Gen Virtual Function</product>
<vendor id='0x15b3'>Mellanox Technologies</vendor>
<capability type='phys_function'>
<address domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
</capability>
<iommuGroup number='99'>
<address domain='0x0000' bus='0x06' slot='0x00' function='0x2'/>
</iommuGroup>
<numa node='0'/>
<pci-express>
<link validity='cap' port='0' speed='16' width='8'/>
<link validity='sta' width='0'/>
</pci-express>
</capability>
</device>
$ virsh nodedev-dumpxml vdpa_vdpa0
<device>
<name>vdpa_vdpa0</name>
<path>/sys/devices/pci0000:00/0000:00:02.2/0000:06:00.2/vdpa0</path>
<parent>pci_0000_06_00_2</parent>
<driver>
<name>vhost_vdpa</name>
</driver>
<capability type='vdpa'>
<chardev>/dev/vhost-vdpa-0</chardev>
</capability>
</device>