2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/tools/testing/selftests/kvm
Chenyi Qiang 0048ca5e99 KVM: selftests: Add back the missing check of MONITOR/MWAIT availability
The revamp of monitor/mwait test missed the original check of feature
availability [*]. If MONITOR/MWAIT is not supported or is disabled by
IA32_MISC_ENABLE on the host, executing MONITOR or MWAIT instruction
from guest doesn't cause monitor/mwait VM exits, but a #UD.

[*] https://lore.kernel.org/all/20240411210237.34646-1-zide.chen@intel.com/

Reported-by: Xuelian Guo <xuelian.guo@intel.com>
Fixes: 80fd663590 ("selftests: kvm: revamp MONITOR/MWAIT tests")
Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com>
Link: https://lore.kernel.org/r/20250620062219.342930-1-chenyi.qiang@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
2025-06-24 12:58:19 -07:00
..
arm64 KVM: arm64: selftests: Close the GIC FD in arch_timer_edge_cases 2025-06-19 09:58:21 +01:00
include KVM selftests changes for 6.16: 2025-05-27 12:15:26 -04:00
lib KVM selftests changes for 6.16: 2025-05-27 12:15:26 -04:00
riscv KVM: riscv: selftests: Add vector extension tests 2025-05-21 09:34:40 +05:30
s390 KVM: selftests: Fix spelling mistake "initally" -> "initially" 2025-02-04 11:15:24 -05:00
x86 KVM: selftests: Add back the missing check of MONITOR/MWAIT availability 2025-06-24 12:58:19 -07:00
.gitignore KVM: selftests: Provide empty 'all' and 'clean' targets for unsupported ARCHs 2024-12-18 14:15:03 -08:00
access_tracking_perf_test.c KVM: selftests: access_tracking_perf_test: Use MGLRU for access tracking 2025-05-16 12:58:21 -07:00
arch_timer.c Revert "kvm: selftests: move base kvm_util.h declarations to kvm_util_base.h" 2024-04-29 12:54:13 -07:00
coalesced_io_test.c KVM: selftests: Add a test for coalesced MMIO (and PIO on x86) 2024-08-29 19:38:33 -07: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 treewide updates for 6.10: 2024-05-12 03:18:11 -04:00
dirty_log_perf_test.c KVM: selftests: Use canonical $(ARCH) paths for KVM selftests directories 2024-12-18 14:15:04 -08:00
dirty_log_test.c KVM: selftests: Allow running a single iteration of dirty_log_test 2025-02-12 09:00:56 -08:00
get-reg-list.c KVM: selftests: Remove redundant newlines 2024-01-29 08:39:14 -08:00
guest_memfd_test.c KVM: selftests: fix unintentional noop test in guest_memfd_test.c 2024-11-04 21:10:28 -08:00
guest_print_test.c KVM: selftests: Open code vcpu_run() equivalent in guest_printf test 2024-08-29 16:25:06 -07:00
hardware_disable_test.c KVM: selftests: Remove unused macro in the hardware disable test 2024-10-30 13:51:46 -07:00
kvm_binary_stats_test.c KVM: selftests: Define _GNU_SOURCE for all selftests code 2024-04-29 12:49:10 -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 Revert "kvm: selftests: move base kvm_util.h declarations to kvm_util_base.h" 2024-04-29 12:54:13 -07:00
Makefile KVM: selftests: Add supported test cases for LoongArch 2025-05-20 20:20:26 +08:00
Makefile.kvm KVM SVM changes for 6.16: 2025-05-27 12:15:49 -04:00
memslot_modification_stress_test.c KVM: selftests: Fix build on architectures other than x86_64 2024-10-01 11:07:26 -04:00
memslot_perf_test.c KVM: selftests: memslot_perf_test: increase guest sync timeout 2024-11-04 21:04:10 -08:00
mmu_stress_test.c KVM: selftests: Ensure all vCPUs hit -EFAULT during initial RO stage 2025-03-03 07:37:28 -08:00
pre_fault_memory_test.c KVM: selftests: x86: Add test for KVM_PRE_FAULT_MEMORY 2024-07-12 11:18:27 -04:00
rseq_test.c KVM: selftests: Add option to rseq test to override /dev/cpu_dma_latency 2025-04-04 07:07:39 -04:00
set_memory_region_test.c KVM: selftests: Add supported test cases for LoongArch 2025-05-20 20:20:26 +08:00
settings selftests: kvm: Raise the default timeout to 120 seconds 2021-02-09 08:17:08 -05:00
steal_time.c KVM: selftests: Return a value from vcpu_get_reg() instead of using an out-param 2024-12-18 14:14:14 -08:00
system_counter_offset_test.c KVM: selftests: Remove redundant newlines 2024-01-29 08:39:14 -08:00