Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/kvm/riscv/
Dsbi_pmu_test.c101 __GUEST_ASSERT(ret.error == 0, "Unable to start counter %ld\n", counter); in start_counter()
111 __GUEST_ASSERT(ret.error == SBI_ERR_ALREADY_STOPPED, in stop_reset_counter()
121 __GUEST_ASSERT(ret.error == 0, "Unable to stop counter %ld error %ld\n", in stop_counter()
127 __GUEST_ASSERT(regs->cause == EXC_INST_ILLEGAL, in guest_illegal_exception_handler()
168 __GUEST_ASSERT(ret.error == 0, "config matching failed %ld\n", ret.error); in get_counter_index()
181 __GUEST_ASSERT(ret.error == 0, "Unable to retrieve number of counters from SBI PMU"); in get_num_counters()
182 __GUEST_ASSERT(ret.value < RISCV_MAX_PMU_COUNTERS, in get_num_counters()
221 __GUEST_ASSERT(ctrinfo.type < 2, "Invalid counter type %d", ctrinfo.type); in read_counter()
240 __GUEST_ASSERT(0, "SBI implementation version doesn't support PMU Snapshot"); in verify_sbi_requirement_assert()
272 __GUEST_ASSERT(counter_value_post > counter_value_pre, in test_pmu_event()
[all …]
Darch_timer.c34 __GUEST_ASSERT(xcnt >= cmp, in guest_irq_handler()
59 __GUEST_ASSERT(config_iter + 1 == irq_iter, in guest_run()
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/
Dxcr0_cpuid_test.c26 __GUEST_ASSERT((__supported & (xfeatures)) != (xfeatures) || \
44 __GUEST_ASSERT(!__supported || __supported == (xfeatures), \
83 __GUEST_ASSERT(!vector, in guest_code()
92 __GUEST_ASSERT(vector == GP_VECTOR, in guest_code()
Dmonitor_mwait_test.c29 __GUEST_ASSERT((vector) == UD_VECTOR, \
33 __GUEST_ASSERT(!(vector), \
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()
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()
Dpmu_counters_test.c329 __GUEST_ASSERT(expect_gp ? vector == GP_VECTOR : !vector, \
334 __GUEST_ASSERT(val == expected_val, \
504 __GUEST_ASSERT(vector == GP_VECTOR, in guest_test_fixed_counters()
509 __GUEST_ASSERT(vector == GP_VECTOR, in guest_test_fixed_counters()
Duserspace_io_test.c46 __GUEST_ASSERT(buffer[i] == 0xaa, in guest_code()
Dapic_bus_clock_test.c91 __GUEST_ASSERT(freq < apic_hz * 105 / 100 && freq > apic_hz * 95 / 100, in apic_guest_code()
Dvmx_pmu_caps_test.c58 __GUEST_ASSERT(vector == GP_VECTOR, in guest_test_perf_capabilities_gp()
Dprivate_mem_conversions_test.c36 __GUEST_ASSERT(mem[i] == pattern, \
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/
Dno-vgic-v3.c34 __GUEST_ASSERT(handled, #r " no read trap"); \
40 __GUEST_ASSERT(handled, #r " no write trap"); \
57 __GUEST_ASSERT(FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_GIC), in guest_code()
104 __GUEST_ASSERT((val & BIT(0)), in guest_code()
Dvpmu_counter_access.c181 __GUEST_ASSERT((_tval & mask), \
185 __GUEST_ASSERT(!(_tval & mask), \
272 __GUEST_ASSERT(read_data == write_data, in test_access_pmc_regs()
283 __GUEST_ASSERT(read_data == 0, in test_access_pmc_regs()
290 __GUEST_ASSERT(read_data == write_data, in test_access_pmc_regs()
305 __GUEST_ASSERT(expected_ec == ec, in guest_sync_handler()
365 __GUEST_ASSERT(expected_pmcr_n <= ARMV8_PMU_MAX_GENERAL_COUNTERS, in guest_code()
373 __GUEST_ASSERT(pmcr_n == expected_pmcr_n, in guest_code()
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()
Dhypercalls.c107 __GUEST_ASSERT(res.a0 == SMCCC_RET_NOT_SUPPORTED, in guest_test_hvc()
112 __GUEST_ASSERT(res.a0 != SMCCC_RET_NOT_SUPPORTED, in guest_test_hvc()
Ddebug-exceptions.c368 __GUEST_ASSERT(ss_idx < 4, "Expected index < 4, got '%lu'", ss_idx); in guest_ss_handler()
Darch_timer_edge_cases.c121 __GUEST_ASSERT(h == n, "Handled %d IRQS but expected %d", h, n); in assert_irqs_handled()
/linux-6.12.1/tools/testing/selftests/kvm/include/x86_64/
Dapic.h106 __GUEST_ASSERT(!fault, "Unexpected fault 0x%x on WRMSR(%x) = %lx\n", in x2apic_write_reg()
114 __GUEST_ASSERT(fault == GP_VECTOR, in x2apic_write_reg_fault()
/linux-6.12.1/tools/testing/selftests/kvm/include/
Ducall_common.h85 #define __GUEST_ASSERT(_condition, _fmt, _args...) \ macro
89 __GUEST_ASSERT(_condition, #_condition)
/linux-6.12.1/tools/testing/selftests/kvm/
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()
Dguest_print_test.c76 __GUEST_ASSERT(vals.a == vals.b, \ in guest_code()
/linux-6.12.1/tools/testing/selftests/kvm/s390x/
Dtprot.c158 __GUEST_ASSERT(result == tests[*i].expected, in perform_next_stage()
/linux-6.12.1/tools/testing/selftests/kvm/lib/aarch64/
Dgic_v3_its.c192 __GUEST_ASSERT(i < GITS_CMDQ_POLL_ITERATIONS, in its_send_cmd()
/linux-6.12.1/tools/testing/selftests/kvm/lib/riscv/
Dprocessor.c495 __GUEST_ASSERT(!ret.error || ret.error == SBI_ERR_NOT_SUPPORTED, in guest_sbi_probe_extension()