Re: [Qemu-devel] [PATCH v6 04/24] util: add linux-only memfd fallback

2015-10-01 Thread Marc-André Lureau
Hi On Wed, Sep 30, 2015 at 10:42 AM, Michael S. Tsirkin wrote: > So the file is empty if CONFIG_MEMFD is set? > It would be more elegant to avoid linking it in. > Can be a patch on top. It's not empty in the following commits, with the helpers introduced -- Marc-André Lureau

Re: [Qemu-devel] [PATCH v6 04/24] util: add linux-only memfd fallback

2015-09-30 Thread Michael S. Tsirkin
On Tue, Sep 29, 2015 at 06:34:34PM +0200, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Implement memfd_create() fallback if not available in system libc. > memfd_create() is still not included in glibc today, atlhough it's been > available since Linux 3.17 in Oct 2014. > > me

[Qemu-devel] [PATCH v6 04/24] util: add linux-only memfd fallback

2015-09-30 Thread marcandre . lureau
From: Marc-André Lureau Implement memfd_create() fallback if not available in system libc. memfd_create() is still not included in glibc today, atlhough it's been available since Linux 3.17 in Oct 2014. memfd has numerous advantages over traditional shm/mmap for ipc memory sharing with fd handle