mirror-linux/tools/testing/selftests/kvm
Paolo Bonzini b397897016 KVM x86 fixes for 7.1-rcN
- Include the kernel's linux/mman.h in KVM selftests to ensure MADV_COLLAPSE
    is defined, as older libc versions may not provide it.
 
  - Include execinfo.h if and only if KVM selftests are building against glibc,
    and provide a test_dump_stack() for non-glibc builds.
 
  - Fudge around an RCU splat in the emegerncy reboot code that is technically
    a legitimate flaw, but in practice is a non-issue and fixing the flaw, e.g.
    by adding locking, would incur meaningful risk, i.e. do more harm than good.
 
  - Rate-limit global clock updates once again (but without delayed work), as
    KVM was subtly relying on the old rate-limiting for NPT correction to guard
    against "update storms" when running without a master clock on systems with
    overcommitted CPUs.
 
  - Fix a brown paper bag goof where KVM checked if ERAPS is "dirty" instead of
    marking it dirty when emulating INVPCID.
 
  - Flush the TLB when transitioning from xAVIC => x2AVIC to ensure the CPU TLB
    doesn't contain AVIC-tagged entries for the APIC base GPA.
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEKTobbabEP7vbhhN9OlYIJqCjN/0FAmoZtdgACgkQOlYIJqCj
 N/26sw/+IWOA5AxyoNW/lKAhhkzDTzGWrNCQkpMv+F4tOUbHYniTxI/pv4L3eMvf
 ZLUXijYxhpJtnblLtrnPpSFl5tll4xQdMUv7+fljgpYmy6+erQHodtCgRi5wHDbM
 NlD7DWOgwmpvzYLcybq1RfjZ3n+OBRvq95haQ6Ph4FtoYuIomtJ5tF2mnMlyxlc/
 aIK5wzQ/JeYdQxwwz1ctlHkgE5bPnS+Sxr33+MRFQ5cIpuwdoS9zYRITNBM107kg
 bLeei8Cxh91sgEidgwS8JToLvaEQH8AodkROjcScllwUxYsshPKsHeH7sTMbCOVd
 DiH9VbheZo7d4kb6pvhGsY891ec00dR5E/l2gZYLWHg4v0lINTw6uBdoJuq3t2TO
 Q3KmGVaUWz+c6dY/0qntVpws35zG106S8Pp4mx/1EnUHbJKZYDsUMC1ppwhrr3Pz
 WEyQ9PFXhOyoSbrtOaEfU+wsFPeAfT9eYADu7oV1t7l75TJAKW1EEaSGfzOO/crj
 3GK3vRq2B1cMHX9c4fwhSs4h8k5JvKlI/mtGPxZN3khVorx9dv/rTqOoeQEsFS5+
 8s5XcNPPJlKfNXcu3Jq6rn8U/JA2HnbH298Nk5uXTCfTrZtDgbOnI8YVYWnoadOl
 8xJoie5ccEsysVj1npNNh61LNMF1XBUUC+eNn0I1o0NzeRauxF8=
 =QQUn
 -----END PGP SIGNATURE-----

Merge tag 'kvm-x86-fixes-7.1-rc6' of https://github.com/kvm-x86/linux into HEAD

KVM x86 fixes for 7.1-rcN

 - Include the kernel's linux/mman.h in KVM selftests to ensure MADV_COLLAPSE
   is defined, as older libc versions may not provide it.

 - Include execinfo.h if and only if KVM selftests are building against glibc,
   and provide a test_dump_stack() for non-glibc builds.

 - Fudge around an RCU splat in the emegerncy reboot code that is technically
   a legitimate flaw, but in practice is a non-issue and fixing the flaw, e.g.
   by adding locking, would incur meaningful risk, i.e. do more harm than good.

 - Rate-limit global clock updates once again (but without delayed work), as
   KVM was subtly relying on the old rate-limiting for NPT correction to guard
   against "update storms" when running without a master clock on systems with
   overcommitted CPUs.

 - Fix a brown paper bag goof where KVM checked if ERAPS is "dirty" instead of
   marking it dirty when emulating INVPCID.

 - Flush the TLB when transitioning from xAVIC => x2AVIC to ensure the CPU TLB
   doesn't contain AVIC-tagged entries for the APIC base GPA.
2026-05-29 19:28:16 +02:00
..
arm64 KVM selftests type renames for 7.1 2026-04-27 04:24:41 -04:00
include KVM: selftests: Include sys/mman.h *and* linux/mman.h, via kvm_syscalls.h 2026-05-13 09:53:43 -07:00
lib KVM x86 fixes for 7.1-rcN 2026-05-29 19:28:16 +02:00
loongarch KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
riscv KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
s390 KVM: selftests: Include sys/mman.h *and* linux/mman.h, via kvm_syscalls.h 2026-05-13 09:53:43 -07:00
x86 KVM: selftests: Verify that KVM returns the configured APIC cycle length 2026-05-23 10:07:40 +02:00
.gitignore KVM: selftests: Provide empty 'all' and 'clean' targets for unsupported ARCHs 2024-12-18 14:15:03 -08:00
Makefile KVM: selftests: Forcefully override ARCH from x86_64 to x86 2025-10-20 08:55:24 -07:00
Makefile.kvm - ESA nesting support 2026-04-13 19:01:15 +02:00
access_tracking_perf_test.c KVM: selftests: Include sys/mman.h *and* linux/mman.h, via kvm_syscalls.h 2026-05-13 09:53:43 -07:00
arch_timer.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
coalesced_io_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
config KVM: selftests: Add CONFIG_EVENTFD for irqfd selftest 2025-07-10 06:20:20 -07:00
demand_paging_test.c KVM: selftests: Use u64 instead of uint64_t 2026-04-20 14:54:16 -07:00
dirty_log_perf_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
dirty_log_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
get-reg-list.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
guest_memfd_test.c KVM: selftests: Include sys/mman.h *and* linux/mman.h, via kvm_syscalls.h 2026-05-13 09:53:43 -07:00
guest_print_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
hardware_disable_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
irqfd_test.c KVM: selftests: Fix irqfd_test for non-x86 architectures 2025-10-13 14:17:03 +01:00
kvm_binary_stats_test.c KVM: selftests: Define wrappers for common syscalls to assert success 2025-10-20 06:30:42 -07:00
kvm_create_max_vcpus.c KVM: selftests: Adjust number of files rlimit for all "standard" VMs 2025-02-14 07:02:12 -08:00
kvm_page_table_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
memslot_modification_stress_test.c KVM: selftests: Replace "u64 gpa" with "gpa_t" throughout 2026-04-20 14:54:17 -07:00
memslot_perf_test.c KVM: selftests: Include sys/mman.h *and* linux/mman.h, via kvm_syscalls.h 2026-05-13 09:53:43 -07:00
mmu_stress_test.c KVM: selftests: Replace "u64 gpa" with "gpa_t" throughout 2026-04-20 14:54:17 -07:00
pre_fault_memory_test.c KVM: selftests: Replace "u64 gpa" with "gpa_t" throughout 2026-04-20 14:54:17 -07:00
rseq_test.c KVM: selftests: Add missing "break" in rseq_test's param parsing 2025-12-02 08:49:10 -08:00
set_memory_region_test.c KVM: selftests: Include sys/mman.h *and* linux/mman.h, via kvm_syscalls.h 2026-05-13 09:53:43 -07:00
settings
steal_time.c KVM: selftests: arm64: Fix steal_time test after UAPI refactoring 2026-05-06 17:09:03 +01:00
system_counter_offset_test.c KVM: selftests: Use u64 instead of uint64_t 2026-04-20 14:54:16 -07:00