]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_validate: Check whether granule of virtio-iommu is supported
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 21 Jan 2026 11:54:17 +0000 (12:54 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 6 Feb 2026 15:13:42 +0000 (16:13 +0100)
commit2eea8e3829931e531c87102409f94d46e92cd842
tree75c7354397d742f36f9e52d4565107d9aae47a9e
parent43892d991505ed992b245485c5ae9defb670d0c9
qemu_validate: Check whether granule of virtio-iommu is supported

Just like with other features, check whether QEMU supports them
based on capabilities. Now, instead of inventing a new QEMU
capability, an existing one can be used:
QEMU_CAPS_VIRTIO_IOMMU_AW_BITS.

This is because the aw-bits and granule attributes were
introduced into QEMU in close succession (v9.0.0-rc0~9^2~7
v9.0.0-rc0~9^2~11), neither can be disabled at compile time and
backporting just one without the other makes almost no sense.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_validate.c