[PATCH 0/2] KVM: selftests: Fix PMU counters test flakiness

Sean Christopherson posted 2 patches 1 year, 5 months ago
.../selftests/kvm/x86_64/pmu_counters_test.c  | 44 ++++++++++++-------
1 file changed, 29 insertions(+), 15 deletions(-)
[PATCH 0/2] KVM: selftests: Fix PMU counters test flakiness
Posted by Sean Christopherson 1 year, 5 months ago
v2 of Maxim's patch to fix the flakiness with the PMU counters test do to
a single CLFLUSH not guaranteeing an LLC miss.

v2:
 - Add a prep patch to tweak the macros in preparation for moving CLFUSH{,OPT}
   into the loop.
 - Keep the MFENCE (because paranoia doesn't hurt in this case).

v1: https://lore.kernel.org/all/20240621204305.1730677-1-mlevitsk@redhat.com

Maxim Levitsky (1):
  KVM: selftests: Increase robustness of LLC cache misses in PMU
    counters test

Sean Christopherson (1):
  KVM: selftests: Rework macros in PMU counters test to prep for
    multi-insn loop

 .../selftests/kvm/x86_64/pmu_counters_test.c  | 44 ++++++++++++-------
 1 file changed, 29 insertions(+), 15 deletions(-)


base-commit: c81b138d5075c6f5ba3419ac1d2a2e7047719c14
-- 
2.45.2.803.g4e1b14247a-goog
Re: [PATCH 0/2] KVM: selftests: Fix PMU counters test flakiness
Posted by Sean Christopherson 1 year, 5 months ago
On Thu, 27 Jun 2024 17:55:55 -0700, Sean Christopherson wrote:
> v2 of Maxim's patch to fix the flakiness with the PMU counters test do to
> a single CLFLUSH not guaranteeing an LLC miss.
> 
> v2:
>  - Add a prep patch to tweak the macros in preparation for moving CLFUSH{,OPT}
>    into the loop.
>  - Keep the MFENCE (because paranoia doesn't hurt in this case).
> 
> [...]

Applied to kvm-x86 selftests, thanks!

[1/2] KVM: selftests: Rework macros in PMU counters test to prep for multi-insn loop
      https://github.com/kvm-x86/linux/commit/5bb9af07d37c
[2/2] KVM: selftests: Increase robustness of LLC cache misses in PMU counters test
      https://github.com/kvm-x86/linux/commit/4669de42aa6c

--
https://github.com/kvm-x86/linux/tree/next