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

From: Sean Christopherson
Date: Wed May 24 2023 - 18:54:00 EST


On Thu, Mar 23, 2023, Like Xu wrote:
> Hi,
>
> The KVM selfstests shows advantages over the KUT in terms of finding
> defects through flexible and varied guest settings form KVM user space.
>
> This patch set tests whether Intel vPMU works properly with different
> Intel CPUID.0xA configurations, in which three issues were identified.
> It also provides test scaffolding and a sufficient number of pmu test cases
> to subsequently provide adequate code coverage of AMD vPMU or Intel
> complex features such as LBR or PEBS in selftests.
>
> Please feel free to add more tests or share valuable comments.
>
> Related bugs:
> KVM: x86/pmu: Fix emulation on Intel counters' bit width
> (https://lore.kernel.org/kvm/20230322093117.48335-1-likexu@xxxxxxxxxxx/)
> KVM: x86/pmu: Add Intel PMU supported fixed counters bit mask
> (https://lore.kernel.org/kvm/20230321112742.25255-1-likexu@xxxxxxxxxxx/)

Can you send a single combined series for these fixes, plus the tests in this
series? I expect to apply the fixes before the tests, but I want to make it as
unlikely as possible that I forget and apply tests that fail.

Thanks!