]> git.proxmox.com Git - mirror_qemu.git/commit
memfd: add hugetlb support
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 1 Feb 2018 13:27:52 +0000 (14:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Feb 2018 13:09:25 +0000 (14:09 +0100)
commitc5b2a9e0782c54402b3e06afd14b4c1de9efba8f
treedca4e5c7d82f7ee64083301a413ce231fbde8a14
parent0f2956f9159e4aecc9f4de6b8412a1d1ac5a2da0
memfd: add hugetlb support

Linux commit 749df87bd7bee5a79cef073f5d032ddb2b211de8 (v4.14-rc1)
added a new flag MFD_HUGETLB to memfd_create() that specify the file
to be created resides in the hugetlbfs filesystem.  This is the
generic hugetlbfs filesystem not associated with any specific mount
point.

hugetlbfs does not support sealing operations in v4.14, therefore
specifying MFD_ALLOW_SEALING with MFD_HUGETLB will result in EINVAL.

However, I added sealing support in "[PATCH v3 0/9] memfd: add sealing
to hugetlb-backed memory" series, queued in -mm tree for v4.16.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180201132757.23063-3-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/memfd.h
util/memfd.c