]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_domain: Automagically add IOMMU if needed
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 6 Nov 2024 11:57:21 +0000 (12:57 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Nov 2024 09:46:33 +0000 (10:46 +0100)
commit844d1036eb734b6c80397a0c69f491645c682313
tree6df4cce3f18689d3fc23efdeeceb9ff4e18629f2
parentb15047ff2690428fefea80a455a5e8a17767e162
qemu_domain: Automagically add IOMMU if needed

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 add IOMMU device if above
condition is met.

Resolves: https://issues.redhat.com/browse/RHEL-65844
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c
tests/qemuxmlconfdata/intel-iommu-eim-autoadd.xml