Re: [PATCH 2/3] mm: drop pte_clear_not_present_full()
From: David Hildenbrand (Arm)
Date: Thu Jun 11 2026 - 10:58:07 EST
On 6/11/26 15:49, Oscar Salvador (SUSE) wrote:
> On Thu, Jun 11, 2026 at 01:50:48PM +0200, David Hildenbrand (Arm) wrote:
>> In general, there is no good reason to do anything special when clearing
>> non-present PTEs.
>>
>> In theory, HW that does have to invalidate TLBs for non-present PTEs could
>> benefit from a "full" parameter, but fortunately
>
> That would be on arches like arm64 where it can cache non-present
> entries, right?
arm64 cannot cache them, it may only have them in the CPU pipeline temporarily,
and a special barrier (isb) is sufficient.
Risc-v has something like that, but they seem to handle it differently.
--
Cheers,
David