Re: [PATCH v7 04/12] KVM: guest_memfd: Add stub for kvm_arch_gmem_invalidate
From: David Hildenbrand
Date: Thu Sep 25 2025 - 06:28:52 EST
On 24.09.25 17:22, Roy, Patrick wrote:
Add a no-op stub for kvm_arch_gmem_invalidate if
CONFIG_HAVE_KVM_ARCH_GMEM_INVALIDATE=n. This allows defining
kvm_gmem_free_folio without ifdef-ery, which allows more cleanly using
guest_memfd's free_folio callback for non-arch-invalidation related
code.
Signed-off-by: Patrick Roy <roypat@xxxxxxxxxxxx>
---
We'll now always perform a callback from the core, but I guess that's
tolerable.
Acked-by: David Hildenbrand <david@xxxxxxxxxx>
--
Cheers
David / dhildenb