Lines Matching +full:non +full:- +full:pc
1 // SPDX-License-Identifier: GPL-2.0-only
18 * hyp_prepare_backtrace - Prepare non-protected nVHE backtrace.
21 * @pc : program counter at which to start the unwinding.
23 * Save the information needed by the host to unwind the non-protected
26 static void hyp_prepare_backtrace(unsigned long fp, unsigned long pc) in hyp_prepare_backtrace() argument
31 stacktrace_info->stack_base = (unsigned long)(params->stack_hyp_va - PAGE_SIZE); in hyp_prepare_backtrace()
32 stacktrace_info->overflow_stack_base = (unsigned long)this_cpu_ptr(overflow_stack); in hyp_prepare_backtrace()
33 stacktrace_info->fp = fp; in hyp_prepare_backtrace()
34 stacktrace_info->pc = pc; in hyp_prepare_backtrace()
56 unsigned long high = params->stack_hyp_va; in stackinfo_get_hyp()
57 unsigned long low = high - PAGE_SIZE; in stackinfo_get_hyp()
77 if (!consume_entry(cookie, state->pc)) in unwind()
86 * pkvm_save_backtrace_entry - Saves a protected nVHE HYP stacktrace entry
103 if (*idx > ARRAY_SIZE(pkvm_stacktrace) - 2) in pkvm_save_backtrace_entry()
113 * pkvm_save_backtrace - Saves the protected nVHE HYP stacktrace
116 * @pc : program counter at which to start the unwinding.
121 static void pkvm_save_backtrace(unsigned long fp, unsigned long pc) in pkvm_save_backtrace() argument
133 kvm_nvhe_unwind_init(&state, fp, pc); in pkvm_save_backtrace()
138 static void pkvm_save_backtrace(unsigned long fp, unsigned long pc) in pkvm_save_backtrace() argument
144 * kvm_nvhe_prepare_backtrace - prepare to dump the nVHE backtrace
147 * @pc : program counter at which to start the unwinding.
152 void kvm_nvhe_prepare_backtrace(unsigned long fp, unsigned long pc) in kvm_nvhe_prepare_backtrace() argument
155 pkvm_save_backtrace(fp, pc); in kvm_nvhe_prepare_backtrace()
157 hyp_prepare_backtrace(fp, pc); in kvm_nvhe_prepare_backtrace()