]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Validate address type for virtio-iommu
authorAndrea Bolognani <abologna@redhat.com>
Thu, 7 Oct 2021 17:53:45 +0000 (19:53 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 1 Apr 2022 17:31:00 +0000 (19:31 +0200)
commitfc6cde6cb1eae11e33002a41778f2f0348dfa9f3
tree93ccb7d6fe5d8646d87103cd0a0f8076a74b7755
parentf119336162623b1987333a5886a5cb645d0fd1de
qemu: Validate address type for virtio-iommu

virtio-iommu is a PCI device and attempts to use a different
address type should be rejected.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_validate.c
tests/qemuxml2argvdata/virtio-iommu-invalid-address-type.x86_64-latest.err [new file with mode: 0644]
tests/qemuxml2argvdata/virtio-iommu-invalid-address-type.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c