Commit 92d80178 authored by Like Xu's avatar Like Xu Committed by Paolo Bonzini

perf/x86/intel: Fix the comment about guest LBR support on KVM

Starting from v5.12, KVM reports guest LBR and extra_regs support
when the host has relevant support. Just delete this part of the
comment and fix a typo incidentally.

Cc: Peter Zijlstra <peterz@infradead.org>
Reviewed-by: default avatarKan Liang <kan.liang@linux.intel.com>
Reviewed-by: default avatarAndi Kleen <ak@linux.intel.com>
Signed-off-by: default avatarLike Xu <like.xu@linux.intel.com>
Signed-off-by: default avatarYang Weijiang <weijiang.yang@intel.com>
Message-Id: <20220517154100.29983-2-weijiang.yang@intel.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 2f4073e0
...@@ -6501,8 +6501,7 @@ __init int intel_pmu_init(void) ...@@ -6501,8 +6501,7 @@ __init int intel_pmu_init(void)
x86_pmu.intel_ctrl); x86_pmu.intel_ctrl);
/* /*
* Access LBR MSR may cause #GP under certain circumstances. * Access LBR MSR may cause #GP under certain circumstances.
* E.g. KVM doesn't support LBR MSR * Check all LBR MSR here.
* Check all LBT MSR here.
* Disable LBR access if any LBR MSRs can not be accessed. * Disable LBR access if any LBR MSRs can not be accessed.
*/ */
if (x86_pmu.lbr_tos && !check_msr(x86_pmu.lbr_tos, 0x3UL)) if (x86_pmu.lbr_tos && !check_msr(x86_pmu.lbr_tos, 0x3UL))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment