]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: TDX: Hoist tdx_sept_remove_private_spte() above set_private_spte()
authorSean Christopherson <seanjc@google.com>
Sat, 9 May 2026 07:56:58 +0000 (15:56 +0800)
committerSean Christopherson <seanjc@google.com>
Thu, 28 May 2026 00:19:19 +0000 (17:19 -0700)
commitc74893aa56f4e7515c0877c5230f9f42357ff044
tree9daadbfa2124a406f854944d4bcc0a081662cb7b
parent41367d77ee4eba4b062835723b1756b0b6a86324
KVM: TDX: Hoist tdx_sept_remove_private_spte() above set_private_spte()

Arrange tdx_sept_remove_private_spte() (and its tdx_track() helper) to be
above tdx_sept_set_private_spte() in anticipation of routing all S-EPT
writes (with the exception of reclaiming non-leaf pages) through the "set"
API.

No functional change intended.

Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Link: https://patch.msgid.link/20260509075658.4306-1-yan.y.zhao@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/tdx.c