Re: [PATCH v4 0/4] mm/userfaultfd: modulize memory types

From: David Hildenbrand (Red Hat)

Date: Tue Nov 04 2025 - 07:25:30 EST


On 04.11.25 08:21, Mike Rapoport wrote:
On Mon, Nov 03, 2025 at 10:27:05PM +0100, David Hildenbrand (Red Hat) wrote:

And maybe that's the main problem here: Liam talks about general uffd
cleanups while you are focused on supporting guest_memfd minor mode "as
simple as possible" (as you write below).

Hijacking for the technical part for a moment ;-)

What?! That's crazy :P


It seems that "as simple as possible" can even avoid data members in struct
vm_uffd_ops, e.g something along these lines:

Right, that's certainly even more "minimal".

In the end I agree with previous assessment that the original series is not completely a "modulize memory types".

If we want to make it easier for guest_memfd to support MFILL_ATOMIC_CONTINUE, then maybe we should focus on that, and only that, for the time being to make progress.

--
Cheers

David