linux/tools/testing/selftests/kvm
Sean Christopherson ee37955366 KVM: selftests: Refactor X86_FEATURE_* framework to prep for X86_PROPERTY_*
Refactor the X86_FEATURE_* framework to prepare for extending the core
logic to support "properties".  The "feature" framework allows querying a
single CPUID bit to detect the presence of a feature; the "property"
framework will extend the idea to allow querying a value, i.e. to get a
value that is a set of contiguous bits in a CPUID leaf.

Opportunistically add static asserts to ensure features are fully defined
at compile time, and to try and catch mistakes in the definition of
features.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20221006005125.680782-3-seanjc@google.com
2022-11-16 16:59:03 -08:00
..
aarch64 KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -08:00
include KVM: selftests: Refactor X86_FEATURE_* framework to prep for X86_PROPERTY_* 2022-11-16 16:59:03 -08:00
lib KVM: selftests: Add X86_FEATURE_PAE and use it calc "fallback" MAXPHYADDR 2022-11-16 16:59:02 -08:00
s390x KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -08:00
x86_64 KVM: selftests: Add a test for KVM_CAP_EXIT_ON_EMULATION_FAILURE 2022-11-16 16:59:02 -08:00
.gitignore KVM: selftests: Add a test for KVM_CAP_EXIT_ON_EMULATION_FAILURE 2022-11-16 16:59:02 -08:00
access_tracking_perf_test.c KVM: selftests: Rename perf_test_util symbols to memstress 2022-11-16 10:58:32 -08:00
config selftests: kvm: Adding config fragments 2019-08-09 16:52:38 +02:00
demand_paging_test.c KVM: selftests: Rename perf_test_util symbols to memstress 2022-11-16 10:58:32 -08:00
dirty_log_perf_test.c KVM: selftests: Rename perf_test_util symbols to memstress 2022-11-16 10:58:32 -08:00
dirty_log_test.c KVM: selftests: Drop now-unnecessary ucall_uninit() 2022-11-16 16:58:53 -08:00
hardware_disable_test.c KVM: selftests: Move per-VM/per-vCPU nr pages calculation to __vm_create() 2022-06-11 11:47:26 -04:00
kvm_binary_stats_test.c selftests: KVM: Add exponent check for boolean stats 2022-08-01 08:01:23 -04:00
kvm_create_max_vcpus.c KVM: selftests: Add TEST_REQUIRE macros to reduce skipping copy+paste 2022-06-11 11:47:29 -04:00
kvm_page_table_test.c KVM: selftests: Drop now-unnecessary ucall_uninit() 2022-11-16 16:58:53 -08:00
Makefile KVM: selftests: Add a test for KVM_CAP_EXIT_ON_EMULATION_FAILURE 2022-11-16 16:59:02 -08:00
max_guest_memory_test.c KVM: selftests: Add atoi_positive() and atoi_non_negative() for input validation 2022-11-16 10:03:24 -08:00
memslot_modification_stress_test.c KVM: selftests: Rename perf_test_util symbols to memstress 2022-11-16 10:58:32 -08:00
memslot_perf_test.c KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -08:00
rseq_test.c KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -08:00
set_memory_region_test.c KVM: selftests: move common startup logic to kvm_util.c 2022-11-16 16:58:56 -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: Automatically do init_ucall() for non-barebones VMs 2022-11-16 16:58:51 -08:00
system_counter_offset_test.c KVM: selftests: Automatically do init_ucall() for non-barebones VMs 2022-11-16 16:58:51 -08:00