linux-imx/tools/testing/selftests/kvm
Oliver Upton 59e9cd63a5 KVM: selftests: Add test for uaccesses to non-existent vgic-v2 CPUIF
[ Upstream commit 160933e330 ]

Assert that accesses to a non-existent vgic-v2 CPU interface
consistently fail across the various KVM device attr ioctls. This also
serves as a regression test for a bug wherein KVM hits a NULL
dereference when the CPUID specified in the ioctl is invalid.

Note that there is no need to print the observed errno, as TEST_ASSERT()
will take care of it.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240424173959.3776798-3-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:11:27 +02:00
..
aarch64 KVM: selftests: Add test for uaccesses to non-existent vgic-v2 CPUIF 2024-06-12 11:11:27 +02:00
include KVM selftests fixes for 6.6: 2023-10-15 08:25:18 -04:00
lib KVM: selftests: Remove obsolete and incorrect test case metadata 2023-10-04 12:53:05 -07:00
riscv KVM: riscv: selftests: Selectively filter-out AIA registers 2023-09-21 15:04:05 +05:30
s390x KVM: s390: selftests: Add selftest for single-stepping 2023-08-28 09:24:20 +00:00
x86_64 KVM: selftests: Avoid infinite loop in hyperv_features when invtsc is missing 2024-02-23 09:24:49 +01:00
.gitignore KVM: selftests: Use pattern matching in .gitignore 2022-12-27 06:00:46 -05: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 KVM: selftests: Fix a semaphore imbalance in the dirty ring logging test 2024-02-23 09:24:49 +01:00
get-reg-list.c KVM: selftests: Add skip_set facility to get_reg_list test 2023-08-09 12:15:22 +05:30
guest_print_test.c KVM: selftests: Rip out old, param-based guest assert macros 2023-08-02 14:43:16 -07:00
hardware_disable_test.c
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_page_table_test.c KVM: selftests: use unified time type for comparison 2023-08-02 13:36:08 -07:00
Makefile KVM/riscv changes for 6.6 2023-08-31 13:25:55 -04:00
max_guest_memory_test.c KVM: selftests: Rename the ASSERT_EQ macro 2023-08-02 14:34:01 -07: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: Zero-initialize entire test_result in memslot perf test 2023-10-05 19:23:47 -07: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: Rip out old, param-based guest assert macros 2023-08-02 14:43:16 -07:00
settings
steal_time.c KVM: selftests: Rip out old, param-based guest assert macros 2023-08-02 14:43:16 -07:00
system_counter_offset_test.c KVM: selftests: Automatically do init_ucall() for non-barebones VMs 2022-11-16 16:58:51 -08:00