Home
last modified time | relevance | path

Searched refs:exit_code (Results 1 – 25 of 58) sorted by relevance

123

/Linux-v6.1/tools/arch/s390/include/uapi/asm/
Dsie.h90 #define exit_code(opcode, mnemonic) \ macro
190 exit_code(0x0a, "SVC"), \
191 exit_code(0x80, "SSM"), \
192 exit_code(0x82, "LPSW"), \
193 exit_code(0x83, "DIAG"), \
194 exit_code(0xae, "SIGP"), \
195 exit_code(0xac, "STNSM"), \
196 exit_code(0xad, "STOSM"), \
197 exit_code(0xb1, "LRA"), \
198 exit_code(0xb6, "STCTL"), \
[all …]
/Linux-v6.1/arch/s390/include/uapi/asm/
Dsie.h90 #define exit_code(opcode, mnemonic) \ macro
190 exit_code(0x0a, "SVC"), \
191 exit_code(0x80, "SSM"), \
192 exit_code(0x82, "LPSW"), \
193 exit_code(0x83, "DIAG"), \
194 exit_code(0xae, "SIGP"), \
195 exit_code(0xac, "STNSM"), \
196 exit_code(0xad, "STOSM"), \
197 exit_code(0xb1, "LRA"), \
198 exit_code(0xb6, "STCTL"), \
[all …]
/Linux-v6.1/arch/arm64/kvm/hyp/include/hyp/
Dswitch.h167 static bool kvm_hyp_handle_fpsimd(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_fpsimd() argument
305 static bool kvm_hyp_handle_ptrauth(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_ptrauth() argument
329 static bool kvm_hyp_handle_sysreg(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_sysreg() argument
340 return kvm_hyp_handle_ptrauth(vcpu, exit_code); in kvm_hyp_handle_sysreg()
345 static bool kvm_hyp_handle_cp15_32(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_cp15_32() argument
354 static bool kvm_hyp_handle_iabt_low(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_iabt_low() argument
362 static bool kvm_hyp_handle_dabt_low(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_dabt_low() argument
383 *exit_code = ARM_EXCEPTION_EL1_SERROR; in kvm_hyp_handle_dabt_low()
394 static void early_exit_filter(struct kvm_vcpu *vcpu, u64 *exit_code);
402 static inline bool kvm_hyp_handle_exit(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_exit() argument
[all …]
/Linux-v6.1/lib/kunit/
Dtry-catch.c63 int exit_code, time_remaining; in kunit_try_catch_run() local
84 exit_code = try_catch->try_result; in kunit_try_catch_run()
86 if (!exit_code) in kunit_try_catch_run()
89 if (exit_code == -EFAULT) in kunit_try_catch_run()
91 else if (exit_code == -EINTR) in kunit_try_catch_run()
93 else if (exit_code) in kunit_try_catch_run()
94 kunit_err(test, "Unknown error: %d\n", exit_code); in kunit_try_catch_run()
/Linux-v6.1/tools/testing/selftests/net/
Dgro.sh14 local exit_code=0
33 exit_code=$?
34 if [[ "${exit_code}" -eq 0 ]]; then
39 echo ${exit_code}
47 exit_code=$(run_test $proto $test)
48 if [[ "${exit_code}" -ne 0 ]]; then
Dsetup_loopback.sh50 exit_code=$?
51 if [[ "${exit_code}" -ne 0 ]]; then
53 exit $exit_code
Dtoeplitz.sh194 exit_code=$?
196 if [[ "${exit_code}" -eq 0 ]]; then
199 exit "${exit_code}"
/Linux-v6.1/tools/testing/selftests/ptrace/
Dpeeksiginfo.c47 int ret, exit_code = -1; in check_error_paths() local
99 exit_code = 0; in check_error_paths()
102 return exit_code; in check_error_paths()
108 int i, j, ret, exit_code = -1; in check_direct_path() local
147 exit_code = 0; in check_direct_path()
149 return exit_code; in check_direct_path()
155 int i, exit_code = 1; in main() local
211 exit_code = 0; in main()
218 return exit_code; in main()
/Linux-v6.1/arch/arm64/kvm/hyp/nvhe/
Dswitch.c170 static bool kvm_handle_pvm_sys64(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_handle_pvm_sys64() argument
177 return (kvm_hyp_handle_sysreg(vcpu, exit_code) || in kvm_handle_pvm_sys64()
178 kvm_handle_pvm_sysreg(vcpu, exit_code)); in kvm_handle_pvm_sys64()
221 static void early_exit_filter(struct kvm_vcpu *vcpu, u64 *exit_code) in early_exit_filter() argument
234 *exit_code &= BIT(ARM_EXIT_WITH_SERROR_BIT); in early_exit_filter()
235 *exit_code |= ARM_EXCEPTION_IL; in early_exit_filter()
246 u64 exit_code; in __kvm_vcpu_run() local
299 exit_code = __guest_enter(vcpu); in __kvm_vcpu_run()
302 } while (fixup_guest_exit(vcpu, &exit_code)); in __kvm_vcpu_run()
333 return exit_code; in __kvm_vcpu_run()
/Linux-v6.1/tools/testing/selftests/kvm/x86_64/
Dhyperv_svm_test.c81 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in guest_code()
89 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_MSR); in guest_code()
95 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_MSR); in guest_code()
104 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in guest_code()
110 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_MSR); in guest_code()
114 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in guest_code()
Dsvm_nested_soft_inject_test.c98 GUEST_ASSERT_3(vmcb->control.exit_code == SVM_EXIT_VMMCALL, in l1_guest_code()
99 vmcb->control.exit_code, in l1_guest_code()
127 GUEST_ASSERT_3(vmcb->control.exit_code == SVM_EXIT_HLT, in l1_guest_code()
128 vmcb->control.exit_code, in l1_guest_code()
/Linux-v6.1/scripts/
Dmodules-check.sh11 exit_code=0
20 exit_code=1
26 exit $exit_code
/Linux-v6.1/Documentation/sphinx/
Dkfigure.py358 exit_code = 42
361 exit_code = subprocess.call(cmd, stdout = out)
362 if exit_code != 0:
364 "Error #%d when calling: %s" % (exit_code, " ".join(cmd)))
365 return bool(exit_code == 0)
390 exit_code = 0
393 exit_code = err.returncode
396 if exit_code != 0:
397 kernellog.warn(app, "Error #%d when calling: %s" % (exit_code, " ".join(cmd)))
405 return bool(exit_code == 0)
[all …]
/Linux-v6.1/arch/arm64/kvm/hyp/vhe/
Dswitch.c121 static void early_exit_filter(struct kvm_vcpu *vcpu, u64 *exit_code) in early_exit_filter() argument
130 u64 exit_code; in __kvm_vcpu_run_vhe() local
159 exit_code = __guest_enter(vcpu); in __kvm_vcpu_run_vhe()
162 } while (fixup_guest_exit(vcpu, &exit_code)); in __kvm_vcpu_run_vhe()
175 return exit_code; in __kvm_vcpu_run_vhe()
/Linux-v6.1/tools/testing/selftests/bpf/
Dverify_sig_setup.sh65 local exit_code="$1"
68 if [[ "${exit_code}" -ne 0 ]]; then
73 exit ${exit_code}
Dget_cgroup_id_user.c58 int exit_code = 1; in main() local
136 exit_code = 0; in main()
145 return exit_code; in main()
/Linux-v6.1/arch/x86/kernel/
Dsev-shared.c167 static bool vc_decoding_needed(unsigned long exit_code) in vc_decoding_needed() argument
170 return !(exit_code >= SVM_EXIT_EXCP_BASE && in vc_decoding_needed()
171 exit_code <= SVM_EXIT_LAST_EXCP); in vc_decoding_needed()
176 unsigned long exit_code) in vc_init_em_ctxt() argument
183 if (vc_decoding_needed(exit_code)) in vc_init_em_ctxt()
224 u64 exit_code, u64 exit_info_1, in sev_es_ghcb_hv_call() argument
231 ghcb_set_sw_exit_code(ghcb, exit_code); in sev_es_ghcb_hv_call()
530 void __init do_vc_no_ghcb(struct pt_regs *regs, unsigned long exit_code) in do_vc_no_ghcb() argument
538 if (exit_code != SVM_EXIT_CPUID) in do_vc_no_ghcb()
910 unsigned long exit_code) in vc_handle_rdtsc() argument
[all …]
/Linux-v6.1/tools/perf/arch/powerpc/util/
Dkvm-stat.c45 static const char *get_hcall_exit_reason(u64 exit_code) in get_hcall_exit_reason() argument
50 if (tbl->exit_code == exit_code) in get_hcall_exit_reason()
56 (unsigned long long)exit_code); in get_hcall_exit_reason()
/Linux-v6.1/arch/x86/kvm/svm/
Dnested.c41 if (vmcb->control.exit_code != SVM_EXIT_NPF) { in nested_svm_inject_npf_exit()
46 vmcb->control.exit_code = SVM_EXIT_NPF; in nested_svm_inject_npf_exit()
349 to->exit_code = from->exit_code; in __nested_copy_vmcb_control_to_cache()
846 vmcb12->control.exit_code = SVM_EXIT_ERR; in nested_svm_vmrun()
879 svm->vmcb->control.exit_code = SVM_EXIT_ERR; in nested_svm_vmrun()
979 vmcb12->control.exit_code = vmcb02->control.exit_code; in nested_svm_vmexit()
984 if (vmcb12->control.exit_code != SVM_EXIT_ERR) in nested_svm_vmexit()
1048 trace_kvm_nested_vmexit_inject(vmcb12->control.exit_code, in nested_svm_vmexit()
1226 u32 exit_code = svm->vmcb->control.exit_code; in nested_svm_intercept() local
1229 switch (exit_code) { in nested_svm_intercept()
[all …]
Dsvm.c2515 svm->vmcb->control.exit_code = SVM_EXIT_CR0_SEL_WRITE; in check_selective_cr0_intercepted()
2538 if (svm->vmcb->control.exit_code == SVM_EXIT_CR0_SEL_WRITE) in cr_interception()
2541 cr = svm->vmcb->control.exit_code - SVM_EXIT_READ_CR0; in cr_interception()
2607 cr = svm->vmcb->control.exit_code - SVM_EXIT_CR0_WRITE_TRAP; in cr_trap()
2655 dr = svm->vmcb->control.exit_code - SVM_EXIT_READ_DR0; in dr_interception()
3240 pr_err("%-20s%08x\n", "exit_code:", control->exit_code); in dump_vmcb()
3329 static bool svm_check_exit_valid(u64 exit_code) in svm_check_exit_valid() argument
3331 return (exit_code < ARRAY_SIZE(svm_exit_handlers) && in svm_check_exit_valid()
3332 svm_exit_handlers[exit_code]); in svm_check_exit_valid()
3335 static int svm_handle_invalid_exit(struct kvm_vcpu *vcpu, u64 exit_code) in svm_handle_invalid_exit() argument
[all …]
/Linux-v6.1/kernel/
Dexit.c804 tsk->exit_code = code; in do_exit()
925 do_group_exit(int exit_code) in do_group_exit() argument
930 exit_code = sig->group_exit_code; in do_group_exit()
932 exit_code = 0; in do_group_exit()
939 exit_code = sig->group_exit_code; in do_group_exit()
941 exit_code = 0; in do_group_exit()
943 sig->group_exit_code = exit_code; in do_group_exit()
950 do_exit(exit_code); in do_group_exit()
1037 ? p->signal->group_exit_code : p->exit_code; in wait_task_zombie()
1120 ? p->signal->group_exit_code : p->exit_code; in wait_task_zombie()
[all …]
/Linux-v6.1/arch/x86/boot/compressed/
Dsev.c217 void do_boot_stage2_vc(struct pt_regs *regs, unsigned long exit_code) in do_boot_stage2_vc() argument
226 result = vc_init_em_ctxt(&ctxt, regs, exit_code); in do_boot_stage2_vc()
230 switch (exit_code) { in do_boot_stage2_vc()
233 result = vc_handle_rdtsc(boot_ghcb, &ctxt, exit_code); in do_boot_stage2_vc()
/Linux-v6.1/tools/testing/selftests/tc-testing/
Dtdc.py279 exit_code = p.returncode
281 exit_code = None
285 if (exit_code is None or exit_code != int(tidx["expExitCode"])):
286 print("exit: {!r}".format(exit_code))
290 …res.set_failmsg('Command exited with {}, expected {}\n{}'.format(exit_code, tidx["expExitCode"], p…
719 exit_code = 0 # KSFT_PASS
729 exit_code = 1 # KSFT_FAIL
754 exit_code = 4 # KSFT_SKIP
755 exit(exit_code)
/Linux-v6.1/arch/xtensa/platforms/iss/include/platform/
Dsimcall.h24 static inline int simc_exit(int exit_code) in simc_exit() argument
27 return __simc(SYS_exit, exit_code, 0, 0); in simc_exit()
/Linux-v6.1/arch/x86/include/asm/
Dsev.h64 void do_vc_no_ghcb(struct pt_regs *regs, unsigned long exit_code);
199 int snp_issue_guest_request(u64 exit_code, struct snp_req_data *input, unsigned long *fw_err);
219 static inline int snp_issue_guest_request(u64 exit_code, struct snp_req_data *input, in snp_issue_guest_request() argument

123