Thread (11 messages) 11 messages, 4 authors, 2021-02-22

Re: [PATCH v2 1/4] hmm: Device exclusive memory access

flat view

From: Jason Gunthorpe <jgg@ziepe.ca>
Date: 2021-02-19 14:02:08
Also in: dri-devel, linux-doc, lkml, nouveau

On Fri, Feb 19, 2021 at 09:47:41AM +0000, Christoph Hellwig wrote:
quoted
diff --git a/include/linux/hmm.h b/include/linux/hmm.h
index 866a0fa104c4..5d28ff6d4d80 100644
+++ b/include/linux/hmm.h
@@ -109,6 +109,10 @@ struct hmm_range {
  */
 int hmm_range_fault(struct hmm_range *range);
 
+int hmm_exclusive_range(struct mm_struct *mm, unsigned long start,
+			unsigned long end, struct page **pages);
+vm_fault_t hmm_remove_exclusive_entry(struct vm_fault *vmf);
Can we avoid the hmm naming for new code (we should probably also kill
it off for the existing code)?
Yes please, I'd prefer it if hmm.c was just the special page walker
and not a grab bag of unrelated things

Is there is a more natural place to put this in the mm for this idea?

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help