[RFC PATCH 0/3] Some remote_vm folio conversions

Vishal Moola (Oracle) posted 3 patches 3 months, 2 weeks ago
include/linux/highmem.h |  6 -----
mm/memory.c             | 52 +++++++++++++++++++++++++----------------
2 files changed, 32 insertions(+), 26 deletions(-)
[RFC PATCH 0/3] Some remote_vm folio conversions
Posted by Vishal Moola (Oracle) 3 months, 2 weeks ago
Both callers of unmap_and_put_page() are for tracing purposes and
interact with user vmas. In a memdesc world, these should end up
operating on folios, so convert them.

This patchset converts those functions so that gup - namely
get_user_page_vma_remote() - can eventually safely pass around
large folios.

This iteration does NOT allow support for handling a large folio all at
once, it merely makes working on subpages of a large folio safe. Does
anyone have any thoughts on if we might want to handle these in larger
than PAGE_SIZE chunks? It seems like a lot of work with how kmap()
works right now...

On a similar note, might we want to convert implementations of
copy_{to,from}_user_page() to pass around folios as well?

Vishal Moola (Oracle) (3):
  mm/memory.c: convert __copy_remote_vm_str() to folios
  mm/memory.c: convert __access_remote_vm() to folios
  mm: Remove unmap_and_put_page()

 include/linux/highmem.h |  6 -----
 mm/memory.c             | 52 +++++++++++++++++++++++++----------------
 2 files changed, 32 insertions(+), 26 deletions(-)

-- 
2.49.0