Re: [Qemu-devel] [PATCH v3 03/16] util: add memfd helpers

2015-09-30 Thread Michael S. Tsirkin
On Tue, Sep 29, 2015 at 11:25:04AM -0400, Marc-André Lureau wrote: > > > - Original Message - > > On Thu, Aug 06, 2015 at 02:40:39PM +0200, marcandre.lur...@redhat.com wrote: > > > From: Marc-André Lureau > > > > > > Add qemu_memfd_alloc/free() helpers. > > > > > > The function helps t

Re: [Qemu-devel] [PATCH v3 03/16] util: add memfd helpers

2015-09-30 Thread Marc-André Lureau
- Original Message - > On Thu, Aug 06, 2015 at 02:40:39PM +0200, marcandre.lur...@redhat.com wrote: > > From: Marc-André Lureau > > > > Add qemu_memfd_alloc/free() helpers. > > > > The function helps to allocate and seal a memfd, and implements an > > open/unlink/mmap fallback for syst

Re: [Qemu-devel] [PATCH v3 03/16] util: add memfd helpers

2015-09-30 Thread Michael S. Tsirkin
On Thu, Aug 06, 2015 at 02:40:39PM +0200, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Add qemu_memfd_alloc/free() helpers. > > The function helps to allocate and seal a memfd, and implements an > open/unlink/mmap fallback for system that do not support memfd. > > Signed-off

[Qemu-devel] [PATCH v3 03/16] util: add memfd helpers

2015-08-06 Thread marcandre . lureau
From: Marc-André Lureau Add qemu_memfd_alloc/free() helpers. The function helps to allocate and seal a memfd, and implements an open/unlink/mmap fallback for system that do not support memfd. Signed-off-by: Marc-André Lureau --- include/qemu/memfd.h | 4 +++ util/memfd.c | 74 +++