diff options
| author | Frank Zhu <frankzhu@zhaoxin.com> | 2026-09-10 19:54:07 +0800 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-09-11 09:35:53 -0700 |
| commit | 9bb23b9e85ea7e8f8ef65d31cee15aa44173cb97 (patch) | |
| tree | 77ebfaf5eacd6bef2261ad415f4c03ed6f8285b2 /tools/perf/scripts/python/task-analyzer.py | |
| parent | d80ddf303f3a31440de93572407c68d0d7493283 (diff) | |
KVM: selftests: Use host_cpu_is_intel_compatible for mediated PMU
kvm_is_mediated_pmu_enabled() returns kvm_amd's enable_mediated_pmu
module parameter unless the host CPU is Intel. Zhaoxin CPUs implement
VMX-compatible virtualization and are handled by KVM's VMX backend, so
on Zhaoxin hosts the helper wrongly reports kvm_amd's parameter.
Gate the check on host_cpu_is_intel_compatible so that Zhaoxin CPUs,
like Intel CPUs, query kvm_intel's enable_mediated_pmu instead. This
does not change behavior on Intel, and AMD and other non-Intel-
compatible CPUs still fall back to kvm_amd's parameter.
Signed-off-by: Frank Zhu <frankzhu@zhaoxin.com>
Link: https://patch.msgid.link/20260910115414.3015260-3-ewanhai-oc@zhaoxin.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
