linux/tools/testing/selftests/kvm/x86
Sean Christopherson d9c41dc531 KVM: selftests: Verify that KVM returns the configured APIC cycle length
Add checks in the APIC bus clock test to verify that querying
KVM_CAP_X86_APIC_BUS_CYCLES_NS on the VM after changing the frequency
returns the VM's actual APIC cycle length, not KVM's default.  For
giggles, verify that KVM still returns its default frequency for the
system-scoped check.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20260522173526.3539407-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
History 2026-05-23 10:07:40 +02:00
..
amx_test.c KVM: selftests: Drop "vaddr_" from APIs that allocate memory for a given VM 2026-04-20 14:54:17 -07:00
aperfmperf_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
apic_bus_clock_test.c KVM: selftests: Verify that KVM returns the configured APIC cycle length 2026-05-23 10:07:40 +02:00
cpuid_test.c KVM: selftests: Drop "vaddr_" from APIs that allocate memory for a given VM 2026-04-20 14:54:17 -07:00
cr4_cpuid_sync_test.c KVM: selftests: Use canonical $(ARCH) paths for KVM selftests directories 2024-12-18 14:15:04 -08:00
debug_regs.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
dirty_log_page_splitting_test.c KVM: selftests: Use u64 instead of uint64_t 2026-04-20 14:54:16 -07:00
evmcs_smm_controls_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
exit_on_emulation_failure_test.c KVM: selftests: Use canonical $(ARCH) paths for KVM selftests directories 2024-12-18 14:15:04 -08:00
fastops_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
feature_msrs_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
fix_hypercall_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
flds_emulation.h KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
hwcr_msr_test.c KVM: selftests: Use u64 instead of uint64_t 2026-04-20 14:54:16 -07:00
hyperv_clock.c KVM: selftests: Drop "vaddr_" from APIs that allocate memory for a given VM 2026-04-20 14:54:17 -07:00
hyperv_cpuid.c KVM: selftests: Fix typo in hyperv cpuid test message 2025-09-08 13:03:22 -07:00
hyperv_evmcs.c KVM: selftests: Drop "vaddr_" from APIs that allocate memory for a given VM 2026-04-20 14:54:17 -07:00
hyperv_extended_hypercalls.c KVM: selftests: Drop "vaddr_" from APIs that allocate memory for a given VM 2026-04-20 14:54:17 -07:00
hyperv_features.c KVM: selftests: Drop "vaddr_" from APIs that allocate memory for a given VM 2026-04-20 14:54:17 -07:00
hyperv_ipi.c KVM: selftests: Drop "vaddr_" from APIs that allocate memory for a given VM 2026-04-20 14:54:17 -07:00
hyperv_svm_test.c KVM: selftests: Drop "vaddr_" from APIs that allocate memory for a given VM 2026-04-20 14:54:17 -07:00
hyperv_tlb_flush.c KVM: selftests: Rename vm_vaddr_unused_gap() => vm_unused_gva_gap() 2026-04-20 14:54:17 -07:00
kvm_buslock_test.c KVM: selftests: Use gva_t instead of vm_vaddr_t 2026-04-20 14:54:16 -07:00
kvm_clock_test.c KVM: selftests: Drop "vaddr_" from APIs that allocate memory for a given VM 2026-04-20 14:54:17 -07:00
kvm_pv_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
max_vcpuid_cap_test.c KVM: selftests: Use canonical $(ARCH) paths for KVM selftests directories 2024-12-18 14:15:04 -08:00
monitor_mwait_test.c KVM: selftests: Use u64 instead of uint64_t 2026-04-20 14:54:16 -07:00
msrs_test.c KVM: selftests: Fix reserved value WRMSR testcase for multi-feature MSRs 2026-03-02 13:18:03 -08:00
nested_close_kvm_test.c KVM: selftests: Use gva_t instead of vm_vaddr_t 2026-04-20 14:54:16 -07:00
nested_dirty_log_test.c KVM: selftests: Use gva_t instead of vm_vaddr_t 2026-04-20 14:54:16 -07:00
nested_emulation_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
nested_exceptions_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
nested_invalid_cr3_test.c KVM: selftests: Use gva_t instead of vm_vaddr_t 2026-04-20 14:54:16 -07:00
nested_set_state_test.c KVM: selftests: Use u64 instead of uint64_t 2026-04-20 14:54:16 -07:00
nested_tsc_adjust_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
nested_tsc_scaling_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
nested_vmsave_vmload_test.c KVM: selftests: Use gva_t instead of vm_vaddr_t 2026-04-20 14:54:16 -07:00
nx_huge_pages_test.c KVM: selftests: Use u64 instead of uint64_t 2026-04-20 14:54:16 -07:00
nx_huge_pages_test.sh KVM: selftests: Use canonical $(ARCH) paths for KVM selftests directories 2024-12-18 14:15:04 -08:00
platform_info_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
pmu_counters_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
pmu_event_filter_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
private_mem_conversions_test.c KVM: selftests: Replace "u64 gpa" with "gpa_t" throughout 2026-04-20 14:54:17 -07:00
private_mem_kvm_exits_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
recalc_apic_map_test.c KVM: selftests: Use canonical $(ARCH) paths for KVM selftests directories 2024-12-18 14:15:04 -08:00
set_boot_cpu_id.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
set_sregs_test.c KVM: selftests: Use u64 instead of uint64_t 2026-04-20 14:54:16 -07:00
sev_init2_tests.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
sev_migrate_tests.c KVM: selftests: Remove duplicate LAUNCH_UPDATE_VMSA call in SEV-ES migrate test 2026-04-03 09:37:35 -07:00
sev_smoke_test.c KVM: selftests: Drop "vaddr_" from APIs that allocate memory for a given VM 2026-04-20 14:54:17 -07:00
smaller_maxphyaddr_emulation_test.c KVM: selftests: Replace "u64 gpa" with "gpa_t" throughout 2026-04-20 14:54:17 -07:00
smm_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
state_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
svm_int_ctl_test.c KVM: selftests: Use gva_t instead of vm_vaddr_t 2026-04-20 14:54:16 -07:00
svm_lbr_nested_state.c KVM: selftests: Use gva_t instead of vm_vaddr_t 2026-04-20 14:54:16 -07:00
svm_nested_clear_efer_svme.c KVM: selftests: Use gva_t instead of vm_vaddr_t 2026-04-20 14:54:16 -07:00
svm_nested_shutdown_test.c KVM: selftests: Use gva_t instead of vm_vaddr_t 2026-04-20 14:54:16 -07:00
svm_nested_soft_inject_test.c KVM: selftests: Drop "vaddr_" from APIs that allocate memory for a given VM 2026-04-20 14:54:17 -07:00
svm_nested_vmcb12_gpa.c KVM: selftests: Replace "u64 gpa" with "gpa_t" throughout 2026-04-20 14:54:17 -07:00
svm_vmcall_test.c KVM: selftests: Use gva_t instead of vm_vaddr_t 2026-04-20 14:54:16 -07:00
sync_regs_test.c KVM: selftests: Use u16 instead of uint16_t 2026-04-20 14:54:17 -07:00
triple_fault_event_test.c KVM: selftests: Use gva_t instead of vm_vaddr_t 2026-04-20 14:54:16 -07:00
tsc_msrs_test.c KVM: selftests: Use u64 instead of uint64_t 2026-04-20 14:54:16 -07:00
tsc_scaling_sync.c KVM: selftests: Use u64 instead of uint64_t 2026-04-20 14:54:16 -07:00
ucna_injection_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
userspace_io_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
userspace_msr_exit_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
vmx_apic_access_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
vmx_apicv_updates_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
vmx_exception_with_invalid_guest_state.c KVM: selftests: Verify KVM is loaded when getting a KVM module param 2025-06-20 13:39:10 -07:00
vmx_invalid_nested_guest_state.c KVM: selftests: Use gva_t instead of vm_vaddr_t 2026-04-20 14:54:16 -07:00
vmx_msrs_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
vmx_nested_la57_state_test.c KVM: selftests: Use gpa_t instead of vm_paddr_t 2026-04-20 14:54:16 -07:00
vmx_pmu_caps_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
vmx_preemption_timer_test.c KVM: selftests: Use gva_t instead of vm_vaddr_t 2026-04-20 14:54:16 -07:00
xapic_ipi_test.c KVM: selftests: Replace "vaddr" with "gva" throughout 2026-04-20 14:54:17 -07:00
xapic_state_test.c KVM: selftests: Use u32 instead of uint32_t 2026-04-20 14:54:16 -07:00
xapic_tpr_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
xcr0_cpuid_test.c KVM: selftests: Use u64 instead of uint64_t 2026-04-20 14:54:16 -07:00
xen_shinfo_test.c KVM: selftests: Use u8 instead of uint8_t 2026-04-20 14:54:17 -07:00
xen_vmcall_test.c KVM: selftests: Use canonical $(ARCH) paths for KVM selftests directories 2024-12-18 14:15:04 -08:00
xss_msr_test.c KVM: selftests: Use u64 instead of uint64_t 2026-04-20 14:54:16 -07:00