From: Sean Christopherson <seanjc@google.com>
To: Sean Christopherson <seanjc@google.com>,
Like Xu <like.xu.linux@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] KVM: x86/pmu: Zero out pmu->all_valid_pmc_idx each time it's refreshed
Date: Wed, 5 Apr 2023 16:59:32 -0700 [thread overview]
Message-ID: <168073781051.657542.2486795284440545503.b4-ty@google.com> (raw)
In-Reply-To: <20230404071759.75376-1-likexu@tencent.com>
On Tue, 04 Apr 2023 15:17:59 +0800, Like Xu wrote:
> The kvm_pmu_refresh() may be called repeatedly (e.g. configure guest
> CPUID repeatedly or update MSR_IA32_PERF_CAPABILITIES) and each
> call will use the last pmu->all_valid_pmc_idx value, with the residual
> bits introducing additional overhead later in the vPMU emulation.
>
>
Applied to kvm-x86 pmu, thanks!
[1/1] KVM: x86/pmu: Zero out pmu->all_valid_pmc_idx each time it's refreshed
https://github.com/kvm-x86/linux/commit/7e768ce8278b
--
https://github.com/kvm-x86/linux/tree/next
https://github.com/kvm-x86/linux/tree/fixes
prev parent reply other threads:[~2023-04-06 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-04 7:17 Like Xu
2023-04-05 23:59 ` Sean Christopherson [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=168073781051.657542.2486795284440545503.b4-ty@google.com \
--to=seanjc@google.com \
--cc=kvm@vger.kernel.org \
--cc=like.xu.linux@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.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®