]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Add option to overlap vCPU memory access
authorBen Gardon <bgardon@google.com>
Tue, 12 Jan 2021 21:42:52 +0000 (13:42 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:19 +0000 (05:27 -0500)
commit06c96102dc30c85978fc29690cba456a194ae65c
treef519e6acb0f99554fcf298039b8de9464ae45369
parent68c68f0deb98414a3a07d9169c151c042221fe19
KVM: selftests: Add option to overlap vCPU memory access

Add an option to overlap the ranges of memory each vCPU accesses instead
of partitioning them. This option will increase the probability of
multiple vCPUs faulting on the same page at the same time, and causing
interesting races, if there are bugs in the page fault handler or
elsewhere in the kernel.

Reviewed-by: Jacob Xu <jacobhxu@google.com>
Reviewed-by: Makarand Sonare <makarandsonare@google.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210112214253.463999-6-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
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