linux-stable/tools/testing/selftests/kvm
Sean Christopherson 5a7591176c KVM: selftests: Expand x86's sregs test to cover illegal CR0 values
Add coverage to x86's set_sregs_test to verify KVM rejects vendor-agnostic
illegal CR0 values, i.e. CR0 values whose legality doesn't depend on the
current VMX mode.  KVM historically has neglected to reject bad CR0s from
userspace, i.e. would happily accept a completely bogus CR0 via
KVM_SET_SREGS{2}.

Punt VMX specific subtests to future work, as they would require quite a
bit more effort, and KVM gets coverage for CR0 checks in general through
other means, e.g. KVM-Unit-Tests.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20230613203037.1968489-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2023-07-29 11:05:32 -04:00
..
aarch64 KVM: selftests: get-reg-list: add Permission Indirection registers 2023-06-06 16:52:42 +01:00
include KVM: selftests: Use pread() to read binary stats header 2023-07-29 11:05:28 -04:00
lib KVM: selftests: Allow specify physical cpu list in demand paging test 2023-06-06 17:29:49 -07:00
s390x KVM: s390: selftests: add selftest for CMMA migration 2023-06-16 11:05:31 +02:00
x86_64 KVM: selftests: Expand x86's sregs test to cover illegal CR0 values 2023-07-29 11:05:32 -04:00
.gitignore KVM: selftests: Use pattern matching in .gitignore 2022-12-27 06:00:46 -05:00
Makefile KVM selftests changes for 6.5: 2023-07-01 07:19:09 -04:00
access_tracking_perf_test.c Merge remote-tracking branch 'kvm/queue' into HEAD 2022-12-12 15:54:07 -05:00
config KVM: selftests: Fixup config fragment for access_tracking_perf_test 2023-03-30 19:27:56 +01:00
demand_paging_test.c KVM: selftests: Allow specify physical cpu list in demand paging test 2023-06-06 17:29:49 -07:00
dirty_log_perf_test.c KVM: selftests: Allow specify physical cpu list in demand paging test 2023-06-06 17:29:49 -07:00
dirty_log_test.c Merge remote-tracking branch 'kvm/queue' into HEAD 2022-12-12 15:54:07 -05:00
hardware_disable_test.c KVM: selftests: Move per-VM/per-vCPU nr pages calculation to __vm_create() 2022-06-11 11:47:26 -04:00
kvm_binary_stats_test.c KVM: selftests: Verify stats fd is usable after VM fd has been closed 2023-07-29 11:05:30 -04:00
kvm_create_max_vcpus.c KVM: selftests: Add TEST_REQUIRE macros to reduce skipping copy+paste 2022-06-11 11:47:29 -04:00
kvm_page_table_test.c KVM: selftests: Drop now-unnecessary ucall_uninit() 2022-11-16 16:58:53 -08:00
max_guest_memory_test.c KVM: selftests: Add atoi_positive() and atoi_non_negative() for input validation 2022-11-16 10:03:24 -08:00
memslot_modification_stress_test.c KVM/arm64 updates for 6.2 2022-12-09 09:12:12 +01:00
memslot_perf_test.c KVM: selftests: Assign guest page size in sync area early in memslot_perf_test 2023-02-07 15:44:19 -08:00
rseq_test.c KVM: selftests: Fix build of rseq test 2023-01-30 16:29:45 +01:00
set_memory_region_test.c KVM: selftests: Make vCPU exit reason test assertion common 2023-03-14 10:20:09 -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: Automatically do init_ucall() for non-barebones VMs 2022-11-16 16:58:51 -08:00
system_counter_offset_test.c KVM: selftests: Automatically do init_ucall() for non-barebones VMs 2022-11-16 16:58:51 -08:00