]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_process: Don't require a hugetlbfs mount for memfd
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 5 Sep 2022 08:34:44 +0000 (10:34 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 12 Sep 2022 10:04:55 +0000 (12:04 +0200)
commitf14f8dff9330ed51d817f190a2ee9ac76dfac00b
tree883d381f3055e17e2d134039927ad3df93b88922
parentb48469fcdb42cea237578e000cfb82b13f05b0ff
qemu_process: Don't require a hugetlbfs mount for memfd

The aim of qemuProcessNeedHugepagesPath() is to determine whether
a hugetlbfs mount point is required for given domain (as in
whether qemuBuildMemoryBackendProps() picks up
memory-backend-file pointing to a hugetlbfs mount point). Well,
when domain is configured to use memfd backend then that
condition can never be true. Therefore, skip creating domain's
private path under hugetlbfs mount points.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_process.c