[libvirt] [PATCH v2 2/3] xml: nodedev: add class info for pci capability

Pavel Hrdina phrdina at redhat.com
Wed Mar 20 11:35:14 UTC 2019


On Tue, Mar 12, 2019 at 02:14:40PM +0300, Nikolay Shirokovskiy wrote:
> This info can be useful to filter devices visible
> to mgmt clients so that they won't see devices that
> unsafe/not meaningful to pass thru.
> 
> Provide class info the way it is provided by udev or
> kernel that is as single 6-digit hexadecimal.
> 
> Class element is not optional. I guess this should not
> break users that use virNodeDeviceCreateXML because
> they probably specify only scsi_host capability on
> input and then node device driver gets other capabilities
> from udev after device appeared.

This patch broke virt-manager testing suit [1].  It uses test driver
a lot with custom XMLs providing required information to initialize
test driver and one of the information is list of nodedev devices.

One can use it like this:

    virsh --connect test:///path/to/host/definition

And it will parse XML providing host definition which this patch breaks.

Yes, we can possibly fix all the test cases in virt-manager but I would
rather make this element optional as it is not required.

Pavel

[1] <https://ci.centos.org/view/libvirt/job/virt-manager-check/systems=libvirt-fedora-29/532/console>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190320/593f9a9e/attachment-0001.sig>


More information about the libvir-list mailing list