Re: [Qemu-devel] [PATCH v14 0/2] support MAP_SYNC for memory-backend-file

2019-04-23 Thread Michael S. Tsirkin
On Mon, Apr 22, 2019 at 03:22:55PM -0300, Eduardo Habkost wrote: > On Mon, Apr 22, 2019 at 08:34:51AM -0400, Michael S. Tsirkin wrote: > > On Mon, Apr 22, 2019 at 08:48:47AM +0800, Wei Yang wrote: > > > Linux 4.15 introduces a new mmap flag MAP_SYNC, which can be used to > > > guarantee the write p

Re: [Qemu-devel] [PATCH v14 0/2] support MAP_SYNC for memory-backend-file

2019-04-22 Thread Wei Yang
On Mon, Apr 22, 2019 at 03:22:55PM -0300, Eduardo Habkost wrote: >On Mon, Apr 22, 2019 at 08:34:51AM -0400, Michael S. Tsirkin wrote: >> On Mon, Apr 22, 2019 at 08:48:47AM +0800, Wei Yang wrote: >> > Linux 4.15 introduces a new mmap flag MAP_SYNC, which can be used to >> > guarantee the write persi

Re: [Qemu-devel] [PATCH v14 0/2] support MAP_SYNC for memory-backend-file

2019-04-22 Thread Eduardo Habkost
On Mon, Apr 22, 2019 at 08:34:51AM -0400, Michael S. Tsirkin wrote: > On Mon, Apr 22, 2019 at 08:48:47AM +0800, Wei Yang wrote: > > Linux 4.15 introduces a new mmap flag MAP_SYNC, which can be used to > > guarantee the write persistence to mmap'ed files supporting DAX (e.g., > > files on ext4/xfs f

Re: [Qemu-devel] [PATCH v14 0/2] support MAP_SYNC for memory-backend-file

2019-04-22 Thread Michael S. Tsirkin
On Mon, Apr 22, 2019 at 08:48:47AM +0800, Wei Yang wrote: > Linux 4.15 introduces a new mmap flag MAP_SYNC, which can be used to > guarantee the write persistence to mmap'ed files supporting DAX (e.g., > files on ext4/xfs file system mounted with '-o dax'). > > A description of MAP_SYNC and MAP_SH

[Qemu-devel] [PATCH v14 0/2] support MAP_SYNC for memory-backend-file

2019-04-21 Thread Wei Yang
Linux 4.15 introduces a new mmap flag MAP_SYNC, which can be used to guarantee the write persistence to mmap'ed files supporting DAX (e.g., files on ext4/xfs file system mounted with '-o dax'). A description of MAP_SYNC and MAP_SHARED_VALIDATE can be found at https://patchwork.kernel.org/patch