Home
last modified time | relevance | path

Searched refs:__GUEST_ASSERT (Results 1 – 25 of 33) sorted by relevance

12

/linux/tools/testing/selftests/kvm/riscv/
H A Dsbi_pmu_test.c106 __GUEST_ASSERT(ret.error == 0, "Unable to start counter %ld\n", counter); in start_counter()
116 __GUEST_ASSERT(ret.error == SBI_ERR_ALREADY_STOPPED, in stop_reset_counter()
126 __GUEST_ASSERT(ret.error == 0 || ret.error == SBI_ERR_ALREADY_STOPPED, in stop_counter()
135 __GUEST_ASSERT(regs->cause == EXC_INST_ILLEGAL, in guest_illegal_exception_handler()
140 __GUEST_ASSERT(opcode == INSN_OPCODE_SYSTEM, in guest_illegal_exception_handler()
146 __GUEST_ASSERT(funct3 <= 7 && (funct3 != 0 && funct3 != 4), in guest_illegal_exception_handler()
151 __GUEST_ASSERT((csr_num >= CSR_CYCLE && csr_num <= CSR_HPMCOUNTER31), in guest_illegal_exception_handler()
187 __GUEST_ASSERT(ret.error == 0, "config matching failed %ld\n", ret.error); in get_counter_index()
200 __GUEST_ASSERT(ret.error == 0, "Unable to retrieve number of counters from SBI PMU"); in get_num_counters()
201 __GUEST_ASSERT(ret.value < RISCV_MAX_PMU_COUNTERS, in get_num_counters()
[all …]
H A Darch_timer.c34 __GUEST_ASSERT(xcnt >= cmp, in guest_irq_handler()
59 __GUEST_ASSERT(config_iter + 1 == irq_iter, in guest_run()
/linux/tools/testing/selftests/kvm/x86/
H A Dxcr0_cpuid_test.c26 __GUEST_ASSERT((__supported & (xfeatures)) != (xfeatures) || \
44 __GUEST_ASSERT(!__supported || __supported == (xfeatures), \
83 __GUEST_ASSERT(!vector, in guest_code()
88 __GUEST_ASSERT(!vector, in guest_code()
97 __GUEST_ASSERT(vector == GP_VECTOR, in guest_code()
H A Dfastops_test.c36 __GUEST_ASSERT(val == ex_val, \
39 __GUEST_ASSERT(flags == ex_flags, \
60 __GUEST_ASSERT(output == ex_output, \
64 __GUEST_ASSERT(flags == ex_flags, \
86 __GUEST_ASSERT(output == ex_output, \
90 __GUEST_ASSERT(flags == ex_flags, \
119 __GUEST_ASSERT(v == ex_v, \
122 __GUEST_ASSERT(a == ex_a && d == ex_d, \
126 __GUEST_ASSERT(v || ex_v || (flags == ex_flags), \
H A Dmonitor_mwait_test.c32 __GUEST_ASSERT((vector) == UD_VECTOR, \
36 __GUEST_ASSERT(!(vector), \
51 __GUEST_ASSERT(this_cpu_has(X86_FEATURE_MWAIT) == !(testcase & MWAIT_DISABLED), in guest_monitor_wait()
H A Dmsrs_test.c103 __GUEST_ASSERT(!vec, "Unexpected %s on RDMSR(0x%x)", ex_str(vec), msr); in __rdmsr()
105 __GUEST_ASSERT(val == want, "Wanted 0x%lx from RDMSR(0x%x), got 0x%lx", in __rdmsr()
114 __GUEST_ASSERT(!vec, "Unexpected %s on WRMSR(0x%x, 0x%lx)", in __wrmsr()
156 __GUEST_ASSERT(vec == GP_VECTOR, "Wanted #GP on RDMSR(0x%x), got %s", in guest_test_unsupported_msr()
161 __GUEST_ASSERT(vec == GP_VECTOR, "Wanted #GP on WRMSR(0x%x, 0x%lx), got %s", in guest_test_unsupported_msr()
182 __GUEST_ASSERT(vec == GP_VECTOR, in guest_test_reserved_val()
H A Dpmu_counters_test.c193 __GUEST_ASSERT(count >= NUM_INSNS_RETIRED, in guest_assert_event_count()
367 __GUEST_ASSERT(expect_gp ? vector == GP_VECTOR : !vector, \
372 __GUEST_ASSERT(val == expected, \
542 __GUEST_ASSERT(vector == GP_VECTOR, in guest_test_fixed_counters()
547 __GUEST_ASSERT(vector == GP_VECTOR, in guest_test_fixed_counters()
H A Dhyperv_features.c56 __GUEST_ASSERT(vector == GP_VECTOR, in guest_msr()
60 __GUEST_ASSERT(!vector, in guest_msr()
68 __GUEST_ASSERT(!vector, in guest_msr()
104 __GUEST_ASSERT(vector == UD_VECTOR, in guest_hcall()
108 __GUEST_ASSERT(!vector, in guest_hcall()
H A Dnested_emulation_test.c111 __GUEST_ASSERT(exit_reason == insn->exit_reason[f], in guest_code()
115 __GUEST_ASSERT(exit_insn_len == insn_len, in guest_code()
H A Dsvm_nested_soft_inject_test.c105 __GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL, in l1_guest_code()
135 __GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_HLT, in l1_guest_code()
H A Duserspace_io_test.c46 __GUEST_ASSERT(buffer[i] == 0xaa, in guest_code()
H A Dapic_bus_clock_test.c91 __GUEST_ASSERT(freq < apic_hz * 105 / 100 && freq > apic_hz * 95 / 100, in apic_guest_code()
/linux/tools/testing/selftests/kvm/loongarch/
H A Darch_timer.c57 __GUEST_ASSERT(val > cfg, in guest_irq_handler()
82 __GUEST_ASSERT(irq_iter == 0, in guest_test_period_timer()
107 __GUEST_ASSERT(config_iter + 1 == irq_iter, in guest_test_oneshot_timer()
132 __GUEST_ASSERT(xcnt_diff_us >= us, in guest_test_emulate_timer()
147 __GUEST_ASSERT(start <= us, in guest_time_count_test()
159 __GUEST_ASSERT(prev <= start, in guest_time_count_test()
/linux/tools/testing/selftests/kvm/arm64/
H A Dno-vgic-v3.c34 __GUEST_ASSERT(handled, #r " no read trap"); \
40 __GUEST_ASSERT(handled, #r " no write trap"); \
57 __GUEST_ASSERT(FIELD_GET(ID_AA64PFR0_EL1_GIC, in guest_code()
104 __GUEST_ASSERT((val & BIT(0)), in guest_code()
H A Dvpmu_counter_access.c175 __GUEST_ASSERT((_tval & mask), \
179 __GUEST_ASSERT(!(_tval & mask), \
266 __GUEST_ASSERT(read_data == write_data, in test_access_pmc_regs()
277 __GUEST_ASSERT(read_data == 0, in test_access_pmc_regs()
284 __GUEST_ASSERT(read_data == write_data, in test_access_pmc_regs()
299 __GUEST_ASSERT(expected_ec == ec, in guest_sync_handler()
359 __GUEST_ASSERT(expected_pmcr_n <= ARMV8_PMU_MAX_GENERAL_COUNTERS, in guest_code()
367 __GUEST_ASSERT(pmcr_n == expected_pmcr_n, in guest_code()
H A Darch_timer.c97 __GUEST_ASSERT(xcnt >= cval, in guest_validate_irq()
100 __GUEST_ASSERT(xctl & CTL_ISTATUS, "xctl = 0x%lx", xctl); in guest_validate_irq()
133 __GUEST_ASSERT(config_iter + 1 == irq_iter, in guest_run_stage()
H A Didreg-idst.c29 __GUEST_ASSERT(!undef, #r " unexpected UNDEF"); \
30 __GUEST_ASSERT(sys64, #r " didn't trap"); \
H A Dat.c41 __GUEST_ASSERT((expect_fault) == fault, \
45 __GUEST_ASSERT(fsc == ESR_ELx_FSC_ACCESS_L(3), \
H A Dhypercalls.c116 __GUEST_ASSERT(res.a0 == SMCCC_RET_NOT_SUPPORTED, in guest_test_hvc()
121 __GUEST_ASSERT(res.a0 != SMCCC_RET_NOT_SUPPORTED, in guest_test_hvc()
H A Dkvm-uuid.c30 __GUEST_ASSERT(res.a0 == ARM_SMCCC_VENDOR_HYP_UID_KVM_REG_0 && in guest_code()
/linux/tools/testing/selftests/kvm/include/x86/
H A Dapic.h111 __GUEST_ASSERT(!fault, "Unexpected fault 0x%x on WRMSR(%x) = %lx\n", in x2apic_write_reg()
119 __GUEST_ASSERT(fault == GP_VECTOR, in x2apic_write_reg_fault()
/linux/tools/testing/selftests/kvm/include/
H A Ducall_common.h85 #define __GUEST_ASSERT(_condition, _fmt, _args...) \ macro
89 __GUEST_ASSERT(_condition, #_condition)
/linux/tools/testing/selftests/kvm/
H A Dset_memory_region_test.c158 __GUEST_ASSERT(val == 1 || val == MMIO_VAL, in guest_code_move_memory_region()
163 __GUEST_ASSERT(val == 1 || val == 0, in guest_code_move_memory_region()
168 __GUEST_ASSERT(val == 1 || val == MMIO_VAL, in guest_code_move_memory_region()
H A Dguest_print_test.c76 __GUEST_ASSERT(vals.a == vals.b, \ in guest_code()
/linux/tools/testing/selftests/kvm/s390/
H A Dtprot.c158 __GUEST_ASSERT(result == tests[*i].expected, in perform_next_stage()

12