Re: [RFC 13/20] mm/tlb: introduce tlb_start_ptes() and tlb_end_ptes()

2021-02-01 Thread Nadav Amit
> On Feb 1, 2021, at 5:19 AM, Peter Zijlstra wrote: > > On Sat, Jan 30, 2021 at 04:11:25PM -0800, Nadav Amit wrote: >> +#define tlb_start_ptes(tlb) \ >> +do {\ >> +struct

Re: [RFC 13/20] mm/tlb: introduce tlb_start_ptes() and tlb_end_ptes()

2021-02-01 Thread Peter Zijlstra
On Sat, Jan 30, 2021 at 04:11:25PM -0800, Nadav Amit wrote: > +#define tlb_start_ptes(tlb) \ > + do {\ > + struct mmu_gather *_tlb = (tlb);\ > +

Re: [RFC 13/20] mm/tlb: introduce tlb_start_ptes() and tlb_end_ptes()

2021-01-31 Thread Nadav Amit
> On Jan 31, 2021, at 2:07 AM, Damian Tometzki wrote: > > On Sat, 30. Jan 16:11, Nadav Amit wrote: >> From: Nadav Amit >> >> Introduce tlb_start_ptes() and tlb_end_ptes() which would be called >> before and after PTEs are updated and TLB flushes are deferred. This >> will be later be used for

Re: [RFC 13/20] mm/tlb: introduce tlb_start_ptes() and tlb_end_ptes()

2021-01-31 Thread Damian Tometzki
On Sat, 30. Jan 16:11, Nadav Amit wrote: > From: Nadav Amit > > Introduce tlb_start_ptes() and tlb_end_ptes() which would be called > before and after PTEs are updated and TLB flushes are deferred. This > will be later be used for fine granualrity deferred TLB flushing > detection. > > In the

Re: [RFC 13/20] mm/tlb: introduce tlb_start_ptes() and tlb_end_ptes()

2021-01-31 Thread Damian Tometzki
On Sat, 30. Jan 16:11, Nadav Amit wrote: > From: Nadav Amit > > Introduce tlb_start_ptes() and tlb_end_ptes() which would be called > before and after PTEs are updated and TLB flushes are deferred. This > will be later be used for fine granualrity deferred TLB flushing > detection. > > In the

[RFC 13/20] mm/tlb: introduce tlb_start_ptes() and tlb_end_ptes()

2021-01-30 Thread Nadav Amit
From: Nadav Amit Introduce tlb_start_ptes() and tlb_end_ptes() which would be called before and after PTEs are updated and TLB flushes are deferred. This will be later be used for fine granualrity deferred TLB flushing detection. In the meanwhile, move flush_tlb_batched_pending() into