Re: [PATCH v7 04/12] KVM: guest_memfd: Add stub for kvm_arch_gmem_invalidate

David Hildenbrand
2025-09-25T10:26:59Z

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@amazon.co.uk>
> ---

We'll now always perform a callback from the core, but I guess that's
tolerable.

Acked-by: David Hildenbrand <david@redhat.com>

--
Cheers

David / dhildenb