summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2023-07-21 23:18:52 +0300
committerSean Christopherson <seanjc@google.com>2023-08-04 01:37:15 +0300
commit5df8ecfe3632d5879d1f154f7aa8de441b5d1c89 (patch)
treefaefab43b7722d514cb1db5375729b5693ceb8c2 /tools/perf/scripts/python/task-analyzer.py
parent554856b69e3d1faae6f056f75ed6262b5eb01546 (diff)
downloadlinux-5df8ecfe3632d5879d1f154f7aa8de441b5d1c89.tar.xz
x86/virt: Drop unnecessary check on extended CPUID level in cpu_has_svm()
Drop the explicit check on the extended CPUID level in cpu_has_svm(), the kernel's cached CPUID info will leave the entire SVM leaf unset if said leaf is not supported by hardware. Prior to using cached information, the check was needed to avoid false positives due to Intel's rather crazy CPUID behavior of returning the values of the maximum supported leaf if the specified leaf is unsupported. Fixes: 682a8108872f ("x86/kvm/svm: Simplify cpu_has_svm()") Link: https://lore.kernel.org/r/20230721201859.2307736-13-seanjc@google.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