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

2015-10-04 Thread Michael S. Tsirkin
On Fri, Oct 02, 2015 at 05:57:34PM +0200, Paolo Bonzini wrote: > > Will be easier to apply if this refactoring is a separate patch. > > Is someone doing anything conflicting in this area? (My answer: not > that I know of). Yes - I'm trying to refactor mmap-alloc, that's why I asked for this. Con

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

2015-10-02 Thread Paolo Bonzini
]; Linhaifeng [haifeng@huawei.com] Subject: Re: [Qemu-devel] [PATCH v7 03/24] util: add linux-only memfd fallback On Fri, Oct 2, 2015 at 5:57 PM, Paolo Bonzini wrote: >> Will be easier to apply if this refactoring is a separate patch. > > Is someone doing anything conflicting in thi

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

2015-10-02 Thread Marc-André Lureau
On Fri, Oct 2, 2015 at 5:57 PM, Paolo Bonzini wrote: >> Will be easier to apply if this refactoring is a separate patch. > > Is someone doing anything conflicting in this area? (My answer: not > that I know of). so you mean that splitting over several lines isn't useful? The main reason I did

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

2015-10-02 Thread Paolo Bonzini
On 02/10/2015 15:39, Michael S. Tsirkin wrote: > On Thu, Oct 01, 2015 at 07:23:47PM +0200, marcandre.lur...@redhat.com wrote: >> diff --git a/util/Makefile.objs b/util/Makefile.objs >> index 372e037..9e05861 100644 >> --- a/util/Makefile.objs >> +++ b/util/Makefile.objs >> @@ -1,13 +1,18 @@ >> u

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

2015-10-02 Thread Marc-André Lureau
Hi - Original Message - > On Thu, Oct 01, 2015 at 07:23:47PM +0200, marcandre.lur...@redhat.com wrote: > > diff --git a/util/Makefile.objs b/util/Makefile.objs > > index 372e037..9e05861 100644 > > --- a/util/Makefile.objs > > +++ b/util/Makefile.objs > > @@ -1,13 +1,18 @@ > > util-obj-y

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

2015-10-02 Thread Michael S. Tsirkin
On Fri, Oct 02, 2015 at 09:56:17AM -0400, Marc-André Lureau wrote: > Hi > > - Original Message - > > On Thu, Oct 01, 2015 at 07:23:47PM +0200, marcandre.lur...@redhat.com wrote: > > > diff --git a/util/Makefile.objs b/util/Makefile.objs > > > index 372e037..9e05861 100644 > > > --- a/util/

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

2015-10-02 Thread Michael S. Tsirkin
On Thu, Oct 01, 2015 at 07:23:47PM +0200, marcandre.lur...@redhat.com wrote: > diff --git a/util/Makefile.objs b/util/Makefile.objs > index 372e037..9e05861 100644 > --- a/util/Makefile.objs > +++ b/util/Makefile.objs > @@ -1,13 +1,18 @@ > util-obj-y = osdep.o cutils.o unicode.o qemu-timer-common.

[Qemu-devel] [PATCH v7 03/24] util: add linux-only memfd fallback

2015-10-01 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