memfd: split qemu_memfd_alloc()
commitdcff1035dfdfb4c76634df64a5359ac18749f7ca
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 23 Oct 2017 14:18:07 +0000 (23 15:18 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 19 Jan 2018 13:18:51 +0000 (19 11:18 -0200)
tree719e554270c95335c019003d20c64047cd68a61f
parent3e5bdc6573edf0585e4085e6a4e349b135abf3b4
memfd: split qemu_memfd_alloc()

Add a function to only create a memfd, without mmap. The function is
used in the following memory backend.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20171023141815.17709-2-marcandre.lureau@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
include/qemu/memfd.h
util/memfd.c