[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.9999.1910081431310.11044@viisi.sifive.com>
Date: Tue, 8 Oct 2019 14:33:48 -0700 (PDT)
From: Paul Walmsley <paul.walmsley@...ive.com>
To: Steven Price <steven.price@....com>, alex@...ti.fr
cc: linux-mm@...ck.org, Mark Rutland <Mark.Rutland@....com>,
Peter Zijlstra <peterz@...radead.org>,
Catalin Marinas <catalin.marinas@....com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
"H. Peter Anvin" <hpa@...or.com>, linux-riscv@...ts.infradead.org,
Will Deacon <will@...nel.org>,
"Liang, Kan" <kan.liang@...ux.intel.com>, x86@...nel.org,
Ingo Molnar <mingo@...hat.com>,
Palmer Dabbelt <palmer@...ive.com>,
Albert Ou <aou@...s.berkeley.edu>,
Arnd Bergmann <arnd@...db.de>,
Jérôme Glisse <jglisse@...hat.com>,
Borislav Petkov <bp@...en8.de>,
Andy Lutomirski <luto@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
linux-arm-kernel@...ts.infradead.org,
Ard Biesheuvel <ard.biesheuvel@...aro.org>,
linux-kernel@...r.kernel.org, James Morse <james.morse@....com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH v11 07/22] riscv: mm: Add p?d_leaf() definitions
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 <palmer@...ive.com>
> CC: Albert Ou <aou@...s.berkeley.edu>
> CC: linux-riscv@...ts.infradead.org
> Signed-off-by: Steven Price <steven.price@....com>
Acked-by: Paul Walmsley <paul.walmsley@...ive.com> # 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.
- Paul
Powered by blists - more mailing lists