aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorVishal Verma <[email protected]>2025-03-18 06:35:08 +0000
committerSean Christopherson <[email protected]>2025-05-02 20:37:25 +0000
commit1a81d9d5a1da862ccc49cedec1df603aafa7c600 (patch)
treef2578ed45573cb94a635b14aa0c52c3ba9cfb2c3 /rust/helpers/mutex.c
parentKVM: VMX: Move vt_apicv_pre_state_restore() to posted_intr.c and tweak name (diff)
downloadkernel-1a81d9d5a1da862ccc49cedec1df603aafa7c600.tar.gz
kernel-1a81d9d5a1da862ccc49cedec1df603aafa7c600.zip
KVM: VMX: Define a VMX glue macro for kvm_complete_insn_gp()
Define kvm_complete_insn_gp() as vmx_complete_emulated_msr() and use the glue wrapper in vt_complete_emulated_msr() so that VT's .complete_emulated_msr() implementation follows the soon-to-be-standard pattern of: vt_abc: if (is_td()) return tdx_abc(); return vmx_abc(); This will allow generating such wrappers via a macro, which in turn will make it trivially easy to skip the wrappers entirely when KVM_INTEL_TDX=n. Suggested-by: Sean Christopherson <[email protected]> Link: https://lore.kernel.org/kvm/[email protected]/ Cc: Sean Christopherson <[email protected]> Cc: Rick Edgecombe <[email protected]> Signed-off-by: Vishal Verma <[email protected]> Link: https://lore.kernel.org/r/[email protected] [sean: massage shortlog+changelog] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions