]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: TDX: Fold tdx_sept_zap_private_spte() into tdx_sept_remove_private_spte()
authorSean Christopherson <seanjc@google.com>
Thu, 30 Oct 2025 20:09:40 +0000 (13:09 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 5 Nov 2025 19:07:02 +0000 (11:07 -0800)
commit14c9938619bee7743eb2f2443b7d5f412a80838b
tree530f727c7ca313dedeb5797be04c6536df4a85a2
parent6b5b71ffabf9b0eb250ae6d4e0ab7fbac622f0f0
KVM: TDX: Fold tdx_sept_zap_private_spte() into tdx_sept_remove_private_spte()

Do TDH_MEM_RANGE_BLOCK directly in tdx_sept_remove_private_spte() instead
of using a one-off helper now that the nr_premapped tracking is gone.

Opportunistically drop the WARN on hugepages, which was dead code (see the
KVM_BUG_ON() in tdx_sept_remove_private_spte()).

No functional change intended.

Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Reviewed-by: Yan Zhao <yan.y.zhao@intel.com>
Tested-by: Yan Zhao <yan.y.zhao@intel.com>
Tested-by: Kai Huang <kai.huang@intel.com>
Link: https://patch.msgid.link/20251030200951.3402865-18-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/tdx.c