Re: [Qemu-devel] [PATCH v2 4/4] util/mmap-alloc: account for DAX device in qemu_fd_getpagesize

2017-06-07 Thread Stefan Hajnoczi
On Tue, Jun 06, 2017 at 03:22:29PM +0800, Haozhong Zhang wrote: > A DAX device may require a page size different than getpagesize(). > > Signed-off-by: Haozhong Zhang > --- > include/qemu/osdep.h | 10 ++ > util/mmap-alloc.c| 6 ++ > util/osdep.c | 23 +++

[Qemu-devel] [PATCH v2 4/4] util/mmap-alloc: account for DAX device in qemu_fd_getpagesize

2017-06-06 Thread Haozhong Zhang
A DAX device may require a page size different than getpagesize(). Signed-off-by: Haozhong Zhang --- include/qemu/osdep.h | 10 ++ util/mmap-alloc.c| 6 ++ util/osdep.c | 23 +++ 3 files changed, 39 insertions(+) diff --git a/include/qemu/osdep.h b/i