lkml.org 
[lkml]   [2021]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2 2/6] KVM: x86/pmu: Refactoring find_arch_event() to pmc_perf_hw_id()
From
On 12/9/21 04:52, Jim Mattson wrote:
> Why don't we just use PERF_TYPE_RAW for guest counters all of the
> time? What is the advantage of matching entries in a table so that we
> can use PERF_TYPE_HARDWARE?

In theory it's so that hosts without support for architectural PMU
events can map the architectural PMU events to their own. In practice,
we can probably return early from intel_pmu_refresh if the host does not
support X86_FEATURE_ARCH_PERFMON, because only the oldest Pentium 4
toasters^Wprocessors probably have VMX but lack architectural PMU.

Paolo

\
 
 \ /
  Last update: 2021-12-09 20:25    [W:0.172 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site