KVM: selftests: Move dirty logging functions to memstress.(c|h)
authorBen Gardon <bgardon@google.com>
Tue, 31 Jan 2023 18:18:19 +0000 (18:18 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 1 Jun 2023 21:03:18 +0000 (14:03 -0700)
commitde10b798055db5df93474cdfa5dbffc57169f458
tree4315aab96231cb28d7e3b004763f56d6faa8cf4d
parent07b4b2f4047f600ca7974797900b7409081f826c
KVM: selftests: Move dirty logging functions to memstress.(c|h)

Move some helper functions from dirty_log_perf_test.c to the memstress
library so that they can be used in a future commit which tests page
splitting during dirty logging.

Reviewed-by: Vipin Sharma <vipinsh@google.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Link: https://lore.kernel.org/r/20230131181820.179033-2-bgardon@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/dirty_log_perf_test.c
tools/testing/selftests/kvm/include/memstress.h
tools/testing/selftests/kvm/lib/memstress.c