On Fri, Mar 20, 2026 at 09:19:43AM +0100, Peter Krempa wrote:
On Thu, Mar 19, 2026 at 17:36:50 +0100, Pavel Hrdina via Devel wrote:
From: Pavel Hrdina <phrdina@redhat.com>
The function qemuDomainNeedsVFIO() was originally used by other parts of qemu code to figure out if the VM needs /dev/vfio/vfio.
Later it was also used by code calculating locked memory limit for all architectures, and after that change again and used only for PPC64.
Now it needs to be changed again due to IOMMUFD support, the /dev/vfio/vfio device is used by QEMU only if IOMMUFD is not used but for accounting we should most likely still consider any PCI host
I guess the reason for uncertainity is the absence of hardware, right?
IOMMUFD can by used with existing network devices as well, it's a replacement for the old VFIO container. It still needs increasing locked memory limit, the question is if it should be the same as with VFIO container. So for now we can use the same logic for both. Pavel