aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorVishal Verma <[email protected]>2025-03-18 06:35:07 +0000
committerSean Christopherson <[email protected]>2025-05-02 20:37:25 +0000
commit84ad4d834ce98542ad2910cecb409ba8fcfffa4b (patch)
tree7f6ff0b06c6ad0133efacf838c565f59eb11efbf /rust/helpers/mutex.c
parentKVM: x86: Revert kvm_x86_ops.mem_enc_ioctl() back to an OPTIONAL hook (diff)
downloadkernel-84ad4d834ce98542ad2910cecb409ba8fcfffa4b.tar.gz
kernel-84ad4d834ce98542ad2910cecb409ba8fcfffa4b.zip
KVM: VMX: Move vt_apicv_pre_state_restore() to posted_intr.c and tweak name
In preparation for a cleanup of the kvm_x86_ops struct for TDX, all vt_* functions are expected to act as glue functions that route to either tdx_* or vmx_* based on the VM type. Specifically, the pattern is: vt_abc: if (is_td()) return tdx_abc(); return vmx_abc(); But vt_apicv_pre_state_restore() does not follow this pattern. To facilitate that cleanup, rename and move vt_apicv_pre_state_restore() into posted_intr.c. Opportunistically turn vcpu_to_pi_desc() back into a static function, as the only reason it was exposed outside of posted_intr.c was for vt_apicv_pre_state_restore(). No functional change intended. Suggested-by: Sean Christopherson <[email protected]> Link: https://lore.kernel.org/kvm/[email protected]/ Cc: Sean Christopherson <[email protected]> Cc: Rick Edgecombe <[email protected]> Reviewed-by: Binbin Wu <[email protected]> Signed-off-by: Vishal Verma <[email protected]> Link: https://lore.kernel.org/r/[email protected] [sean: apply Chao's suggestions, massage shortlog] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions