Like Xu d338d8789e KVM: x86/pmu: Advertise PERFCTR_CORE iff the min nr of counters is met
Enable and advertise PERFCTR_CORE if and only if the minimum number of
required counters are available, i.e. if perf says there are less than six
general purpose counters.

Opportunistically, use kvm_cpu_cap_check_and_set() instead of open coding
the check for host support.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Like Xu <likexu@tencent.com>
[sean: massage shortlog and changelog]
Link: https://lore.kernel.org/r/20230603011058.1038821-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
2023-06-06 17:31:44 -07:00
..
2023-04-27 16:36:55 -07:00
2023-04-28 14:02:54 -07:00
2023-04-28 14:02:54 -07:00
2023-04-27 10:45:30 -07:00
2023-04-28 14:02:54 -07:00
2023-04-08 13:45:37 -07:00
2023-04-28 14:02:54 -07:00