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 creating an array of random numbers for each vCPU when the VM is created. Colton Lewis (3): KVM: selftests: Create source of randomness for guest code. KVM: selftests: Randomize which pages are written vs read. KVM: selftests: Randomize page access order. .../selftests/kvm/access_tracking_perf_test.c | 2 +- .../selftests/kvm/dirty_log_perf_test.c | 47 +++++++++----- .../selftests/kvm/include/perf_test_util.h | 9 ++- .../selftests/kvm/lib/perf_test_util.c | 65 +++++++++++++++++-- 4 files changed, 99 insertions(+), 24 deletions(-) -- 2.37.1.595.g718a3a8f04-goog