Re: [libvirt PATCH v5 6/6] Include vdpa devices in node device list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/14/20 1:08 PM, Jonathon Jongsma wrote:
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@xxxxxxxxxx>


Reviewed-by: Laine Stump <laine@xxxxxxxxxx>


(I had left this patch in limbo in case anyone had issues with the particular element names, and then forgot about it for the last week. Seeing that nobody had an issue, I'm pushing it so it gets into the same release as the rest of the series)





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux