qemu: Introduce QEMU_CAPS_MACHINE_VIRT_IOMMU
commit124eb803fc7db46d2aa194d2653b3d183ac5af44
authorAndrea Bolognani <abologna@redhat.com>
Fri, 17 May 2019 07:15:27 +0000 (17 09:15 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 3 Jun 2019 15:40:45 +0000 (3 17:40 +0200)
tree6b6c5e8ed5265f7bdda12b6ff38bf8be637fc2e6
parent21bb887abc5e4f057dc7ed0d25e7762bf9335208
qemu: Introduce QEMU_CAPS_MACHINE_VIRT_IOMMU

This capability can be used to figure out whether the
QEMU binary at hand supports the machine type property
we need in order to enable SMMUv3 IOMMU support.

Unfortunately we can't avoid probing the RISC-V binaries
along with the ARM ones, since both architectures have
their own 'virt' machine type.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_2.12.0.aarch64.replies
tests/qemucapabilitiesdata/caps_3.0.0.riscv32.replies
tests/qemucapabilitiesdata/caps_3.0.0.riscv64.replies
tests/qemucapabilitiesdata/caps_4.0.0.aarch64.replies
tests/qemucapabilitiesdata/caps_4.0.0.aarch64.xml
tests/qemucapabilitiesdata/caps_4.0.0.riscv32.replies
tests/qemucapabilitiesdata/caps_4.0.0.riscv64.replies