Home
last modified time | relevance | path

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

1234

/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dhyperv_extended_hypercalls.c70 TEST_ASSERT(run->exit_reason == KVM_EXIT_HYPERV, in main()
72 run->exit_reason, exit_reason_str(run->exit_reason)); in main()
80 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
82 run->exit_reason, exit_reason_str(run->exit_reason)); in main()
H A 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()
H A Dxcr0_cpuid_test.c118 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
120 run->exit_reason, in main()
121 exit_reason_str(run->exit_reason)); in main()
H A Dfix_hypercall_test.c102 uc.cmd, run->exit_reason, exit_reason_str(run->exit_reason)); in enter_guest()
H A Dset_boot_cpu_id.c71 exit_reason_str(vcpu->run->exit_reason)); in run_vcpu()
/openbmc/linux/tools/testing/selftests/kvm/
H A Dguest_print_test.c118 TEST_ASSERT(run->exit_reason == UCALL_EXIT_REASON, in run_test()
120 run->exit_reason, exit_reason_str(run->exit_reason)); in run_test()
163 TEST_ASSERT(run->exit_reason == UCALL_EXIT_REASON, in test_limits()
165 run->exit_reason, exit_reason_str(run->exit_reason)); in test_limits()
H A 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()
292 TEST_ASSERT(run->exit_reason == KVM_EXIT_SHUTDOWN || in test_delete_memory_region()
293 run->exit_reason == KVM_EXIT_INTERNAL_ERROR, in test_delete_memory_region()
294 "Unexpected exit reason = %d", run->exit_reason); in test_delete_memory_region()
302 if (run->exit_reason == KVM_EXIT_INTERNAL_ERROR) in test_delete_memory_region()
H A Dhardware_disable_test.c45 __func__, run->exit_reason, in run_vcpu()
46 exit_reason_str(run->exit_reason)); in run_vcpu()
H A Ddirty_log_test.c266 exit_reason_str(run->exit_reason)); in default_after_vcpu_run()
403 } else if (run->exit_reason == KVM_EXIT_DIRTY_RING_FULL || in dirty_ring_after_vcpu_run()
407 run->exit_reason == KVM_EXIT_DIRTY_RING_FULL); in dirty_ring_after_vcpu_run()
417 exit_reason_str(run->exit_reason)); in dirty_ring_after_vcpu_run()
/openbmc/linux/tools/testing/selftests/kvm/include/
H A Dtest_util.h66 __u32 exit_reason = (vcpu)->run->exit_reason; \
68 TEST_ASSERT(exit_reason == (expected), \
71 exit_reason, exit_reason_str(exit_reason)); \
/openbmc/linux/arch/x86/coco/tdx/
H A Dtdx.c209 switch (ve->exit_reason) { in ve_instr_len()
226 WARN_ONCE(1, "Unexpected #VE-type: %lld\n", ve->exit_reason); in ve_instr_len()
573 if (ve.exit_reason != EXIT_REASON_IO_INSTRUCTION) in tdx_early_handle_ve()
606 ve->exit_reason = out.rcx; in tdx_get_ve_info()
622 switch (ve->exit_reason) { in virt_exception_user()
626 pr_warn("Unexpected #VE: %lld\n", ve->exit_reason); in virt_exception_user()
644 switch (ve->exit_reason) { in virt_exception_kernel()
660 pr_warn("Unexpected #VE: %lld\n", ve->exit_reason); in virt_exception_kernel()
/openbmc/linux/arch/arm64/kvm/
H A Dhandle_exit.c171 run->exit_reason = KVM_EXIT_DEBUG; in kvm_handle_guest_debug()
348 run->exit_reason = KVM_EXIT_FAIL_ENTRY; in handle_exit()
355 run->exit_reason = KVM_EXIT_FAIL_ENTRY; in handle_exit()
360 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in handle_exit()
H A Dmmio.c140 run->exit_reason = KVM_EXIT_ARM_NISV; in io_mem_abort()
194 run->exit_reason = KVM_EXIT_MMIO; in io_mem_abort()
H A Dpsci.c189 vcpu->run->exit_reason = KVM_EXIT_SYSTEM_EVENT; in kvm_prepare_system_event()
214 run->exit_reason = KVM_EXIT_SYSTEM_EVENT; in kvm_psci_system_suspend()
/openbmc/linux/arch/x86/include/asm/shared/
H A Dtdx.h102 static __always_inline u64 hcall_func(u64 exit_reason) in hcall_func() argument
104 return exit_reason; in hcall_func()
/openbmc/linux/arch/x86/kvm/vmx/
H A Dvmx.c1690 union vmx_exit_reason exit_reason = to_vmx(vcpu)->exit_reason; in skip_emulated_instruction() local
1725 WARN_ONCE(exit_reason.enclave_mode, in skip_emulated_instruction()
5530 vcpu->run->exit_reason = 0; in handle_cr()
6159 *reason = vmx->exit_reason.full; in vmx_get_exit_info()
6422 union vmx_exit_reason exit_reason = vmx->exit_reason; in __vmx_handle_exit() local
6491 if (exit_reason.failed_vmentry) { in __vmx_handle_exit()
6495 = exit_reason.full; in __vmx_handle_exit()
6587 exit_reason.full); in __vmx_handle_exit()
7273 vmx->exit_reason.full = 0xdead; in vmx_vcpu_enter_exit()
7311 vmx->exit_reason.failed_vmentry = 1; in vmx_vcpu_run()
[all …]
/openbmc/linux/tools/testing/selftests/kvm/lib/s390x/
H A Ducall.c13 if (run->exit_reason == KVM_EXIT_S390_SIEIC && in ucall_arch_get_ucall()
/openbmc/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Ducall.c49 if (run->exit_reason == KVM_EXIT_IO && run->io.port == UCALL_PIO_PORT) { in ucall_arch_get_ucall()
/openbmc/linux/arch/x86/kvm/
H A Dtrace.h286 #define kvm_print_exit_reason(exit_reason, isa) \ argument
289 __print_symbolic(exit_reason, SVM_EXIT_REASONS), \
290 (isa == KVM_ISA_VMX && exit_reason & ~0xffff) ? " " : "", \
300 __field( unsigned int, exit_reason ) \
315 &__entry->exit_reason, \
1747 __field(u64, exit_reason)
1754 __entry->exit_reason = ghcb->save.sw_exit_code;
1760 __entry->vcpu_id, __entry->exit_reason,
1773 __field(u64, exit_reason)
1780 __entry->exit_reason = ghcb->save.sw_exit_code;
[all …]
/openbmc/linux/tools/testing/selftests/kvm/lib/aarch64/
H A Ducall.c26 if (run->exit_reason == KVM_EXIT_MMIO && in ucall_arch_get_ucall()
/openbmc/linux/arch/x86/include/asm/
H A Dtdx.h31 u64 exit_reason; member
/openbmc/linux/tools/testing/selftests/kvm/aarch64/
H A Dsmccc_filter.c212 TEST_ASSERT(run->exit_reason == KVM_EXIT_HYPERCALL, in expect_call_fwd_to_user()
213 "Unexpected exit reason: %u", run->exit_reason); in expect_call_fwd_to_user()
/openbmc/linux/tools/testing/selftests/kvm/lib/riscv/
H A Ducall.c43 if (run->exit_reason == KVM_EXIT_RISCV_SBI && in ucall_arch_get_ucall()
/openbmc/qemu/target/i386/hvf/
H A Dhvf.c462 uint64_t exit_reason = rvmcs(cpu->accel->fd, VMCS_EXIT_REASON); in hvf_vcpu_exec() local
479 switch (exit_reason) { in hvf_vcpu_exec()
613 if (exit_reason == EXIT_REASON_RDMSR) { in hvf_vcpu_exec()
696 error_report("%llx: unhandled exit %llx", rip, exit_reason); in hvf_vcpu_exec()
/openbmc/linux/arch/mips/kvm/
H A Dvz.c836 vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_vz_no_handler()
1537 vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_vz_handle_guest_exit()
1636 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_vz_handle_tlb_ld_miss()
1645 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_vz_handle_tlb_ld_miss()
1654 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_vz_handle_tlb_ld_miss()
1661 run->exit_reason = KVM_EXIT_MMIO; in kvm_trap_vz_handle_tlb_ld_miss()
1664 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_vz_handle_tlb_ld_miss()
1692 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_vz_handle_tlb_st_miss()
1701 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_vz_handle_tlb_st_miss()
1708 run->exit_reason = KVM_EXIT_MMIO; in kvm_trap_vz_handle_tlb_st_miss()
[all …]

1234