linux/tools/testing/selftests/kvm
Sean Christopherson 58606e6025 KVM: selftests: Convert xss_msr_test away from VCPU_ID
Convert xss_msr_test to use vm_create_with_one_vcpu() and pass around a
'struct kvm_vcpu' object instead of using a global VCPU_ID.  Note, this
is a "functional" change in the sense that the test now creates a vCPU
with vcpu_id==0 instead of vcpu_id==1.  The non-zero VCPU_ID was 100%
arbitrary and added little to no validation coverage.  If testing
non-zero vCPU IDs is desirable for generic tests, that can be done in the
future by tweaking the VM creation helpers.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-06-11 11:46:38 -04:00
..
aarch64 KVM: selftests: Make vm_create() a wrapper that specifies VM_MODE_DEFAULT 2022-06-11 11:46:34 -04:00
include KVM: selftests: Return the created vCPU from vm_vcpu_add() 2022-06-11 11:46:36 -04:00
lib KVM: selftests: Return the created vCPU from vm_vcpu_add() 2022-06-11 11:46:36 -04:00
s390x KVM: selftests: Add another underscore to inner ioctl() helpers 2022-06-11 10:14:58 -04:00
x86_64 KVM: selftests: Convert xss_msr_test away from VCPU_ID 2022-06-11 11:46:38 -04:00
.gitignore KVM: selftests: Add a test to get/set triple fault event 2022-06-08 05:21:13 -04:00
access_tracking_perf_test.c KVM: selftests: Move vCPU thread creation and joining to common helpers 2021-11-16 07:43:28 -05:00
config selftests: kvm: Adding config fragments 2019-08-09 16:52:38 +02:00
demand_paging_test.c KVM: selftests: Use __KVM_SYSCALL_ERROR() to handle non-KVM syscall errors 2022-06-11 10:21:07 -04:00
dirty_log_perf_test.c KVM: selftests: Simplify KVM_ENABLE_CAP helper APIs 2022-06-11 11:46:26 -04:00
dirty_log_test.c KVM: selftests: Make vm_create() a wrapper that specifies VM_MODE_DEFAULT 2022-06-11 11:46:34 -04:00
hardware_disable_test.c KVM: selftests: Make vm_create() a wrapper that specifies VM_MODE_DEFAULT 2022-06-11 11:46:34 -04:00
kvm_binary_stats_test.c KVM: selftests: Rename vm_create() => vm_create_barebones(), drop param 2022-06-11 11:46:33 -04:00
kvm_create_max_vcpus.c KVM: selftests: Rename vm_create() => vm_create_barebones(), drop param 2022-06-11 11:46:33 -04:00
kvm_page_table_test.c KVM: selftests: Silence compiler warning in the kvm_page_table_test 2022-04-21 13:16:14 -04:00
Makefile Merge branch 'kvm-5.20-early' 2022-06-09 11:38:12 -04:00
max_guest_memory_test.c KVM: selftests: Replace x86_page_size with PG_LEVEL_XX 2022-06-09 10:52:22 -04:00
memslot_modification_stress_test.c KVM: selftests: Use perf_test_destroy_vm in memslot_modification_stress_test 2021-11-16 07:43:28 -05:00
memslot_perf_test.c KVM: selftests: Convert memslot_perf_test away from VCPU_ID 2022-06-11 11:46:37 -04:00
rseq_test.c KVM: selftests: Convert rseq_test away from VCPU_ID 2022-06-11 11:46:38 -04:00
set_memory_region_test.c KVM: selftests: Rename vm_create() => vm_create_barebones(), drop param 2022-06-11 11:46:33 -04:00
settings selftests: kvm: Raise the default timeout to 120 seconds 2021-02-09 08:17:08 -05:00
steal_time.c KVM: selftests: Add another underscore to inner ioctl() helpers 2022-06-11 10:14:58 -04:00
system_counter_offset_test.c KVM: selftests: Split get/set device_attr helpers 2022-06-11 11:46:23 -04:00