]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit018494e6d8234c420e4f7236f502993df5584812
treec12b5b8104f9ca2e77e8679f013326a3740aa956
parent9bbf24744e12bb6b9b32e30917b07f9242cc0341
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