Re: [PATCH v4 04/12] KVM: Add capability to discover KVM_GMEM_NO_DIRECT_MAP support

From: David Hildenbrand
Date: Tue Feb 25 2025 - 12:06:05 EST


On 21.02.25 17:07, Patrick Roy wrote:
Add a capability to let userspace discover whether guest_memfd supports
removing its folios from the direct map. Support depends on guest_memfd
itself being supported, but also on whether KVM can manipulate the
direct map at page granularity at all (possible most of the time, just
arm64 is a notable outlier where its impossible if the direct map has
been setup using hugepages, as arm64 cannot break these apart due to
break-before-make semantics).

Signed-off-by: Patrick Roy <roypat@xxxxxxxxxxxx>
---

Not sure how KVM folks handle that, but I suspect we would just want to squash that into the previous commit,

--
Cheers,

David / dhildenb