Re: [RFC][PATCH 05/11] asm-generic/tlb: Provide generic tlb_flush

2018-09-13 Thread Peter Zijlstra
On Thu, Sep 13, 2018 at 03:09:47PM +0200, Jann Horn wrote: > On Thu, Sep 13, 2018 at 3:01 PM Peter Zijlstra wrote: > > Provide a generic tlb_flush() implementation that relies on > > flush_tlb_range(). This is a little awkward because flush_tlb_range() > > assumes a VMA for range invalidation, but

Re: [RFC][PATCH 05/11] asm-generic/tlb: Provide generic tlb_flush

2018-09-13 Thread Jann Horn
On Thu, Sep 13, 2018 at 3:01 PM Peter Zijlstra wrote: > Provide a generic tlb_flush() implementation that relies on > flush_tlb_range(). This is a little awkward because flush_tlb_range() > assumes a VMA for range invalidation, but we no longer have one. > > Audit of all flush_tlb_range() implemen

[RFC][PATCH 05/11] asm-generic/tlb: Provide generic tlb_flush

2018-09-13 Thread Peter Zijlstra
Provide a generic tlb_flush() implementation that relies on flush_tlb_range(). This is a little awkward because flush_tlb_range() assumes a VMA for range invalidation, but we no longer have one. Audit of all flush_tlb_range() implementations shows only vma->vm_mm and vma->vm_flags are used, and of