Re: [PATCH 33/36] IB/odp/hmm: add core infiniband structure and helper for ODP with HMM.

2015-06-24 Thread Haggai Eran
On 21/05/2015 23:23, jgli...@redhat.com wrote: > +int ib_umem_odp_get(struct ib_ucontext *context, struct ib_umem *umem) > +{ > + struct mm_struct *mm = get_task_mm(current); > + struct ib_device *ib_device = context->device; > + struct ib_mirror *ib_mirror; > + struct pid

Re: [PATCH 33/36] IB/odp/hmm: add core infiniband structure and helper for ODP with HMM.

2015-06-24 Thread Haggai Eran
On 21/05/2015 23:23, jgli...@redhat.com wrote: +int ib_umem_odp_get(struct ib_ucontext *context, struct ib_umem *umem) +{ + struct mm_struct *mm = get_task_mm(current); + struct ib_device *ib_device = context-device; + struct ib_mirror *ib_mirror; + struct pid *our_pid; +

[PATCH 33/36] IB/odp/hmm: add core infiniband structure and helper for ODP with HMM.

2015-05-21 Thread jglisse
From: Jérôme Glisse This add new core infiniband structure and helper to implement ODP (on demand paging) on top of HMM. We need to retain the tree of ib_umem as some hardware associate unique identifiant with each umem (or mr) and only allow hardware page table to be updated using this unique

[PATCH 33/36] IB/odp/hmm: add core infiniband structure and helper for ODP with HMM.

2015-05-21 Thread jglisse
From: Jérôme Glisse jgli...@redhat.com This add new core infiniband structure and helper to implement ODP (on demand paging) on top of HMM. We need to retain the tree of ib_umem as some hardware associate unique identifiant with each umem (or mr) and only allow hardware page table to be updated