[lkml]   [2019]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v11 07/22] riscv: mm: Add p?d_leaf() definitions
On 08/10/2019 22:33, Paul Walmsley wrote:
> On Mon, 7 Oct 2019, Steven Price wrote:
>> walk_page_range() is going to be allowed to walk page tables other than
>> those of user space. For this it needs to know when it has reached a
>> 'leaf' entry in the page tables. This information is provided by the
>> p?d_leaf() functions/macros.
>> For riscv a page is a leaf page when it has a read, write or execute bit
>> set on it.
>> CC: Palmer Dabbelt <>
>> CC: Albert Ou <>
>> CC:
>> Signed-off-by: Steven Price <>
> Acked-by: Paul Walmsley <> # for arch/riscv
> Alex has a good point, but probably the right thing to do is to replace
> the contents of the arch/riscv/mm/hugetlbpage.c p{u,m}d_huge() functions
> with calls to Steven's new static inline functions.

The intention is to create new functions that are not dependent on
hugepage support in user space. hugetlbpage.c is only built if

As you say - the p{u,m}d_huge() functions can be reimplemented using the
new static inline functions if desired.

Thanks for the review.


> - Paul
> _______________________________________________
> linux-arm-kernel mailing list

 \ /
  Last update: 2019-10-09 12:56    [W:0.233 / U:0.572 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site