mbox series

[0/3] KVM: selftests: Randomize memory access of dirty_log_perf_test

Message ID 20220810175830.2175089-1-coltonlewis@google.com (mailing list archive)
Headers show
Series KVM: selftests: Randomize memory access of dirty_log_perf_test | expand

Message

Colton Lewis Aug. 10, 2022, 5:58 p.m. UTC
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(-)