]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Turn EIM IOMMU on automagically
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 6 Nov 2024 11:34:42 +0000 (12:34 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Nov 2024 09:46:33 +0000 (10:46 +0100)
commitb15047ff2690428fefea80a455a5e8a17767e162
treea667ec4625a74e6e2636e0943285d8822ead7a51
parenta9797d7c433c84d1d8287a3708ed54e4bcb6727c
qemu: Turn EIM IOMMU on automagically

If a Q35 domain has huge number of vCPUS (over 255, currently), then
it needs IOMMU with Extended Interrupt Mode enabled (see check in
qemuValidateDomainVCpuTopology()).

Well, we already add some devices and to other tricks when
parsing new domain XML. Might as well turn the EIM on for IOMMU
device.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_validate.c
src/qemu/qemu_validate.h
tests/qemuxmlconfdata/intel-iommu-eim-autoadd.x86_64-latest.abi-update.args [new file with mode: 0644]
tests/qemuxmlconfdata/intel-iommu-eim-autoadd.x86_64-latest.abi-update.xml [new file with mode: 0644]
tests/qemuxmlconfdata/intel-iommu-eim-autoadd.xml [new file with mode: 0644]
tests/qemuxmlconftest.c