aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2023-01-28 00:14:27 +0000
committerSean Christopherson <seanjc@google.com>2023-04-05 17:00:17 -0700
commit098f4c061ea10b777033b71c10bd9fd706820ee9 (patch)
treed26bcef602bd8206720e28504d2ec7521f864a4b /tools/perf/scripts/python/export-to-postgresql.py
parentKVM: x86/pmu: Zero out pmu->all_valid_pmc_idx each time it's refreshed (diff)
downloadlinux-rng-098f4c061ea10b777033b71c10bd9fd706820ee9.tar.xz
linux-rng-098f4c061ea10b777033b71c10bd9fd706820ee9.zip
KVM: x86/pmu: Disallow legacy LBRs if architectural LBRs are available
Disallow enabling LBR support if the CPU supports architectural LBRs. Traditional LBR support is absent on CPU models that have architectural LBRs, and KVM doesn't yet support arch LBRs, i.e. KVM will pass through non-existent MSRs if userspace enables LBRs for the guest. Cc: stable@vger.kernel.org Cc: Yang Weijiang <weijiang.yang@intel.com> Cc: Like Xu <like.xu.linux@gmail.com> Reported-by: Paolo Bonzini <pbonzini@redhat.com> Fixes: be635e34c284 ("KVM: vmx/pmu: Expose LBR_FMT in the MSR_IA32_PERF_CAPABILITIES") Tested-by: Like Xu <likexu@tencent.com> Link: https://lore.kernel.org/r/20230128001427.2548858-1-seanjc@google.com 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