linux/tools/testing/selftests/kvm/lib
David Matlack 32bdc01988 KVM: selftests: Move vcpu_args_set into perf_test_util
perf_test_util is used to set up KVM selftests where vCPUs touch a
region of memory. The guest code is implemented in perf_test_util.c (not
the calling selftests). The guest code requires a 1 parameter, the
vcpuid, which has to be set by calling vcpu_args_set(vm, vcpu_id, 1,
vcpu_id).

Today all of the selftests that use perf_test_util are making this call.
Instead, perf_test_util should just do it. This will save some code but
more importantly prevents mistakes since totally non-obvious that this
needs to be called and failing to do so results in vCPUs not accessing
the right regions of memory.

Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20210805172821.2622793-1-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-08-06 10:01:40 -04:00
..
aarch64 KVM: selftests: Address extra memslot parameters in vm_vaddr_alloc 2021-07-15 10:19:41 -04:00
s390x KVM: selftests: Add wrapper to allocate page table page 2021-06-24 11:47:49 -04:00
x86_64 KVM/arm64 updates for v5.14. 2021-06-25 11:24:24 -04:00
assert.c KVM: selftests: Print the errno besides error-string in TEST_ASSERT 2021-04-20 04:18:52 -04:00
elf.c KVM: selftests: Unconditionally use memslot 0 for vaddr allocations 2021-06-24 11:47:42 -04:00
guest_modes.c KVM: selftests: introduce P44V64 for z196 and EC12 2021-07-06 10:05:16 +02:00
io.c selftests: kvm: Uses TEST_FAIL in tests/utilities 2020-03-16 17:59:11 +01:00
kvm_util_internal.h KVM: selftests: create alias mappings when using shared memory 2021-05-27 07:45:56 -04:00
kvm_util.c Merge tag 'kvm-s390-master-5.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD 2021-07-14 12:14:27 -04:00
perf_test_util.c KVM: selftests: Move vcpu_args_set into perf_test_util 2021-08-06 10:01:40 -04:00
rbtree.c KVM: selftests: Keep track of memslots more efficiently 2021-05-27 07:45:54 -04:00
sparsebit.c selftests: remove duplicate include 2021-05-07 00:26:33 -07:00
test_util.c KVM: selftests: Fix compiling errors when initializing the static structure 2021-06-10 07:46:10 -04:00