Re: [PATCH 5/5] memremap: provide a not device managed memremap_pages

2019-08-14 Thread Christoph Hellwig
On Wed, Aug 14, 2019 at 02:28:26PM +0530, Bharata B Rao wrote: > > > > http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/pgmap-remove-dev > > > > works for you fully before I resend? > > Yes, this works for us. This and migrate-vma-cleanup series helps to > really simplify the

Re: [PATCH 5/5] memremap: provide a not device managed memremap_pages

2019-08-14 Thread Bharata B Rao
On Wed, Aug 14, 2019 at 08:11:50AM +0200, Christoph Hellwig wrote: > On Tue, Aug 13, 2019 at 10:26:11AM +0530, Bharata B Rao wrote: > > Yes, this patchset works non-modular and with kvm-hv as module, it > > works with devm_memremap_pages_release() and release_mem_region() in the > > cleanup path.

Re: [PATCH 5/5] memremap: provide a not device managed memremap_pages

2019-08-14 Thread Christoph Hellwig
On Tue, Aug 13, 2019 at 10:26:11AM +0530, Bharata B Rao wrote: > Yes, this patchset works non-modular and with kvm-hv as module, it > works with devm_memremap_pages_release() and release_mem_region() in the > cleanup path. The cleanup path will be required in the non-modular > case too for proper

Re: [PATCH 5/5] memremap: provide a not device managed memremap_pages

2019-08-12 Thread Bharata B Rao
On Mon, Aug 12, 2019 at 05:00:12PM +0200, Christoph Hellwig wrote: > On Mon, Aug 12, 2019 at 08:20:58PM +0530, Bharata B Rao wrote: > > On Sun, Aug 11, 2019 at 10:12:47AM +0200, Christoph Hellwig wrote: > > > The kvmppc ultravisor code wants a device private memory pool that is > > > system wide

Re: [PATCH 5/5] memremap: provide a not device managed memremap_pages

2019-08-12 Thread Christoph Hellwig
On Mon, Aug 12, 2019 at 08:20:58PM +0530, Bharata B Rao wrote: > On Sun, Aug 11, 2019 at 10:12:47AM +0200, Christoph Hellwig wrote: > > The kvmppc ultravisor code wants a device private memory pool that is > > system wide and not attached to a device. Instead of faking up one > > provide a

Re: [PATCH 5/5] memremap: provide a not device managed memremap_pages

2019-08-12 Thread Bharata B Rao
On Sun, Aug 11, 2019 at 10:12:47AM +0200, Christoph Hellwig wrote: > The kvmppc ultravisor code wants a device private memory pool that is > system wide and not attached to a device. Instead of faking up one > provide a low-level memremap_pages for it. Note that this function is > not exported,

Re: [PATCH 5/5] memremap: provide a not device managed memremap_pages

2019-08-12 Thread Christoph Hellwig
On Sun, Aug 11, 2019 at 10:56:07PM +, Jason Gunthorpe wrote: > > + * This version is not intended for system resources only, and there is no > > Was 'is not' what was intended here? I'm having a hard time reading > this. s/not//g ___ Linux-nvdimm

Re: [PATCH 5/5] memremap: provide a not device managed memremap_pages

2019-08-11 Thread Jason Gunthorpe
On Sun, Aug 11, 2019 at 10:12:47AM +0200, Christoph Hellwig wrote: > The kvmppc ultravisor code wants a device private memory pool that is > system wide and not attached to a device. Instead of faking up one > provide a low-level memremap_pages for it. Note that this function is > not exported,