diff options
author | Sean Christopherson <[email protected]> | 2022-10-06 00:03:08 +0000 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-11-02 13:17:58 -0400 |
commit | 145dfad998eac74abc59219d936e905766ba2d98 (patch) | |
tree | 2f3c21c089436c57917e234640f1ceee2bf4633d /drivers/usb/cdns3/cdns3-debug.h | |
parent | 7353633814f6e5b4899fb9ee1483709d6bb0e1cd (diff) |
KVM: VMX: Advertise PMU LBRs if and only if perf supports LBRs
Advertise LBR support to userspace via MSR_IA32_PERF_CAPABILITIES if and
only if perf fully supports LBRs. Perf may disable LBRs (by zeroing the
number of LBRs) even on platforms the allegedly support LBRs, e.g. if
probing any LBR MSRs during setup fails.
Fixes: be635e34c284 ("KVM: vmx/pmu: Expose LBR_FMT in the MSR_IA32_PERF_CAPABILITIES")
Reported-by: Like Xu <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Cc: [email protected]
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions