Re: [Qemu-devel] [PATCH v3 3/3] hostmem-file: add 'sync' option

2018-01-24 Thread Haozhong Zhang
On 01/24/18 22:23 +0200, Michael S. Tsirkin wrote: > On Wed, Jan 17, 2018 at 04:13:25PM +0800, Haozhong Zhang wrote: > > This option controls whether QEMU mmap(2) the memory backend file with > > MAP_SYNC flag, which can fully guarantee the guest write persistence > > to the backend, if MAP_SYNC fl

Re: [Qemu-devel] [PATCH v3 3/3] hostmem-file: add 'sync' option

2018-01-24 Thread Michael S. Tsirkin
On Wed, Jan 17, 2018 at 04:13:25PM +0800, Haozhong Zhang wrote: > This option controls whether QEMU mmap(2) the memory backend file with > MAP_SYNC flag, which can fully guarantee the guest write persistence > to the backend, if MAP_SYNC flag is supported by the host kernel > (Linux kernel 4.15 and

Re: [Qemu-devel] [PATCH v3 3/3] hostmem-file: add 'sync' option

2018-01-24 Thread Michael S. Tsirkin
On Wed, Jan 17, 2018 at 04:13:25PM +0800, Haozhong Zhang wrote: > This option controls whether QEMU mmap(2) the memory backend file with > MAP_SYNC flag, which can fully guarantee the guest write persistence > to the backend, if MAP_SYNC flag is supported by the host kernel > (Linux kernel 4.15 and

[Qemu-devel] [PATCH v3 3/3] hostmem-file: add 'sync' option

2018-01-17 Thread Haozhong Zhang
This option controls whether QEMU mmap(2) the memory backend file with MAP_SYNC flag, which can fully guarantee the guest write persistence to the backend, if MAP_SYNC flag is supported by the host kernel (Linux kernel 4.15 and later) and the backend is a file supporting DAX (e.g., file on ext4/xfs