]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Enable I/O APIC if needed
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 12 Dec 2024 09:02:43 +0000 (10:02 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 16 Dec 2024 14:43:16 +0000 (15:43 +0100)
commit2d222ecf6e73614a400b830ac56e9aaa1bc55ecc
treec156bd07dd2f6ac55cf1ddba6fbaad373d45a986
parent99474f8e5012a53377e735755e47bd3e18fc17a9
qemu: Enable I/O APIC if needed

This is a follow up of my previous commits. If the number of
vCPUs exceeds some arbitrary value (255) then QEMU requires IOMMU
with EIM and intremap enabled. But in turn, intremap IOMMU
requires split I/O APIC (per virDomainDefIOMMUValidate()). Since
after my previous commits (e.g. v10.10.0-rc1~183) IOMMU is added
automagically, the I/O APIC can be also enabled automagically.

Relates to: 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_postparse.c
tests/qemuxmlconfdata/intel-iommu-eim-autoadd.xml