Lines Matching +full:low +full:- +full:to +full:- +full:high

1 /* SPDX-License-Identifier: GPL-2.0-only */
7 * 1) Non-protected nVHE mode - the host can directly access the
9 * to allocate shared buffers for the host to read the unwinded
12 * 2) pKVM (protected nVHE) mode - the host cannot directly access
13 * the HYP memory. The stack is unwinded in EL2 and dumped to a shared
29 unsigned long low = (unsigned long)stacktrace_info->overflow_stack_base;
30 unsigned long high = low + OVERFLOW_STACK_SIZE;
33 .low = low,
34 .high = high,
40 unsigned long low = (unsigned long)this_cpu_ptr_nvhe_sym(overflow_stack);
41 unsigned long high = low + OVERFLOW_STACK_SIZE;
44 .low = low,
45 .high = high,
53 unsigned long low = (unsigned long)stacktrace_info->stack_base;
54 unsigned long high = low + NVHE_STACK_SIZE;
57 .low = low,
58 .high = high,
64 unsigned long low = (unsigned long)*this_cpu_ptr(&kvm_arm_hyp_stack_base);
65 unsigned long high = low + NVHE_STACK_SIZE;
68 .low = low,
69 .high = high,
74 * kvm_nvhe_stack_kern_va - Convert KVM nVHE HYP stack addresses to a kernel VAs
76 * The nVHE hypervisor stack is mapped in the flexible 'private' VA range, to
83 * Returns true on success and updates @addr to its corresponding kernel VA;
103 *addr = *addr - stack_hyp.low + stack_kern.low;
108 * Convert a KVN nVHE HYP frame record address to a kernel VA
118 * The FP is in the hypervisor VA space. Convert it to the kernel VA
121 if (!kvm_nvhe_stack_kern_record_va(&state->fp))
122 return -EINVAL;
133 if (!consume_entry(cookie, state->pc))
142 * kvm_nvhe_dump_backtrace_entry - Symbolize and print an nVHE backtrace entry
145 * @where : the program counter corresponding to the stack frame
149 unsigned long va_mask = GENMASK_ULL(__hyp_va_bits - 1, 0);
152 /* Mask tags and convert to kern addr */
166 kvm_err("---[ end nVHE call trace ]---\n");
170 * hyp_dump_backtrace - Dump the non-protected nVHE backtrace.
174 * The host can directly access HYP stack pages in non-protected
193 kvm_nvhe_unwind_init(&state, stacktrace_info->fp, stacktrace_info->pc);
205 * pkvm_dump_backtrace - Dump the protected nVHE HYP backtrace.
236 * kvm_nvhe_dump_backtrace - Dump KVM nVHE hypervisor backtrace.