[RFC PATCH 2/2] arm64, tlbflush: don't TLBI broadcast if page reused in write fault
Catalin Marinas
catalin.marinas at arm.com
Thu Sep 18 03:13:10 PDT 2025
On Thu, Sep 18, 2025 at 10:18:49AM +0800, Huang, Ying wrote:
> Ryan Roberts <ryan.roberts at arm.com> writes:
> > contpte_ptep_set_access_flags() currently does a (broadcast) __flush_tlb_range()
> > on the (pte_write(orig_pte) == pte_write(entry)) path. I think that should be
> > changed to a local range invalidation to be consistent with this change.
>
> Yes. This should be changed too. However, it means we need a local
> variant of __flush_tlb_range() and flush_tlb_mm(). Is it OK to
> introduce them first and tidy up later?
If it's just for contpte, we'd never take the flush_tlb_mm() path. So we
could instead add a specific local_flush_tlb_contpte_range().
--
Catalin
More information about the linux-arm-kernel
mailing list