]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Support multiple vCPUs in demand paging test
authorBen Gardon <bgardon@google.com>
Thu, 23 Jan 2020 18:04:33 +0000 (10:04 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:57:05 +0000 (17:57 +0100)
commit68837892d16ed9e2275773612b035dc5cb44e3f8
treec12b5b8104f9ca2e77e8679f013326a3740aa956
parentdd3af1f8dc0c65c1aecfd7af1c04cc28660f1704
KVM: selftests: Support multiple vCPUs in demand paging test

Most VMs have multiple vCPUs, the concurrent execution of which has a
substantial impact on demand paging performance. Add an option to create
multiple vCPUs to each access disjoint regions of memory.

Signed-off-by: Ben Gardon <bgardon@google.com>
[guest_code() can't return, use GUEST_ASSERT(). Ensure the number
 of guests pages is compatible with the host.]
Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/demand_paging_test.c