[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250625174841.1094510-1-vishal.moola@gmail.com>
Date: Wed, 25 Jun 2025 10:48:38 -0700
From: "Vishal Moola (Oracle)" <vishal.moola@...il.com>
To: linux-mm@...ck.org
Cc: linux-kernel@...r.kernel.org,
"Matthew Wilcox (Oracle)" <willy@...radead.org>,
David Hildenbrand <david@...hat.com>,
Jordan Rome <linux@...danrome.com>,
Andrew Morton <akpm@...ux-foundation.org>,
"Vishal Moola (Oracle)" <vishal.moola@...il.com>
Subject: [RFC PATCH 0/3] Some remote_vm folio conversions
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
Powered by blists - more mailing lists