]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_process: Fix FD leak with multiple host devices using IOMMUFD
authorPavel Hrdina <phrdina@redhat.com>
Sun, 15 Feb 2026 18:13:19 +0000 (19:13 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 16 Feb 2026 14:50:39 +0000 (15:50 +0100)
commitd194f362f342c22731670e365e8a2681759dbc57
treeeeae407901b675065addb2d57013ff995ab764cd
parent7c062bfc4f8c0ba853873e72d21dba77f6ca938f
qemu_process: Fix FD leak with multiple host devices using IOMMUFD

We would open IOMMU device for each host device with IOMMUFD backend
leaking FD except for the last one. Since we are adding only single
iommufd object we need to open it only once.

Fixes: 2f0999a161910e3992458902ce90d37f8b8f2642
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_process.c