Re: [PATCH v6 3/9] KVM: x86: Rename kvm_x86_ops' gmem_invalidate() to gmem_make_shared()
From: Xiaoyao Li
Date: Mon Jul 27 2026 - 04:52:06 EST
On 7/24/2026 5:08 AM, Sean Christopherson wrote:
Rename kvm_x86_ops's gmem_invalidate() hook to gmem_make_shared(), as theReviewed-by: Xiaoyao Li <xiaoyao.li@xxxxxxxxx>
hook doesn't invalidate anything, and so that KVM doesn't need to add yet
another vendor callback to support "convert to shared" once in-place
conversion comes along.
Opportunistically wrap the ops declarations with a GMEM_RECLAIM guard so
that attempting to wire up a .gmem_make_shared() hook without selecting
CONFIG_HAVE_KVM_ARCH_GMEM_RECLAIM will result in a build failure.
No functional change intended.
Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>