[PATCH v6 0/6] virtio pmem driver

2019-04-23 Thread Pankaj Gupta
This patch series has implementation for "virtio pmem". "virtio pmem" is fake persistent memory(nvdimm) in guest which allows to bypass the guest page cache. This also implements a VIRTIO based asynchronous flush mechanism. Sharing guest kernel driver in this patchset with the changes

[PATCH v6 1/6] libnvdimm: nd_region flush callback support

2019-04-23 Thread Pankaj Gupta
This patch adds functionality to perform flush from guest to host over VIRTIO. We are registering a callback based on 'nd_region' type. virtio_pmem driver requires this special flush function. For rest of the region types we are registering existing flush function. Report error returned by host fsy

[PATCH v6 2/6] virtio-pmem: Add virtio pmem driver

2019-04-23 Thread Pankaj Gupta
This patch adds virtio-pmem driver for KVM guest. Guest reads the persistent memory range information from Qemu over VIRTIO and registers it on nvdimm_bus. It also creates a nd_region object with the persistent memory range information so that existing 'nvdimm/pmem' driver can reserve this into sy

[PATCH v6 3/6] libnvdimm: add dax_dev sync flag

2019-04-23 Thread Pankaj Gupta
This patch adds 'DAXDEV_SYNC' flag which is set for nd_region doing synchronous flush. This later is used to disable MAP_SYNC functionality for ext4 & xfs filesystem for devices don't support synchronous flush. Signed-off-by: Pankaj Gupta --- drivers/dax/bus.c| 2 +- drivers/dax/sup

[PATCH v6 5/6] ext4: disable map_sync for async flush

2019-04-23 Thread Pankaj Gupta
Dont support 'MAP_SYNC' with non-DAX files and DAX files with asynchronous dax_device. Virtio pmem provides asynchronous host page cache flush mechanism. We don't support 'MAP_SYNC' with virtio pmem and ext4. Signed-off-by: Pankaj Gupta --- fs/ext4/file.c | 11 ++- 1 file changed, 6 ins

[PATCH v6 4/6] dax: check synchronous mapping is supported

2019-04-23 Thread Pankaj Gupta
This patch introduces 'daxdev_mapping_supported' helper which checks if 'MAP_SYNC' is supported with filesystem mapping. It also checks if corresponding dax_device is synchronous. Virtio pmem device is asynchronous and does not not support VM_SYNC. Suggested-by: Jan Kara Signed-off-by: Pankaj Gu

[PATCH v6 6/6] xfs: disable map_sync for async flush

2019-04-23 Thread Pankaj Gupta
Dont support 'MAP_SYNC' with non-DAX files and DAX files with asynchronous dax_device. Virtio pmem provides asynchronous host page cache flush mechanism. We don't support 'MAP_SYNC' with virtio pmem and xfs. Signed-off-by: Pankaj Gupta --- fs/xfs/xfs_file.c | 10 ++ 1 file changed, 6 ins

hi

2019-04-23 Thread MAILER-DAEMON
The original message was received at Tue, 23 Apr 2019 16:23:49 +0800 from lists.01.org [165.209.142.73] - The following addresses had permanent fatal errors - ___ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailma

Re: [PATCH v6 00/12] mm: Sub-section memory hotplug support

2019-04-23 Thread Oscar Salvador
On Wed, 2019-04-17 at 15:59 -0700, Dan Williams wrote: > On Wed, Apr 17, 2019 at 3:04 PM Andrew Morton org> wrote: > > > > On Wed, 17 Apr 2019 11:38:55 -0700 Dan Williams > el.com> wrote: > > > > > The memory hotplug section is an arbitrary / convenient unit for > > > memory > > > hotplug. 'Sec

Re: [4.19, 5.0 stable PATCH 1/4] nfit/ars: Remove ars_start_flags

2019-04-23 Thread Sasha Levin
On Mon, Apr 22, 2019 at 04:08:10PM -0700, Dan Williams wrote: commit 317a992ab9266b86b774b9f6b0f87eb4f59879a1 upstream. The ars_start_flags property of 'struct acpi_nfit_desc' is no longer used since ARS_REQ_SHORT and ARS_REQ_LONG were added. Reviewed-by: Toshi Kani Signed-off-by: Dan Williams

Re: [PATCH v6 4/6] dax: check synchronous mapping is supported

2019-04-23 Thread Jan Kara
On Tue 23-04-19 13:36:10, Pankaj Gupta wrote: > This patch introduces 'daxdev_mapping_supported' helper > which checks if 'MAP_SYNC' is supported with filesystem > mapping. It also checks if corresponding dax_device is > synchronous. Virtio pmem device is asynchronous and > does not not support VM_

Re: [PATCH v6 5/6] ext4: disable map_sync for async flush

2019-04-23 Thread Jan Kara
On Tue 23-04-19 13:36:11, Pankaj Gupta wrote: > Dont support 'MAP_SYNC' with non-DAX files and DAX files > with asynchronous dax_device. Virtio pmem provides > asynchronous host page cache flush mechanism. We don't > support 'MAP_SYNC' with virtio pmem and ext4. > > Signed-off-by: Pankaj Gupta

[PATCH] arm64: configurable sparsemem section size

2019-04-23 Thread Pavel Tatashin
sparsemem section size determines the maximum size and alignment that is allowed to offline/online memory block. The bigger the size the less the clutter in /sys/devices/system/memory/*. On the other hand, however, there is less flexability in what granules of memory can be added and removed. Rece

Re: [PATCH v6 06/12] mm/hotplug: Add mem-hotplug restrictions for remove_memory()

2019-04-23 Thread David Hildenbrand
On 17.04.19 20:39, Dan Williams wrote: > Teach the arch_remove_memory() path to consult the same 'struct > mhp_restrictions' context as was specified at arch_add_memory() time. > > No functional change, this is a preparation step for teaching > __remove_pages() about how and when to allow sub-sect

Re: [PATCH v6 6/6] xfs: disable map_sync for async flush

2019-04-23 Thread Dave Chinner
On Tue, Apr 23, 2019 at 01:36:12PM +0530, Pankaj Gupta wrote: > Dont support 'MAP_SYNC' with non-DAX files and DAX files > with asynchronous dax_device. Virtio pmem provides > asynchronous host page cache flush mechanism. We don't > support 'MAP_SYNC' with virtio pmem and xfs. > > Signed-off-by: P

Re: [PATCH v6 6/6] xfs: disable map_sync for async flush

2019-04-23 Thread Darrick J. Wong
On Wed, Apr 24, 2019 at 08:02:17AM +1000, Dave Chinner wrote: > On Tue, Apr 23, 2019 at 01:36:12PM +0530, Pankaj Gupta wrote: > > Dont support 'MAP_SYNC' with non-DAX files and DAX files > > with asynchronous dax_device. Virtio pmem provides > > asynchronous host page cache flush mechanism. We don'

Mail System Error - Returned Mail

2019-04-23 Thread Mail Administrator
The original message was received at Wed, 24 Apr 2019 11:43:33 +0800 from lists.01.org [124.176.145.115] - The following addresses had permanent fatal errors - - Transcript of session follows - while talking to lists.01.org.: >>> MAIL From:"Mail Administrator" <<< 501 "Mail Ad

Re: [PATCH v6 6/6] xfs: disable map_sync for async flush

2019-04-23 Thread Pankaj Gupta
> > On Tue, Apr 23, 2019 at 01:36:12PM +0530, Pankaj Gupta wrote: > > Dont support 'MAP_SYNC' with non-DAX files and DAX files > > with asynchronous dax_device. Virtio pmem provides > > asynchronous host page cache flush mechanism. We don't > > support 'MAP_SYNC' with virtio pmem and xfs. > > >

Re: [Qemu-devel] [PATCH v6 6/6] xfs: disable map_sync for async flush

2019-04-23 Thread Pankaj Gupta
> > On Wed, Apr 24, 2019 at 08:02:17AM +1000, Dave Chinner wrote: > > On Tue, Apr 23, 2019 at 01:36:12PM +0530, Pankaj Gupta wrote: > > > Dont support 'MAP_SYNC' with non-DAX files and DAX files > > > with asynchronous dax_device. Virtio pmem provides > > > asynchronous host page cache flush mec

Re: [Qemu-devel] [PATCH v6 5/6] ext4: disable map_sync for async flush

2019-04-23 Thread Pankaj Gupta
> > On Tue 23-04-19 13:36:11, Pankaj Gupta wrote: > > Dont support 'MAP_SYNC' with non-DAX files and DAX files > > with asynchronous dax_device. Virtio pmem provides > > asynchronous host page cache flush mechanism. We don't > > support 'MAP_SYNC' with virtio pmem and ext4. > > > > Signed-off-b