Re: [PATCH 0/5] mm: rework hmm to use devm_memremap_pages

From: Dan Williams
Date: Thu Jun 07 2018 - 14:39:51 EST


On Thu, Jun 7, 2018 at 7:16 AM, Jerome Glisse <jglisse@xxxxxxxxxx> wrote:
[..]
> HMM is self contain interface but i doubt i can convince you of that.

I agree that HMM is self contained... after it completely subverts the
core-mm. It's that deep understanding and working around of core
memory management infrastructure that makes devm_memremap_pages() and
derivatives EXPORT_SYMBOL_GPL ("considered an
internal implementation issue, and not really an interface").