diff options
author | 2024-06-27 17:55:57 -0700 | |
---|---|---|
committer | 2024-06-28 08:44:03 -0700 | |
commit | 4669de42aa6c78669975d58c92433cdedeb7c2c3 (patch) | |
tree | cc36d9460e28e5191a10b34ab3cb71b02378ecc0 /scripts/generate_rust_analyzer.py | |
parent | KVM: selftests: Rework macros in PMU counters test to prep for multi-insn loop (diff) | |
download | wireguard-linux-4669de42aa6c78669975d58c92433cdedeb7c2c3.tar.xz wireguard-linux-4669de42aa6c78669975d58c92433cdedeb7c2c3.zip |
KVM: selftests: Increase robustness of LLC cache misses in PMU counters test
Currently the PMU counters test does a single CLFLUSH{,OPT} on the loop's
code, but due to speculative execution this might not cause LLC misses
within the measured section.
Instead of doing a single flush before the loop, do a cache flush on each
iteration of the loop to confuse the prediction and ensure that at least
one cache miss occurs within the measured section.
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
[sean: keep MFENCE, massage changelog]
Link: https://lore.kernel.org/r/20240628005558.3835480-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions