diff options
author | 2025-03-18 00:35:08 -0600 | |
---|---|---|
committer | 2025-05-02 13:37:25 -0700 | |
commit | 1a81d9d5a1da862ccc49cedec1df603aafa7c600 (patch) | |
tree | f2578ed45573cb94a635b14aa0c52c3ba9cfb2c3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: VMX: Move vt_apicv_pre_state_restore() to posted_intr.c and tweak name (diff) | |
download | linux-rng-1a81d9d5a1da862ccc49cedec1df603aafa7c600.tar.xz linux-rng-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 <seanjc@google.com>
Link: https://lore.kernel.org/kvm/Z6v9yjWLNTU6X90d@google.com/
Cc: Sean Christopherson <seanjc@google.com>
Cc: Rick Edgecombe <rick.p.edgecombe@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Link: https://lore.kernel.org/r/20250318-vverma7-cleanup_x86_ops-v2-3-701e82d6b779@intel.com
[sean: massage shortlog+changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions