diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-09-03 18:03:46 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-09-22 06:40:00 -0700 |
| commit | f305fd31f52a8d3ce4d2bf0c88c45bb7a373809c (patch) | |
| tree | 77992fc8205e66639ea5d5e210d5fe0c4fec9c6a /tools/perf/scripts/python/stackcollapse.py | |
| parent | d85f7dc8cf3c91a131946dae4c3aa8d9c97322d7 (diff) | |
KVM: VMX: Disallow using to_vmx() in common VT code
Poison to_vmx() in main.c and posted_intr.c so that attempting to interpret
the vCPU as a VMX vCPU will fail at compile time, as opposed to failing at
runtime, or worse corrupting state without outright failing.
Note, to_tdx() is buried in tdx.c, i.e. isn't broadly reachable, and so
doesn't need the same treatment as to_vmx().
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Tested-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260904010353.3175819-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
