]> xenbits.xensource.com Git - libvirt.git/commit
conf: Introduce parser, formatter for uid and fid
authorYi Min Zhao <zyimin@linux.ibm.com>
Thu, 8 Nov 2018 11:00:26 +0000 (19:00 +0800)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 15 Nov 2018 11:32:18 +0000 (12:32 +0100)
commitb4833b2c2f7be8a68eb6495ed57ed61918e3ecd8
treea5ee8b2b54c8aa22834cbccc1f4b75e47e27435c
parent0d6b87335c00451b0923ecc91d617f71e4135bf8
conf: Introduce parser, formatter for uid and fid

This patch introduces new XML parser/formatter functions. Uid is
16-bit and non-zero. Fid is 32-bit. They are the two attributes of zpci
which is introduced as PCI address element. Zpci element is parsed and
formatted along with PCI address. And add the related test cases.

Signed-off-by: Yi Min Zhao <zyimin@linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Reviewed-by: Stefan Zimmermann <stzi@linux.ibm.com>
Reviewed-by: Bjoern Walk <bwalk@linux.ibm.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
16 files changed:
docs/schemas/basictypes.rng
docs/schemas/domaincommon.rng
src/conf/device_conf.c
src/conf/domain_addr.c
src/conf/domain_conf.c
src/libvirt_private.syms
src/util/virpci.c
src/util/virpci.h
tests/qemuxml2argvdata/disk-virtio-s390-zpci.args [new file with mode: 0644]
tests/qemuxml2argvdata/disk-virtio-s390-zpci.xml [new file with mode: 0644]
tests/qemuxml2argvdata/hostdev-vfio-zpci.args [new file with mode: 0644]
tests/qemuxml2argvdata/hostdev-vfio-zpci.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/disk-virtio-s390-zpci.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/hostdev-vfio-zpci.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c