Re: [GIT PULL] KVM: x86: PMU changes for 6.6

From: Paolo Bonzini
Date: Thu Aug 31 2023 - 13:32:53 EST


On Wed, Aug 30, 2023 at 2:07 AM Sean Christopherson <seanjc@xxxxxxxxxx> wrote:
>
> Please pull a light round of PMU changes for 6.6. Basically just a single
> cleanup. Note, there's a counter truncation fix that I have been neglecting
> for a few weeks[*], I'm planning on getting back to that after the merge window.
>
> [*] https://lore.kernel.org/all/20230504120042.785651-1-rkagan@xxxxxxxxx
>
> The following changes since commit fdf0eaf11452d72945af31804e2a1048ee1b574c:
>
> Linux 6.5-rc2 (2023-07-16 15:10:37 -0700)
>
> are available in the Git repository at:
>
> https://github.com/kvm-x86/linux.git tags/kvm-x86-pmu-6.6
>
> for you to fetch changes up to 6de2ccc169683bf81feba163834dae7cdebdd826:
>
> KVM: x86/pmu: Move .hw_event_available() check out of PMC filter helper (2023-08-02 16:44:36 -0700)

Pulled, thanks.

Paolo

>
> ----------------------------------------------------------------
> KVM x86 PMU changes for 6.6:
>
> - Clean up KVM's handling of Intel architectural events
>
> ----------------------------------------------------------------
> Sean Christopherson (4):
> KVM: x86/pmu: Use enums instead of hardcoded magic for arch event indices
> KVM: x86/pmu: Simplify intel_hw_event_available()
> KVM: x86/pmu: Require nr fixed_pmc_events to match nr max fixed counters
> KVM: x86/pmu: Move .hw_event_available() check out of PMC filter helper
>
> arch/x86/kvm/pmu.c | 4 +--
> arch/x86/kvm/vmx/pmu_intel.c | 81 ++++++++++++++++++++++++++++++--------------
> 2 files changed, 56 insertions(+), 29 deletions(-)
>