Re: [RFC PATCH v6 1/2] mm: guestmem: introduce guestmem library

From: Matthew Wilcox

Date: Mon Sep 15 2025 - 22:00:32 EST


On Mon, Sep 15, 2025 at 04:18:27PM +0000, Kalyazin, Nikita wrote:
> From: Nikita Kalyazin <kalyazin@xxxxxxxxxx>
>
> Move MM-generic parts of guest_memfd from KVM to MM. This allows other
> hypervisors to use guestmem code and enables UserfaultFD implementation
> for guest_memfd [1]. Previously it was not possible because KVM (and
> guest_memfd code) might be built as a module.

https://lore.kernel.org/kvm/Z0DOdTRAaK3whZKW@xxxxxxxxxxxxxxxxxxxx/
remains un-addressed.

ie this entire approach is garbage. throw it away and start again.