From: Paolo Bonzini <pbonzini@redhat.com>
To: Like Xu <like.xu.linux@gmail.com>
Cc: jmattson@google.com, wanpengli@tencent.com,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: x86: avoid out of bounds indices for fixed performance counters
Date: Fri, 10 Dec 2021 10:03:19 +0100 [thread overview]
Message-ID: <95bf3dca-c6d1-02c8-40b6-8bb29a3a7a36@redhat.com> (raw)
In-Reply-To: <7a2fc1d7-6ef4-cf4c-5ba0-c0eaefd2c66b@gmail.com>
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
prev parent reply other threads:[~2021-12-10 9:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-09 19:11 Paolo Bonzini
2021-12-10 8:59 ` Like Xu
2021-12-10 9:03 ` Paolo Bonzini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=95bf3dca-c6d1-02c8-40b6-8bb29a3a7a36@redhat.com \
--to=pbonzini@redhat.com \
--cc=jmattson@google.com \
--cc=kvm@vger.kernel.org \
--cc=like.xu.linux@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=wanpengli@tencent.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®