]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Support multiple slots in dirty_log_perf_test
authorDavid Matlack <dmatlack@google.com>
Wed, 4 Aug 2021 22:28:44 +0000 (22:28 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Aug 2021 11:53:01 +0000 (07:53 -0400)
commit33e51d157dba4256eeb815ffb7d1d519ed266f34
treec1efa647ff12b8bdc66f9dc45c6b11ff75a7abea
parentf011cac145a68b927eab9b11f260f4240bdb3dbf
KVM: selftests: Support multiple slots in dirty_log_perf_test

Introduce a new option to dirty_log_perf_test: -x number_of_slots. This
causes the test to attempt to split the region of memory into the given
number of slots. If the region cannot be evenly divided, the test will
fail.

This allows testing with more than one slot and therefore measure how
performance scales with the number of memslots.

Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20210804222844.1419481-8-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/access_tracking_perf_test.c
tools/testing/selftests/kvm/demand_paging_test.c
tools/testing/selftests/kvm/dirty_log_perf_test.c
tools/testing/selftests/kvm/include/perf_test_util.h
tools/testing/selftests/kvm/lib/perf_test_util.c
tools/testing/selftests/kvm/memslot_modification_stress_test.c