This patch adds the ability to randomize parts of dirty_log_perf_test, specifically the order pages are accessed and whether pages are read or written. This is implemented through a table of random numbers stored in VM memory and refreshed between test iterations. Patch series based on kvm/queue Colton Lewis (3): KVM: selftests: Add random table to randomize memory access KVM: selftests: Randomize which pages are written vs read KVM: selftests: Randomize page access order .../selftests/kvm/dirty_log_perf_test.c | 34 ++++++++-- .../selftests/kvm/include/perf_test_util.h | 6 ++ .../selftests/kvm/lib/perf_test_util.c | 68 ++++++++++++++++++- 3 files changed, 98 insertions(+), 10 deletions(-) -- 2.37.1.559.g78731f0fdb-goog