| /linux/tools/testing/selftests/kvm/riscv/ |
| H A D | sbi_pmu_test.c | 106 __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 D | arch_timer.c | 34 __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 D | xcr0_cpuid_test.c | 26 __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 D | fastops_test.c | 36 __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 D | monitor_mwait_test.c | 32 __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 D | msrs_test.c | 103 __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 D | pmu_counters_test.c | 193 __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 D | hyperv_features.c | 56 __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 D | userspace_io_test.c | 46 __GUEST_ASSERT(buffer[i] == 0xaa, in guest_code()
|
| H A D | vmx_pmu_caps_test.c | 59 __GUEST_ASSERT(vector == GP_VECTOR, in guest_test_perf_capabilities_gp()
|
| H A D | amx_test.c | 209 __GUEST_ASSERT(vector == NM_VECTOR, in guest_code()
|
| H A D | private_mem_conversions_test.c | 36 __GUEST_ASSERT(mem[i] == pattern, \
|
| /linux/tools/testing/selftests/kvm/loongarch/ |
| H A D | arch_timer.c | 57 __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 D | no-vgic-v3.c | 34 __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 D | vpmu_counter_access.c | 175 __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 D | at.c | 41 __GUEST_ASSERT((expect_fault) == fault, \ 45 __GUEST_ASSERT(fsc == ESR_ELx_FSC_ACCESS_L(3), \
|
| H A D | kvm-uuid.c | 30 __GUEST_ASSERT(res.a0 == ARM_SMCCC_VENDOR_HYP_UID_KVM_REG_0 && in guest_code()
|
| H A D | debug-exceptions.c | 368 __GUEST_ASSERT(ss_idx < 4, "Expected index < 4, got '%lu'", ss_idx); in guest_ss_handler()
|
| H A D | arch_timer_edge_cases.c | 122 __GUEST_ASSERT(h == n, "Handled %d IRQS but expected %d", h, n); in assert_irqs_handled()
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | ucall_common.h | 85 #define __GUEST_ASSERT(_condition, _fmt, _args...) \ macro 89 __GUEST_ASSERT(_condition, #_condition)
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | set_memory_region_test.c | 158 __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 D | guest_print_test.c | 76 __GUEST_ASSERT(vals.a == vals.b, \ in guest_code()
|
| H A D | guest_memfd_test.c | 414 __GUEST_ASSERT(mem[i] == 0xaa, in guest_code()
|
| /linux/tools/testing/selftests/kvm/lib/arm64/ |
| H A D | gic_v3_its.c | 199 __GUEST_ASSERT(i < GITS_CMDQ_POLL_ITERATIONS, in its_send_cmd()
|
| /linux/tools/testing/selftests/kvm/lib/riscv/ |
| H A D | processor.c | 495 __GUEST_ASSERT(!ret.error || ret.error == SBI_ERR_NOT_SUPPORTED, in guest_sbi_probe_extension()
|