From: Sean Christopherson <seanjc@google.com>
To: Sean Christopherson <seanjc@google.com>,
Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
Aaron Lewis <aaronlewis@google.com>, Like Xu <likexu@tencent.com>,
Wanpeng Li <wanpengli@tencent.com>
Subject: [PATCH 0/4] KVM: x86/pmu: Counter reprogramming fixes
Date: Fri, 23 Sep 2022 00:13:51 +0000 [thread overview]
Message-ID: <20220923001355.3741194-1-seanjc@google.com> (raw)
The headliner is Like's patches to fix a bug where KVM's sleeps with IRQs
disabled due to attempting to pause and reprogram PMU counters in the
VM-Exit fast path.
Patches 1 and 2 (mine) fix mostly theoretical issues found when reviewing
Like's code, and would conflict with Like's patches if posted separately.
This is _very_ lightly tested, borderline RFC, but Like's updated PMU
KUT tests pass, as do the filter selftests, and I'm feeling lucky.
And I'm offline until Monday, so a traditional Friday patch bomb is in
order ;-)
Like Xu (2):
KVM: x86/pmu: Defer reprogram_counter() to kvm_pmu_handle_event()
KVM: x86/pmu: Defer counter emulated overflow via pmc->prev_counter
Sean Christopherson (2):
KVM: x86/pmu: Force reprogramming of all counters on PMU filter change
KVM: x86/pmu: Clear "reprogram" bit if counter is disabled or
disallowed
arch/x86/include/asm/kvm_host.h | 17 ++++--
arch/x86/kvm/pmu.c | 92 +++++++++++++++++++++------------
arch/x86/kvm/pmu.h | 6 ++-
arch/x86/kvm/svm/pmu.c | 4 +-
arch/x86/kvm/vmx/pmu_intel.c | 10 ++--
5 files changed, 86 insertions(+), 43 deletions(-)
base-commit: efc8a6befa592de7e2fd4927b1b9a56a5ec7d8cf
--
2.37.3.998.g577e59143f-goog
next reply other threads:[~2022-09-23 0:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-23 0:13 Sean Christopherson [this message]
2022-09-23 0:13 ` [PATCH 1/4] KVM: x86/pmu: Force reprogramming of all counters on PMU filter change Sean Christopherson
2022-10-13 12:01 ` Like Xu
2022-10-13 20:53 ` Sean Christopherson
2022-10-14 6:41 ` Like Xu
2022-09-23 0:13 ` [PATCH 2/4] KVM: x86/pmu: Clear "reprogram" bit if counter is disabled or disallowed Sean Christopherson
2022-10-14 7:14 ` Like Xu
2022-10-14 16:26 ` Sean Christopherson
2022-09-23 0:13 ` [PATCH 3/4] KVM: x86/pmu: Defer reprogram_counter() to kvm_pmu_handle_event() Sean Christopherson
2022-09-23 0:13 ` [PATCH 4/4] KVM: x86/pmu: Defer counter emulated overflow via pmc->prev_counter Sean Christopherson
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=20220923001355.3741194-1-seanjc@google.com \
--to=seanjc@google.com \
--cc=aaronlewis@google.com \
--cc=kvm@vger.kernel.org \
--cc=likexu@tencent.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--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®