Re: [HMM v13 08/18] mm/hmm: heterogeneous memory management (HMM for short)

2016-11-28 Thread Jerome Glisse
> On 11/27/2016 06:40 PM, Jerome Glisse wrote: > > On Wed, Nov 23, 2016 at 09:33:35AM +0530, Anshuman Khandual wrote: > >> On 11/18/2016 11:48 PM, Jérôme Glisse wrote: > > > > [...] > > > >>> + * > >>> + * hmm_vma_migrate(vma, start, end, ops); > >>> + * > >>> + * With ops struct providing 2

Re: [HMM v13 08/18] mm/hmm: heterogeneous memory management (HMM for short)

2016-11-27 Thread Anshuman Khandual
On 11/27/2016 06:40 PM, Jerome Glisse wrote: > On Wed, Nov 23, 2016 at 09:33:35AM +0530, Anshuman Khandual wrote: >> On 11/18/2016 11:48 PM, Jérôme Glisse wrote: > > [...] > >>> + * >>> + * hmm_vma_migrate(vma, start, end, ops); >>> + * >>> + * With ops struct providing 2 callback alloc_and_

Re: [HMM v13 08/18] mm/hmm: heterogeneous memory management (HMM for short)

2016-11-27 Thread Jerome Glisse
On Wed, Nov 23, 2016 at 09:33:35AM +0530, Anshuman Khandual wrote: > On 11/18/2016 11:48 PM, Jérôme Glisse wrote: [...] > > + * > > + * hmm_vma_migrate(vma, start, end, ops); > > + * > > + * With ops struct providing 2 callback alloc_and_copy() which allocated > > the > > + * destination me

Re: [HMM v13 08/18] mm/hmm: heterogeneous memory management (HMM for short)

2016-11-22 Thread Anshuman Khandual
On 11/18/2016 11:48 PM, Jérôme Glisse wrote: > HMM provides 3 separate functionality : > - Mirroring: synchronize CPU page table and device page table > - Device memory: allocating struct page for device memory > - Migration: migrating regular memory to device memory > > This patch int

Re: [HMM v13 08/18] mm/hmm: heterogeneous memory management (HMM for short)

2016-11-20 Thread Jerome Glisse
On Mon, Nov 21, 2016 at 01:29:23PM +1100, Balbir Singh wrote: > On 19/11/16 05:18, Jérôme Glisse wrote: > > HMM provides 3 separate functionality : > > - Mirroring: synchronize CPU page table and device page table > > - Device memory: allocating struct page for device memory > > - Migra

Re: [HMM v13 08/18] mm/hmm: heterogeneous memory management (HMM for short)

2016-11-20 Thread Balbir Singh
On 19/11/16 05:18, Jérôme Glisse wrote: > HMM provides 3 separate functionality : > - Mirroring: synchronize CPU page table and device page table > - Device memory: allocating struct page for device memory > - Migration: migrating regular memory to device memory > > This patch introd

[HMM v13 08/18] mm/hmm: heterogeneous memory management (HMM for short)

2016-11-18 Thread Jérôme Glisse
HMM provides 3 separate functionality : - Mirroring: synchronize CPU page table and device page table - Device memory: allocating struct page for device memory - Migration: migrating regular memory to device memory This patch introduces some common helpers and definitions to all of tho