mbox series

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

Message ID 20240628005558.3835480-1-seanjc@google.com (mailing list archive)
Headers show
Series KVM: selftests: Fix PMU counters test flakiness | expand

Message

Sean Christopherson June 28, 2024, 12:55 a.m. UTC
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

Comments

Sean Christopherson June 28, 2024, 10:55 p.m. UTC | #1
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