]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: node_device: fix mdev_types format and XML parsing code to match schema
authorBoris Fiuczynski <fiuczy@linux.ibm.com>
Fri, 23 Oct 2020 17:31:43 +0000 (19:31 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 4 Nov 2020 18:11:46 +0000 (19:11 +0100)
commit689ff3c6c60c517f8b0e13d7876429ceda492d16
treebb38d9d1b1e69498a8c80d9047e78a0329a57b40
parentae110dc58b4dd09472b1ad8272652d6f8a031c45
conf: node_device: fix mdev_types format and XML parsing code to match schema

The nodedev schema defines that a mdev_types capability must have
one or more type elements. The XML parsing and the format allows to
accept and to write mdev_types capability without any type element.
This patches fixes this.

Signed-off-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Reviewed-by: Bjoern Walk <bwalk@linux.ibm.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/conf/node_device_conf.c