]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Include vdpa devices in node device list
authorJonathon Jongsma <jjongsma@redhat.com>
Wed, 14 Oct 2020 17:08:30 +0000 (12:08 -0500)
committerLaine Stump <laine@redhat.com>
Mon, 26 Oct 2020 06:39:29 +0000 (02:39 -0400)
commit53aec799fa31711ffaeacc7ec17ec6d3c2e3cadf
treeec5fd0a532c4b319d0b50bafc97f5d933d90c003
parent04b1c2d1e2e12abcca22380827edaa058399f4fa
Include vdpa devices in node device list

The current udev node device driver ignores all events related to vdpa
devices. Since libvirt now supports vDPA network devices, include these
devices in the device list.

Example output:

virsh # nodedev-list
[...ommitted long list of nodedevs...]
vdpa_vdpa0

virsh # nodedev-dumpxml vdpa_vdpa0
<device>
  <name>vdpa_vdpa0</name>
  <path>/sys/devices/vdpa0</path>
  <parent>computer</parent>
  <driver>
    <name>vhost_vdpa</name>
  </driver>
  <capability type='vdpa'>
    <chardev>/dev/vhost-vdpa-0</chardev>
  </capability>
</device>

NOTE: normally the 'parent' would be a PCI device instead of 'computer',
but this example output is from the vdpa_sim kernel module, so it
doesn't have a normal parent device.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
docs/formatnode.html.in
docs/schemas/nodedev.rng
include/libvirt/libvirt-nodedev.h
src/conf/node_device_conf.c
src/conf/node_device_conf.h
src/conf/virnodedeviceobj.c
src/node_device/node_device_udev.c
tools/virsh-nodedev.c