Re: [PATCH v3 1/4] mm: Introduce vm_uffd_ops API

David Hildenbrand
2025-10-07T20:23:09Z

> I believe that's what David mentioned very initially here:
>
> https://lore.kernel.org/r/f1da3505-f17f-4829-80c1-696b1d99057d@redhat.com
>
> I'd rather go with the two fields, but if we're trying to introduce another
> feature sets almost only for vm_uffd_ops, I'd prefer keeping it simple, and
> deduce the modes from ioctls.
>
> Is that ok for you? So it'll have (1) get_folio(), (2) supported_ioctls.
> That's all.

I cannot speak for Liam, but for me that looks like the best way forward
for now.

I'd hope that we could get this all cleaned up at some point --
including hugetlb, because it's a pain to have the hugetlb special
casing all over the place even if it's at some point a legacy thing (we
all know it will stick around for years to come).

--
Cheers

David / dhildenb