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

From: Sean Christopherson
Date: Thu Jun 27 2024 - 20:56:11 EST


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@xxxxxxxxxx

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