perf/x86/intel: Fix the comment about guest LBR support on KVM
authorLike Xu <like.xu@linux.intel.com>
Tue, 17 May 2022 15:40:45 +0000 (11:40 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 17:06:14 +0000 (13:06 -0400)
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: Kan Liang <kan.liang@linux.intel.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Like Xu <like.xu@linux.intel.com>
Signed-off-by: Yang Weijiang <weijiang.yang@intel.com>
Message-Id: <20220517154100.29983-2-weijiang.yang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/events/intel/core.c

index 39832a5e7d759d069f7ee05af516cad969e47f63..4e9b7af9cc45571d5c6e80eb51d063f24a4b42d9 100644 (file)
@@ -6501,8 +6501,7 @@ __init int intel_pmu_init(void)
                                          x86_pmu.intel_ctrl);
        /*
         * Access LBR MSR may cause #GP under certain circumstances.
-        * E.g. KVM doesn't support LBR MSR
-        * Check all LBT MSR here.
+        * Check all LBR MSR here.
         * Disable LBR access if any LBR MSRs can not be accessed.
         */
        if (x86_pmu.lbr_tos && !check_msr(x86_pmu.lbr_tos, 0x3UL))