All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v8 0/4] KVM: selftests: randomize memory access of dirty_log_perf_test
@ 2022-10-27 20:56 Colton Lewis
  2022-10-27 20:56 ` [PATCH v8 1/4] KVM: selftests: implement random number generator for guest code Colton Lewis
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Colton Lewis @ 2022-10-27 20:56 UTC (permalink / raw)
  To: kvm; +Cc: pbonzini, maz, dmatlack, seanjc, oupton, ricarkol, Colton Lewis

Add the ability to randomize parts of dirty_log_perf_test,
specifically the order pages are accessed and whether pages are read
or written.

v8:

NOTE: Ricardo and, David please look again. Sean requested I remove
your Reviewed-by tags due to changes in the last round. Main change
was the interface for the RNG.

David: I made the default seed 1 since 0 isn't a valid input for this
pRNG.

Split random number generator from use in dirty_log_perf_test.c and
perf_test_utils.c

Colton Lewis (4):
  KVM: selftests: implement random number generator for guest code
  KVM: selftests: create -r argument to specify random seed
  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       | 57 ++++++++++++++-----
 .../selftests/kvm/include/perf_test_util.h    |  8 ++-
 .../testing/selftests/kvm/include/test_util.h |  7 +++
 .../selftests/kvm/lib/perf_test_util.c        | 32 +++++++++--
 tools/testing/selftests/kvm/lib/test_util.c   | 17 ++++++
 6 files changed, 99 insertions(+), 24 deletions(-)

--
2.38.1.273.g43a17bfeac-goog

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-10-31 16:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-27 20:56 [PATCH v8 0/4] KVM: selftests: randomize memory access of dirty_log_perf_test Colton Lewis
2022-10-27 20:56 ` [PATCH v8 1/4] KVM: selftests: implement random number generator for guest code Colton Lewis
2022-10-27 20:56 ` [PATCH v8 2/4] KVM: selftests: create -r argument to specify random seed Colton Lewis
2022-10-28 20:49   ` Sean Christopherson
2022-10-31 16:05     ` Colton Lewis
2022-10-27 20:56 ` [PATCH v8 3/4] KVM: selftests: randomize which pages are written vs read Colton Lewis
2022-10-27 20:56 ` [PATCH v8 4/4] KVM: selftests: randomize page access order Colton Lewis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.