Re: [PATCH v6 0/9] KVM: guest_memfd: RECLAIM+CONVERT cleanups

Sean Christopherson <[email protected]> Fri, 31 Jul 2026 13:09:46 -0700
Newsgroups org.kernel.vger.kvm,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Thu, 23 Jul 2026 14:08:02 -0700, Sean Christopherson wrote:
> These are the cleanups from the SNP VMSA series.  Well, that's how they started
> out, now it's full into prep work for in-place conversion.  Oh well.
> 
> Rework prepare()+invalidate() into make_private()+reclaim(), with direct line
> of sight to adding make_shared() for in-place conversion.  Have the x86 backend
> use make_{private,shared} (no reclaim()) for SNP, as reclaim in SNP-land just
> means "make shared".
> 
> [...]

Applied to kvm-x86 coco, thanks!

[1/9] KVM: guest_memfd: Pass the number of pages instead of the end pfn into .invalidate()
      https://github.com/kvm-x86/linux/commit/0f0893ac5af3
[2/9] KVM: guest_memfd: Rename invalidate() arch hook to reclaim() and isolate it
      https://github.com/kvm-x86/linux/commit/7b8529e70a11
[3/9] KVM: x86: Rename kvm_x86_ops' gmem_invalidate() to gmem_make_shared()
      https://github.com/kvm-x86/linux/commit/f3c073e25476
[4/9] KVM: guest_memfd: Drop the redundant printk on arch gmem_prepare() failure
      https://github.com/kvm-x86/linux/commit/0f68fabe68fe
[5/9] KVM: guest_memfd: Add helpers to query SHARED vs. PRIVATE for a given page
      https://github.com/kvm-x86/linux/commit/19e612cd59bf
[6/9] KVM: guest_memfd: Only "prepare" folios for private pages
      https://github.com/kvm-x86/linux/commit/3df611b5a04e
[7/9] KVM: guest_memfd: Rename prepare() hook and Kconfig to make_private() / CONVERT
      https://github.com/kvm-x86/linux/commit/2131c4f763d2
[8/9] KVM: guest_memfd: Explicitly pass number of pages to make_private() hook
      https://github.com/kvm-x86/linux/commit/fb50ca77b672
[9/9] KVM: guest_memfd: Make private exactly what can be mapped on page fault
      https://github.com/kvm-x86/linux/commit/2abcdf03fda1

--
https://github.com/kvm-x86/linux/tree/next