linux/tools/testing/selftests/kvm/lib
Paolo Bonzini 15a9a2ba0c KVM selftests changes for 7.3, part 2
- Fix several issues with seeding KVM's pRNG, and rework the pRNG APIs to that
    the pRNG can be sanely used in host code, not just guest code.
 
  - Add an IRQ test to validate virtual IRQ deliverty for IRQs wired up via
    KVM_IRQFD + KVM_SET_GSI_ROUTING, with optional support for triggering IRQs
    via writes to an assigned VFIO device.
 
  - Add syscall wrappers to assert success on a variety of pthreads and CPU
    affinity APIs.
 
  - Set vCPU pthread affinity as early as possible to reduce contention issues
    that were surfaced by PREEMPT_LAZY, which result in runtimes of over a
    minute on large hosts, versus the expected ~5 seconds.
 
  - Rework the PMU counters test to run each testcase using a single VM with
    many vCPUs for each sub-testcase, instead of using a unique VM for each
    sub-testcase.  This cuts the runtime by ~20x.
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEKTobbabEP7vbhhN9OlYIJqCjN/0FAmp8yNoACgkQOlYIJqCj
 N/2s+w/+KtexoVLUzAy5DwIpm2g0pHqPAm5me7lTj1IuKyPxCksmmskNu3Nrfpn+
 0fp0QyB3gfUFscwKgqq8waLHBRyszQvTgfF43h/Bvu7QoNgoBViu9ybkd91REkSM
 CZj6ltUiHYJ1AmyB2khc5kPisLdZvEewSr1A2I9PudaPDa7DlOzN7DOCq4yePYkq
 4Bt7oFKDB/BH1Cv/QlCpUbseKLydBX8Zgd9QZy8bTqRdEeHywXfbKv1b1AkX8Vc+
 C0puEKrnJ6gluBTERYZ8+ibLBdewt/Hr+JdqlVtVkjSF2esGAWW//RuDlRj2zRzl
 MTj5BK8MXotmrHp0RZD+QTcG6JEOVM5XtRTstJP4taKV1jKXxHcCa3+9jOSFbcU1
 0E7cklQOwbgXIGw/Tc2fQ1wHu2E4Ee/r7C29qGxx6xUZQ6krUYBqRUZMZ0e5isK1
 GW2EPpb8AXC6+XaoNeCP2rPhu6mB+GhC2Q4k9pKWjasDTLes6CkBfDf/+i5+LEXk
 oQ3UTP1qGqUmm1y5m9h7+jUy4CdlzIbcLIUUt4X0naNJbpJsZqRvX3D4SKLf/wtV
 ZPmmih2ha01gnErm3Znn8rxIIodEiwwXIRSSKi1IzBmghOJzgSXtynMzXmwOaQtW
 4vdT22Yf1ip3pREfvtbL0pPDdxaJI4ngmm8Ia/ORHLYFbJmA5aM=
 =fs2O
 -----END PGP SIGNATURE-----

Merge tag 'kvm-x86-selftests2-7.3' of https://github.com/kvm-x86/linux into HEAD

KVM selftests changes for 7.3, part 2

 - Fix several issues with seeding KVM's pRNG, and rework the pRNG APIs to that
   the pRNG can be sanely used in host code, not just guest code.

 - Add an IRQ test to validate virtual IRQ deliverty for IRQs wired up via
   KVM_IRQFD + KVM_SET_GSI_ROUTING, with optional support for triggering IRQs
   via writes to an assigned VFIO device.

 - Add syscall wrappers to assert success on a variety of pthreads and CPU
   affinity APIs.

 - Set vCPU pthread affinity as early as possible to reduce contention issues
   that were surfaced by PREEMPT_LAZY, which result in runtimes of over a
   minute on large hosts, versus the expected ~5 seconds.

 - Rework the PMU counters test to run each testcase using a single VM with
   many vCPUs for each sub-testcase, instead of using a unique VM for each
   sub-testcase.  This cuts the runtime by ~20x.
2026-08-18 13:24:04 +02:00
..
arm64 KVM: selftests: Replace "paddr" with "gpa" throughout 2026-04-20 14:54:17 -07:00
loongarch KVM: LoongArch: selftests: Enable LSX/LASX by auto detection 2026-08-10 12:21:58 +08:00
riscv KVM: selftests: Replace "paddr" with "gpa" throughout 2026-04-20 14:54:17 -07:00
s390 KVM: selftests: Replace "paddr" with "gpa" throughout 2026-04-20 14:54:17 -07:00
x86 KVM: selftests: Do not intercept #PF by default in nVMX tests 2026-07-29 05:45:52 -07:00
assert.c KVM selftests changes for 7.3, part 2 2026-08-18 13:24:04 +02:00
elf.c KVM: selftests: elf: Include <endian.h> instead of <bits/endian.h> 2026-05-23 10:05:26 +02:00
guest_modes.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
guest_sprintf.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
io.c selftests: kvm: Uses TEST_FAIL in tests/utilities 2020-03-16 17:59:11 +01:00
kvm_util.c KVM: selftests: Extract picking of random CPU from cpu_set_t to separate API 2026-07-31 13:54:09 -07:00
lru_gen_util.c KVM: selftests: access_tracking_perf_test: Use MGLRU for access tracking 2025-05-16 12:58:21 -07:00
memstress.c KVM: selftests: Add KVM syscall wrappers for pthread_{cancel,join}() 2026-07-31 13:54:47 -07:00
proc_util.c KVM: selftests: Add a helper to set proc IRQ affinity for IRQ test 2026-07-07 11:24:44 -07:00
rbtree.c KVM: selftests: Keep track of memslots more efficiently 2021-05-27 07:45:54 -04:00
sparsebit.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
string_override.c KVM: selftests: Add strnlen() to the string overrides 2023-08-02 14:41:59 -07:00
test_util.c KVM: selftests: Test one random GP counter in PMU arch events testcase 2026-08-05 15:31:58 -07:00
ucall_common.c KVM: selftests: Replace "vaddr" with "gva" throughout 2026-04-20 14:54:17 -07:00
userfaultfd_util.c KVM: selftests: Add KVM syscall wrappers for pthread_{cancel,join}() 2026-07-31 13:54:47 -07:00