lkml.org 
[lkml]   [2021]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] KVM: x86: avoid out of bounds indices for fixed performance counters
From
On 12/10/21 09:59, Like Xu wrote:
>
> How about introducing a static "struct x86_pmu_capability" variable [1]
> so that we can
>
> (1) setup num_counters_fixed just once in the kvm_init_pmu_capability(),
> and
> (2) avoid repeated calls to perf_get_x86_pmu_capability() ;

Yes, that works.

> [1]
> https://lore.kernel.org/kvm/20210806133802.3528-17-lingshan.zhu@intel.com/
> By the way, do you need a re-based version of the guest PBES feature ?

Sure, please send one.

Paolo

\
 
 \ /
  Last update: 2021-12-10 10:04    [W:0.035 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site