All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 0/3] KVM: selftests: randomize memory access of dirty_log_perf_test
@ 2022-10-19 22:13 Colton Lewis
  2022-10-19 22:13 ` [PATCH v7 1/3] KVM: selftests: implement random number generation for guest code Colton Lewis
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Colton Lewis @ 2022-10-19 22:13 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.

v7:

Encapsulate the random state inside a struct. Add detail to names of
those functions. Change interface so random function returns the next
random number rather than using an out parameter.

Rebased to kvm/queue to ensure freshness.

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       | 58 ++++++++++++++-----
 .../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, 100 insertions(+), 24 deletions(-)

--
2.38.0.413.g74048e4d9e-goog

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

end of thread, other threads:[~2022-10-27 20:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-19 22:13 [PATCH v7 0/3] KVM: selftests: randomize memory access of dirty_log_perf_test Colton Lewis
2022-10-19 22:13 ` [PATCH v7 1/3] KVM: selftests: implement random number generation for guest code Colton Lewis
2022-10-26 21:09   ` Sean Christopherson
2022-10-27 19:44     ` Colton Lewis
2022-10-27 20:17       ` Sean Christopherson
2022-10-19 22:13 ` [PATCH v7 2/3] KVM: selftests: randomize which pages are written vs read Colton Lewis
2022-10-19 22:13 ` [PATCH v7 3/3] KVM: selftests: randomize page access order Colton Lewis
2022-10-26 21:13   ` Sean Christopherson
2022-10-27 19:44     ` Colton Lewis
2022-10-26 21:13 ` [PATCH v7 0/3] KVM: selftests: randomize memory access of dirty_log_perf_test Sean Christopherson

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.