Re: [PATCH v11 14/22] mm: pagewalk: Add 'depth' parameter to pte_hole

2019-10-09 Thread Steven Price
On 07/10/2019 19:11, Jason Gunthorpe wrote: > On Mon, Oct 07, 2019 at 05:20:30PM +0100, Steven Price wrote: >> On 07/10/2019 17:10, Jason Gunthorpe wrote: >>> On Mon, Oct 07, 2019 at 04:38:14PM +0100, Steven Price wrote: diff --git a/mm/hmm.c b/mm/hmm.c index 902f5fa6bf93..34fe904dd417

Re: [PATCH v11 14/22] mm: pagewalk: Add 'depth' parameter to pte_hole

2019-10-07 Thread Jason Gunthorpe
On Mon, Oct 07, 2019 at 05:20:30PM +0100, Steven Price wrote: > On 07/10/2019 17:10, Jason Gunthorpe wrote: > > On Mon, Oct 07, 2019 at 04:38:14PM +0100, Steven Price wrote: > >> diff --git a/mm/hmm.c b/mm/hmm.c > >> index 902f5fa6bf93..34fe904dd417 100644 > >> +++ b/mm/hmm.c > >> @@ -376,7 +376,7

Re: [PATCH v11 14/22] mm: pagewalk: Add 'depth' parameter to pte_hole

2019-10-07 Thread Steven Price
On 07/10/2019 17:10, Jason Gunthorpe wrote: > On Mon, Oct 07, 2019 at 04:38:14PM +0100, Steven Price wrote: >> diff --git a/mm/hmm.c b/mm/hmm.c >> index 902f5fa6bf93..34fe904dd417 100644 >> +++ b/mm/hmm.c >> @@ -376,7 +376,7 @@ static void hmm_range_need_fault(const struct >> hmm_vma_walk

Re: [PATCH v11 14/22] mm: pagewalk: Add 'depth' parameter to pte_hole

2019-10-07 Thread Jason Gunthorpe
On Mon, Oct 07, 2019 at 04:38:14PM +0100, Steven Price wrote: > diff --git a/mm/hmm.c b/mm/hmm.c > index 902f5fa6bf93..34fe904dd417 100644 > +++ b/mm/hmm.c > @@ -376,7 +376,7 @@ static void hmm_range_need_fault(const struct > hmm_vma_walk *hmm_vma_walk, > } > > static int

[PATCH v11 14/22] mm: pagewalk: Add 'depth' parameter to pte_hole

2019-10-07 Thread Steven Price
The pte_hole() callback is called at multiple levels of the page tables. Code dumping the kernel page tables needs to know what at what depth the missing entry is. Add this is an extra parameter to pte_hole(). When the depth isn't know (e.g. processing a vma) then -1 is passed. The depth that is