Home
last modified time | relevance | path

Searched refs:exit_reason (Results 1 – 25 of 105) sorted by relevance

12345

/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Ducna_injection_test.c140 unsigned int exit_reason; in run_vcpu_expect_gp() local
145 exit_reason = vcpu->run->exit_reason; in run_vcpu_expect_gp()
146 TEST_ASSERT(exit_reason == KVM_EXIT_IO, in run_vcpu_expect_gp()
148 exit_reason, exit_reason_str(exit_reason)); in run_vcpu_expect_gp()
185 unsigned int exit_reason; in run_ucna_injection() local
194 exit_reason = params->vcpu->run->exit_reason; in run_ucna_injection()
195 TEST_ASSERT(exit_reason == KVM_EXIT_IO, in run_ucna_injection()
197 exit_reason, exit_reason_str(exit_reason)); in run_ucna_injection()
207 exit_reason = params->vcpu->run->exit_reason; in run_ucna_injection()
208 TEST_ASSERT(exit_reason == KVM_EXIT_IO, in run_ucna_injection()
[all …]
Dsync_regs_test.c138 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
140 run->exit_reason, in main()
141 exit_reason_str(run->exit_reason)); in main()
160 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
162 run->exit_reason, in main()
163 exit_reason_str(run->exit_reason)); in main()
187 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
189 run->exit_reason, in main()
190 exit_reason_str(run->exit_reason)); in main()
205 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
[all …]
Demulator_error_test.c58 TEST_ASSERT(run->exit_reason == KVM_EXIT_INTERNAL_ERROR, in process_exit_on_emulation_error()
60 run->exit_reason, in process_exit_on_emulation_error()
61 exit_reason_str(run->exit_reason)); in process_exit_on_emulation_error()
102 if (vcpu->run->exit_reason == KVM_EXIT_IO && in check_for_guest_assert()
115 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in process_ucall_done()
117 run->exit_reason, in process_ucall_done()
118 exit_reason_str(run->exit_reason)); in process_ucall_done()
130 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in process_ucall()
132 run->exit_reason, in process_ucall()
133 exit_reason_str(run->exit_reason)); in process_ucall()
Ddebug_regs.c108 TEST_ASSERT(run->exit_reason == KVM_EXIT_DEBUG && in main()
112 run->exit_reason, run->debug.arch.exception, in main()
125 TEST_ASSERT(run->exit_reason == KVM_EXIT_DEBUG && in main()
131 i, run->exit_reason, run->debug.arch.exception, in main()
148 TEST_ASSERT(run->exit_reason == KVM_EXIT_DEBUG && in main()
154 i, run->exit_reason, run->debug.arch.exception, in main()
174 TEST_ASSERT(run->exit_reason == KVM_EXIT_DEBUG && in main()
180 i, run->exit_reason, run->debug.arch.exception, in main()
192 TEST_ASSERT(run->exit_reason == KVM_EXIT_DEBUG && in main()
198 run->exit_reason, run->debug.arch.exception, in main()
[all …]
Dplatform_info_test.c44 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in test_msr_platform_info_enabled()
46 run->exit_reason, in test_msr_platform_info_enabled()
47 exit_reason_str(run->exit_reason)); in test_msr_platform_info_enabled()
63 TEST_ASSERT(run->exit_reason == KVM_EXIT_SHUTDOWN, in test_msr_platform_info_disabled()
65 run->exit_reason, in test_msr_platform_info_disabled()
66 exit_reason_str(run->exit_reason)); in test_msr_platform_info_disabled()
Dvmx_apic_access_test.c99 TEST_ASSERT(run->exit_reason == in main()
102 run->exit_reason, in main()
103 exit_reason_str(run->exit_reason)); in main()
110 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
112 run->exit_reason, in main()
113 exit_reason_str(run->exit_reason)); in main()
Dtriple_fault_event_test.c92 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
94 run->exit_reason, exit_reason_str(run->exit_reason)); in main()
114 TEST_ASSERT(run->exit_reason == KVM_EXIT_SHUTDOWN, in main()
116 run->exit_reason, in main()
117 exit_reason_str(run->exit_reason)); in main()
Duserspace_msr_exit_test.c401 if (vcpu->run->exit_reason == KVM_EXIT_IO && in check_for_guest_assert()
413 TEST_ASSERT(run->exit_reason == KVM_EXIT_X86_RDMSR, in process_rdmsr()
415 run->exit_reason, in process_rdmsr()
416 exit_reason_str(run->exit_reason)); in process_rdmsr()
448 TEST_ASSERT(run->exit_reason == KVM_EXIT_X86_WRMSR, in process_wrmsr()
450 run->exit_reason, in process_wrmsr()
451 exit_reason_str(run->exit_reason)); in process_wrmsr()
480 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in process_ucall_done()
482 run->exit_reason, in process_ucall_done()
483 exit_reason_str(run->exit_reason)); in process_ucall_done()
[all …]
Dvmx_close_while_nested_test.c67 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
69 run->exit_reason, in main()
70 exit_reason_str(run->exit_reason)); in main()
Dcr4_cpuid_sync_test.c69 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
71 run->exit_reason, in main()
72 exit_reason_str(run->exit_reason)); in main()
Dsvm_vmcall_test.c54 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
56 run->exit_reason, in main()
57 exit_reason_str(run->exit_reason)); in main()
Dsvm_nested_shutdown_test.c61 TEST_ASSERT(run->exit_reason == KVM_EXIT_SHUTDOWN, in main()
63 run->exit_reason, in main()
64 exit_reason_str(run->exit_reason)); in main()
Dvmx_invalid_nested_guest_state.c77 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
79 run->exit_reason, exit_reason_str(run->exit_reason)); in main()
Dxen_vmcall_test.c110 if (run->exit_reason == KVM_EXIT_XEN) { in main()
125 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
127 run->exit_reason, in main()
128 exit_reason_str(run->exit_reason)); in main()
Duserspace_io_test.c70 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
72 run->exit_reason, in main()
73 exit_reason_str(run->exit_reason)); in main()
Dsvm_int_ctl_test.c109 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
111 run->exit_reason, in main()
112 exit_reason_str(run->exit_reason)); in main()
Dmonitor_mwait_test.c85 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
87 run->exit_reason, in main()
88 exit_reason_str(run->exit_reason)); in main()
Dtsc_scaling_sync.c71 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in run_vcpu()
73 run->exit_reason, in run_vcpu()
74 exit_reason_str(run->exit_reason)); in run_vcpu()
Dvmx_exception_with_invalid_guest_state.c29 TEST_ASSERT(run->exit_reason == KVM_EXIT_INTERNAL_ERROR, in __run_vcpu_with_invalid_state()
31 run->exit_reason, exit_reason_str(run->exit_reason)); in __run_vcpu_with_invalid_state()
Dvmx_dirty_log_test.c119 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
121 run->exit_reason, in main()
122 exit_reason_str(run->exit_reason)); in main()
Dvmx_tsc_adjust_test.c143 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
145 run->exit_reason, in main()
146 exit_reason_str(run->exit_reason)); in main()
Dxapic_ipi_test.c201 unsigned int exit_reason; in vcpu_thread() local
210 exit_reason = vcpu->run->exit_reason; in vcpu_thread()
212 TEST_ASSERT(exit_reason == KVM_EXIT_IO, in vcpu_thread()
214 vcpu->id, exit_reason, exit_reason_str(exit_reason)); in vcpu_thread()
/linux-6.1.9/tools/testing/selftests/kvm/s390x/
Dsync_regs_test.c129 TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, in test_req_and_verify_all_valid_regs()
131 run->exit_reason, in test_req_and_verify_all_valid_regs()
132 exit_reason_str(run->exit_reason)); in test_req_and_verify_all_valid_regs()
168 TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, in test_set_and_verify_various_reg_values()
170 run->exit_reason, in test_set_and_verify_various_reg_values()
171 exit_reason_str(run->exit_reason)); in test_set_and_verify_various_reg_values()
203 TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, in test_clear_kvm_dirty_regs_bits()
205 run->exit_reason, in test_clear_kvm_dirty_regs_bits()
206 exit_reason_str(run->exit_reason)); in test_clear_kvm_dirty_regs_bits()
/linux-6.1.9/tools/testing/selftests/kvm/
Dset_memory_region_test.c68 if (run->exit_reason == KVM_EXIT_IO) { in vcpu_worker()
77 if (run->exit_reason != KVM_EXIT_MMIO) in vcpu_worker()
90 if (run->exit_reason == KVM_EXIT_IO && cmd == UCALL_ABORT) in vcpu_worker()
289 TEST_ASSERT(run->exit_reason == KVM_EXIT_SHUTDOWN || in test_delete_memory_region()
290 run->exit_reason == KVM_EXIT_INTERNAL_ERROR, in test_delete_memory_region()
291 "Unexpected exit reason = %d", run->exit_reason); in test_delete_memory_region()
299 if (run->exit_reason == KVM_EXIT_INTERNAL_ERROR) in test_delete_memory_region()
323 TEST_ASSERT(run->exit_reason == KVM_EXIT_INTERNAL_ERROR, in test_zero_memory_regions()
324 "Unexpected exit_reason = %u\n", run->exit_reason); in test_zero_memory_regions()
/linux-6.1.9/arch/x86/coco/tdx/
Dtdx.c69 static u64 hcall_func(u64 exit_reason) in hcall_func() argument
71 return exit_reason; in hcall_func()
161 switch (ve->exit_reason) { in ve_instr_len()
178 WARN_ONCE(1, "Unexpected #VE-type: %lld\n", ve->exit_reason); in ve_instr_len()
533 if (ve.exit_reason != EXIT_REASON_IO_INSTRUCTION) in tdx_early_handle_ve()
566 ve->exit_reason = out.rcx; in tdx_get_ve_info()
582 switch (ve->exit_reason) { in virt_exception_user()
586 pr_warn("Unexpected #VE: %lld\n", ve->exit_reason); in virt_exception_user()
599 switch (ve->exit_reason) { in virt_exception_kernel()
613 pr_warn("Unexpected #VE: %lld\n", ve->exit_reason); in virt_exception_kernel()

12345