]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: Fix parsing of generated XMLs
authorMartin Kletzander <mkletzan@redhat.com>
Sun, 3 Apr 2016 17:55:54 +0000 (19:55 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 4 Apr 2016 12:24:02 +0000 (14:24 +0200)
commit17a94ba70fc11c21f8ea70ff92131d0868f4cde1
tree6a0b470531c868a5cc8e2f31f8773bbc7c476be1
parent8f74f5277d33ab791ee5b94f77efbbbebe37c6b1
nodedev: Fix parsing of generated XMLs

Commit d77ffb6876 added not only reporting of the PCI header type, but
also parsing of that information.  However, because there was no parsing
done for the other sub-PCI capabilities, if there was any other
capability then a valid header type name (like phys_function or
virt_functions) the parsing would fail.  This prevented passing node
device XMLs that we generated into our own functions when dealing with,
e.g. with SRIOV cards.

Instead of reworking the whole parsing, just fix this one occurence and
remove a test for it for the time being.  Future patches will deal with
the rest.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/node_device_conf.c
tests/nodedevxml2xmltest.c