]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add zPCI address definition check
authorYi Min Zhao <zyimin@linux.ibm.com>
Thu, 8 Nov 2018 11:00:27 +0000 (19:00 +0800)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 15 Nov 2018 11:32:18 +0000 (12:32 +0100)
commite6565d54db3d52ae38b5934877be4d004c2d5f35
tree6a86172c8c396b303f8c5016be3e62206f32dee8
parentb4833b2c2f7be8a68eb6495ed57ed61918e3ecd8
qemu: Add zPCI address definition check

We should ensure that QEMU supports zPCI when a zPCI address is defined
in XML and otherwise report an error. This patch introduces a generic
validation function qemuDomainDeviceDefValidateAddress() which calls
qemuDomainDeviceDefValidateZPCIAddress() if address type is PCI address.

Signed-off-by: Yi Min Zhao <zyimin@linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/qemu/qemu_domain.c
tests/qemuxml2argvdata/hostdev-vfio-zpci-wrong-arch.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c