Re: [PATCH v4 0/9] KVM: selftests: Test the consistency of the PMU's CPUID and its features

From: Sean Christopherson
Date: Thu Oct 19 2023 - 20:28:51 EST


On Mon, Sep 11, 2023, Jinrong Liang wrote:
> Jinrong Liang (9):
> KVM: selftests: Add vcpu_set_cpuid_property() to set properties
> KVM: selftests: Extend this_pmu_has() and kvm_pmu_has() to check arch
> events
> KVM: selftests: Add pmu.h for PMU events and common masks
> KVM: selftests: Test Intel PMU architectural events on gp counters
> KVM: selftests: Test Intel PMU architectural events on fixed counters
> KVM: selftests: Test consistency of CPUID with num of gp counters
> KVM: selftests: Test consistency of CPUID with num of fixed counters
> KVM: selftests: Test Intel supported fixed counters bit mask
> KVM: selftests: Test consistency of PMU MSRs with Intel PMU version

I've pushed a modified version to

https://github.com/sean-jc/linux/branches x86/pmu_counter_tests

which also has fixes for KVM's funky handling of fixed counters. I'll wait for
you to respond, but will tentatively plan on posting the above branch as v5
some time next week.