Home
last modified time | relevance | path

Searched refs:GUEST_ASSERT_EQ (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dtsc_msrs_test.c23 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC), val); in guest_code()
24 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC_ADJUST), val); in guest_code()
29 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC), val); in guest_code()
30 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC_ADJUST), val); in guest_code()
36 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC), val); in guest_code()
37 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC_ADJUST), val); in guest_code()
41 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC), HOST_ADJUST + val); in guest_code()
42 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC_ADJUST), val); in guest_code()
51 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC), HOST_ADJUST + val); in guest_code()
52 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC_ADJUST), val); in guest_code()
[all …]
Dnested_exceptions_test.c88 GUEST_ASSERT_EQ(ctrl->exit_code, (SVM_EXIT_EXCP_BASE + vector)); in svm_run_l2()
89 GUEST_ASSERT_EQ(ctrl->exit_info_1, error_code); in svm_run_l2()
110 GUEST_ASSERT_EQ(ctrl->exit_code, SVM_EXIT_SHUTDOWN); in l1_svm_code()
119 GUEST_ASSERT_EQ(vector == SS_VECTOR ? vmlaunch() : vmresume(), 0); in vmx_run_l2()
124 GUEST_ASSERT_EQ(vmreadz(VM_EXIT_REASON), EXIT_REASON_EXCEPTION_NMI); in vmx_run_l2()
125 GUEST_ASSERT_EQ((vmreadz(VM_EXIT_INTR_INFO) & 0xff), vector); in vmx_run_l2()
126 GUEST_ASSERT_EQ(vmreadz(VM_EXIT_INTR_ERROR_CODE), error_code); in vmx_run_l2()
133 GUEST_ASSERT_EQ(prepare_for_vmx_operation(vmx), true); in l1_vmx_code()
135 GUEST_ASSERT_EQ(load_vmcs(vmx), true); in l1_vmx_code()
138 GUEST_ASSERT_EQ(vmwrite(GUEST_IDTR_LIMIT, 0), 0); in l1_vmx_code()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/aarch64/
Ddebug-exceptions.c111 GUEST_ASSERT_EQ(sw_bp_addr, PC(sw_bp)); in guest_code()
119 GUEST_ASSERT_EQ(hw_bp_addr, PC(hw_bp)); in guest_code()
127 GUEST_ASSERT_EQ(hw_bp_addr, PC(bp_svc)); in guest_code()
128 GUEST_ASSERT_EQ(svc_addr, PC(bp_svc) + 4); in guest_code()
136 GUEST_ASSERT_EQ(sw_bp_addr, PC(bp_brk)); in guest_code()
137 GUEST_ASSERT_EQ(hw_bp_addr, PC(bp_brk)); in guest_code()
145 GUEST_ASSERT_EQ(write_data, 'x'); in guest_code()
146 GUEST_ASSERT_EQ(wp_data_addr, PC(write_data)); in guest_code()
159 GUEST_ASSERT_EQ(ss_addr[0], PC(ss_start)); in guest_code()
160 GUEST_ASSERT_EQ(ss_addr[1], PC(ss_start) + 4); in guest_code()
[all …]
Dvgic_irq.c190 GUEST_ASSERT_EQ(gic_read_ap1r0(), 0); in guest_irq_generic_handler()
259 GUEST_ASSERT_EQ(irq_handled, 0); in test_inject_fail()
287 GUEST_ASSERT_EQ(irq_handled, num); in guest_inject()
289 GUEST_ASSERT_EQ(irqnr_received[i], 1); in guest_inject()
342 GUEST_ASSERT_EQ(gic_read_ap1r0(), 0); in guest_restore_active()
393 GUEST_ASSERT_EQ(tmp, intid); in test_inject_preemption()
410 GUEST_ASSERT_EQ(gic_read_ap1r0(), 0); in test_inject_preemption()
Daarch32_id_regs.c19 #define GUEST_ASSERT_REG_RAZ(reg) GUEST_ASSERT_EQ(read_sysreg_s(reg), 0)
/linux-6.1.9/tools/testing/selftests/kvm/s390x/
Dtprot.c170 GUEST_ASSERT_EQ(set_storage_key(page_store_prot, 0x10), 0); in guest_code()
171 GUEST_ASSERT_EQ(set_storage_key(page_fetch_prot, 0x98), 0); in guest_code()
Dmemop.c337 GUEST_ASSERT_EQ(not_mapped, 0); in set_storage_key_range()
/linux-6.1.9/tools/testing/selftests/kvm/include/
Ducall_common.h67 #define GUEST_ASSERT_EQ(a, b) __GUEST_ASSERT((a) == (b), #a " == " #b, 2, a, b) macro