util: add memfd helpers
commitd3592199ba3db504c6585115b9531b4cf7c50a0d
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 9 Oct 2015 15:17:20 +0000 (9 17:17 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Oct 2015 11:34:48 +0000 (22 14:34 +0300)
tree4f89aba61735a1df874795eb8611462b2bb86f77
parentf04cf9239addd12d6be9e7ff137262755e3680d3
util: add memfd helpers

Add qemu_memfd_alloc/free() helpers.

The function helps to allocate and seal shared memory.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Thibaut Collet <thibaut.collet@6wind.com>
include/qemu/memfd.h
util/memfd.c