Re: [PATCH v2 2/5] mm/hmm: add output flags for PMD/PUD page mapping

2020-06-30 Thread Jason Gunthorpe
On Tue, Jun 30, 2020 at 10:23:43PM +0100, Matthew Wilcox wrote: > On Tue, Jun 30, 2020 at 12:57:34PM -0700, Ralph Campbell wrote: > > hmm_range_fault() returns an array of page frame numbers and flags for > > how the pages are mapped in the requested process' page tables. The PFN > > can be used to

Re: [PATCH v2 2/5] mm/hmm: add output flags for PMD/PUD page mapping

2020-06-30 Thread Matthew Wilcox
On Tue, Jun 30, 2020 at 12:57:34PM -0700, Ralph Campbell wrote: > hmm_range_fault() returns an array of page frame numbers and flags for > how the pages are mapped in the requested process' page tables. The PFN > can be used to get the struct page with hmm_pfn_to_page() and the page > size order ca

[PATCH v2 2/5] mm/hmm: add output flags for PMD/PUD page mapping

2020-06-30 Thread Ralph Campbell
hmm_range_fault() returns an array of page frame numbers and flags for how the pages are mapped in the requested process' page tables. The PFN can be used to get the struct page with hmm_pfn_to_page() and the page size order can be determined with compound_order(page) but if the page is larger than