Re: [PATCH v2 1/6] mm: Make lazy MMU mode context-aware

David Hildenbrand (Arm)
2026-04-21T14:12:58Z

On 4/21/26 10:40, Kevin Brodsky wrote:
> On 21/04/2026 06:57, Alexander Gordeev wrote:
>>> Does that mean that all PTEs mapping [addr, end) must belong to the same
>>> PTE page? I think the wording should be more specific.
>> I tried to state that end of the range must not exceed pmd_addr_end(addr, end).
>> Any of these sounds better?
>>
>> The PTE range must belong to the specified memory space and ...
>> a) the address range must not cross the parent PMD address range boundary
>> b) the PTEs must belong to the same parent PMD
>
> I think b) is good, maybe "PMD entry" to be even clearer.  My previous
> suggestion of talking about "PTE page" isn't ideal since some
> architectures have page tables smaller (or larger) than a page.

In other code (e.g., get_and_clear_ptes()) we state "The PTEs are all in
the same PMD."

--
Cheers,

David