nodedev-dumpxml
Displays the properties, in node-device XML
format, of a host resource that is represented in sysfs on the KVM host and that can be detected by libvirt.
Syntax
Selected options
- <nodedev_name>
- Specifies a host resource as listed with the virsh nodedev-list command.
Usage
Examples
This example displays the properties of a mediated device
mdev_96c03c6a_a109_44fe_816a_ba371542164b_0_0_0072.$ virsh nodedev-dumpxml mdev_96c03c6a_a109_44fe_816a_ba371542164b_0_0_0072 <device> <name>mdev_96c03c6a_a109_44fe_816a_ba371542164b_0_0_0072</name> <path>/sys/devices/css0/0.0.0072/96c03c6a-a109-44fe-816a-ba371542164b</path> <parent>css_0_0_0072</parent> <driver> <name>vfio_mdev</name> </driver> <capability type="mdev"> <type id="vfio_ccw-io"/> <uuid>96c03c6a-a109-44fe-816a-ba371542164b</uuid> <iommuGroup number="1"/> </capability> </device>
This example displays the properties of subchannel
0.0.0072.
# virsh nodedev-dumpxml css_0_0_0072
<device>
<name>css_0_0_0072</name>
<path>/sys/devices/css0/0.0.0072</path>
<parent>computer</parent>
<driver>
<name>vfio_ccw</name>
</driver>
<capability type="css">
<cssid>0x0</cssid>
<ssid>0x0</ssid>
<devno>0x0072</devno>
<capability type="mdev_types">
<type id="vfio_ccw-io">
<name>I/O subchannel (Non-QDIO)</name>
<deviceAPI>vfio-ccw</deviceAPI>
<availableInstances>1</availableInstances>
</type>
</capability>
</capability>
</device>