]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Support per-process memory accounting for iommufd
authorNathan Chen <nathanc@nvidia.com>
Fri, 30 Jan 2026 18:59:14 +0000 (10:59 -0800)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 2 Feb 2026 13:12:34 +0000 (14:12 +0100)
commitf91a07d0c8dd583928974e80bb13b54feb5aa908
treefd97296516cc83abec872db3835027403f8a742e
parent1043e04e17ed4be59b46e925089204333c08f05e
qemu: Support per-process memory accounting for iommufd

Implement the IOMMU_OPTION_RLIMIT_MODE
ioctl to set per-process memory accounting for
iommufd. This prevents ENOMEM errors from the
default per-user memory accounting when multiple
VMs under the libvirt-qemu user have their pinned
memory summed and checked against a per-process
RLIMIT_MEMLOCK limit.

Signed-off-by: Nathan Chen <nathanc@nvidia.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
meson.build
po/POTFILES
src/libvirt_private.syms
src/util/meson.build
src/util/viriommufd.c [new file with mode: 0644]
src/util/viriommufd.h [new file with mode: 0644]