Home
last modified time | relevance | path

Searched refs:TEST_REQUIRE (Results 1 – 25 of 53) sorted by relevance

123

/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dvmx_pmu_caps_test.c70 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_PDCM)); in main()
72 TEST_REQUIRE(kvm_get_cpuid_max_basic() >= 0xa); in main()
Dvmx_msrs_test.c75 TEST_REQUIRE(kvm_has_cap(KVM_CAP_DISABLE_QUIRKS2)); in main()
76 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dmmio_warning_test.c96 TEST_REQUIRE(is_intel_cpu()); in main()
98 TEST_REQUIRE(!vm_is_unrestricted_guest(NULL)); in main()
Dvmx_exception_with_invalid_guest_state.c114 TEST_REQUIRE(is_intel_cpu()); in main()
115 TEST_REQUIRE(!vm_is_unrestricted_guest(NULL)); in main()
Devmcs_test.c211 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
212 TEST_REQUIRE(kvm_has_cap(KVM_CAP_NESTED_STATE)); in main()
213 TEST_REQUIRE(kvm_has_cap(KVM_CAP_HYPERV_ENLIGHTENED_VMCS)); in main()
Damx_test.c315 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_XSAVE)); in main()
316 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_AMX_TILE)); in main()
317 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_XTILECFG)); in main()
318 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_XTILEDATA)); in main()
Dtriple_fault_event_test.c69 TEST_REQUIRE(has_vmx || has_svm); in main()
71 TEST_REQUIRE(kvm_has_cap(KVM_CAP_X86_TRIPLE_FAULT_EVENT)); in main()
Dnx_huge_pages_test.c259 TEST_REQUIRE(kvm_has_cap(KVM_CAP_VM_DISABLE_NX_HUGE_PAGES)); in main()
260 TEST_REQUIRE(reclaim_period_ms > 0); in main()
Dget_msr_index_features.c28 TEST_REQUIRE(kvm_has_cap(KVM_CAP_GET_MSR_FEATURES)); in main()
Dvmx_preemption_timer_test.c170 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
172 TEST_REQUIRE(kvm_has_cap(KVM_CAP_NESTED_STATE)); in main()
Dvmx_nested_tsc_scaling_test.c153 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
154 TEST_REQUIRE(kvm_has_cap(KVM_CAP_TSC_CONTROL)); in main()
Dpmu_event_filter_test.c453 TEST_REQUIRE(kvm_has_cap(KVM_CAP_PMU_EVENT_FILTER)); in main()
455 TEST_REQUIRE(use_intel_pmu() || use_amd_pmu()); in main()
463 TEST_REQUIRE(sanity_check_pmu(vcpu)); in main()
Dsev_migrate_tests.c398 TEST_REQUIRE(kvm_has_cap(KVM_CAP_VM_MOVE_ENC_CONTEXT_FROM)); in main()
399 TEST_REQUIRE(kvm_has_cap(KVM_CAP_VM_COPY_ENC_CONTEXT_FROM)); in main()
401 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_SEV)); in main()
Dxss_msr_test.c28 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_XSAVES)); in main()
Dvmx_close_while_nested_test.c54 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dcr4_cpuid_sync_test.c58 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_XSAVE)); in main()
Dsvm_vmcall_test.c42 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_SVM)); in main()
Dsvm_nested_shutdown_test.c49 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_SVM)); in main()
Dnested_exceptions_test.c229 TEST_REQUIRE(kvm_has_cap(KVM_CAP_EXCEPTION_PAYLOAD)); in main()
230 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_SVM) || kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dsync_regs_test.c97 TEST_REQUIRE((cap & TEST_SYNC_FIELDS) == TEST_SYNC_FIELDS); in main()
98 TEST_REQUIRE(!(cap & INVALID_SYNC_FIELD)); in main()
Dvmx_set_nested_state_test.c254 TEST_REQUIRE(kvm_has_cap(KVM_CAP_NESTED_STATE)); in main()
260 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
Dplatform_info_test.c78 TEST_REQUIRE(kvm_has_cap(KVM_CAP_MSR_PLATFORM_INFO)); in main()
Dvmx_invalid_nested_guest_state.c61 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in main()
/linux-6.1.9/tools/testing/selftests/kvm/aarch64/
Dvcpu_width_config.c85 TEST_REQUIRE(kvm_has_cap(KVM_CAP_ARM_EL1_32BIT)); in main()
/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/
Dperf_test_util.c87 TEST_REQUIRE(kvm_cpu_has(X86_FEATURE_VMX)); in perf_test_setup_nested()

123