Home
last modified time | relevance | path

Searched refs:__TEST_REQUIRE (Results 1 – 19 of 19) sorted by relevance

/linux/tools/testing/selftests/kvm/riscv/
H A Dsbi_pmu_test.c539 __TEST_REQUIRE(__vcpu_has_sbi_ext(vcpu, KVM_RISCV_SBI_EXT_PMU), in test_vm_basic_test()
557 __TEST_REQUIRE(__vcpu_has_sbi_ext(vcpu, KVM_RISCV_SBI_EXT_PMU), in test_vm_events_test()
583 __TEST_REQUIRE(__vcpu_has_sbi_ext(vcpu, KVM_RISCV_SBI_EXT_PMU), in test_vm_events_snapshot_test()
599 __TEST_REQUIRE(__vcpu_has_sbi_ext(vcpu, KVM_RISCV_SBI_EXT_PMU), in test_vm_events_overflow()
602 __TEST_REQUIRE(__vcpu_has_isa_ext(vcpu, KVM_RISCV_ISA_EXT_SSCOFPMF), in test_vm_events_overflow()
H A Darch_timer.c86 __TEST_REQUIRE(__vcpu_has_isa_ext(vcpus[0], KVM_RISCV_ISA_EXT_SSTC), in test_vm_create()
H A Dget-reg-list.c180 __TEST_REQUIRE(__vcpu_has_ext(vcpu, feature), in finalize_vcpu()
/linux/tools/testing/selftests/kvm/include/
H A Dtest_util.h39 #define __TEST_REQUIRE(f, fmt, ...) \ macro
45 #define TEST_REQUIRE(f) __TEST_REQUIRE(f, "Requirement not met: %s", #f)
/linux/tools/testing/selftests/kvm/
H A Daccess_tracking_perf_test.c106 __TEST_REQUIRE(pfn, "Looking up PFNs requires CAP_SYS_ADMIN"); in lookup_pfn()
387 __TEST_REQUIRE(page_idle_fd >= 0, in main()
H A Dkvm_create_max_vcpus.c65 __TEST_REQUIRE(r >= 0, in main()
H A Dsystem_counter_offset_test.c31 __TEST_REQUIRE(!__vcpu_has_device_attr(vcpu, KVM_VCPU_TSC_CTRL, in check_preconditions()
H A Drseq_test.c192 __TEST_REQUIRE(cnt >= 2, in calc_min_max_cpu()
H A Darch_timer.c249 __TEST_REQUIRE(!test_args.migration_freq_ms || get_nprocs() >= 2, in main()
H A Dget-reg-list.c154 __TEST_REQUIRE(kvm_has_cap(s->capability), in check_supported()
/linux/tools/testing/selftests/kvm/aarch64/
H A Dno-vgic-v3.c168 __TEST_REQUIRE(FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_GIC), pfr0), in main()
H A Ddebug-exceptions.c543 __TEST_REQUIRE(brp_num >= 2, "At least two breakpoints are required"); in test_guest_debug_exceptions_all()
587 __TEST_REQUIRE(debug_version(aa64dfr0) >= 6, in main()
H A Darch_timer.c208 __TEST_REQUIRE(gic_fd >= 0, "Failed to create vgic-v3"); in test_vm_create()
H A Dvgic_lpi_stress.c218 __TEST_REQUIRE(gic_fd >= 0, "Failed to create GICv3"); in setup_gic()
H A Dvpmu_counter_access.c439 __TEST_REQUIRE(vpmu_vm.gic_fd >= 0, in create_vpmu_vm()
H A Dvgic_irq.c761 __TEST_REQUIRE(gic_fd >= 0, "Failed to create vgic-v3, skipping"); in test_vgic()
/linux/tools/testing/selftests/kvm/x86_64/
H A Dnx_huge_pages_test.c256 __TEST_REQUIRE(token == MAGIC_TOKEN, in main()
/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Dprocessor.c804 __TEST_REQUIRE(0, "KVM_X86_XCOMP_GUEST_SUPP not supported"); in __vm_xsave_require_permission()
808 __TEST_REQUIRE(bitmask & xfeature, in __vm_xsave_require_permission()
/linux/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c33 __TEST_REQUIRE(fd >= 0 || errno != ENOENT, "Cannot open %s: %s", path, strerror(errno)); in open_path_or_exit()
870 __TEST_REQUIRE(kvm_has_cap(KVM_CAP_USER_MEMORY2), \