Add the ability to randomize parts of dirty_log_perf_test, specifically the order pages are accessed and whether pages are read or written. v5: Return a few lines in guest_code that got lost when rebasing for v4. Provide the populate settings _before_ the vcpu threads start to ensure they take effect for the whole populate phase. Colton Lewis (3): KVM: selftests: implement random number generation 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 | 49 +++++++++++++------ .../selftests/kvm/include/perf_test_util.h | 8 ++- .../testing/selftests/kvm/include/test_util.h | 2 + .../selftests/kvm/lib/perf_test_util.c | 36 +++++++++++--- tools/testing/selftests/kvm/lib/test_util.c | 9 ++++ 6 files changed, 81 insertions(+), 25 deletions(-) -- 2.37.2.789.g6183377224-goog