/linux-6.1.9/tools/testing/selftests/kvm/x86_64/ |
D | ucna_injection_test.c | 140 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 …]
|
D | sync_regs_test.c | 138 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 …]
|
D | emulator_error_test.c | 58 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()
|
D | debug_regs.c | 108 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 …]
|
D | platform_info_test.c | 44 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()
|
D | vmx_apic_access_test.c | 99 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()
|
D | triple_fault_event_test.c | 92 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()
|
D | userspace_msr_exit_test.c | 401 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 …]
|
D | vmx_close_while_nested_test.c | 67 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()
|
D | cr4_cpuid_sync_test.c | 69 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()
|
D | svm_vmcall_test.c | 54 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()
|
D | svm_nested_shutdown_test.c | 61 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()
|
D | vmx_invalid_nested_guest_state.c | 77 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main() 79 run->exit_reason, exit_reason_str(run->exit_reason)); in main()
|
D | xen_vmcall_test.c | 110 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()
|
D | userspace_io_test.c | 70 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()
|
D | svm_int_ctl_test.c | 109 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()
|
D | monitor_mwait_test.c | 85 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()
|
D | tsc_scaling_sync.c | 71 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()
|
D | vmx_exception_with_invalid_guest_state.c | 29 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()
|
D | vmx_dirty_log_test.c | 119 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()
|
D | vmx_tsc_adjust_test.c | 143 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()
|
D | xapic_ipi_test.c | 201 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/ |
D | sync_regs_test.c | 129 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/ |
D | set_memory_region_test.c | 68 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/ |
D | tdx.c | 69 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()
|