KVM
Functions
stacktrace.c File Reference
#include <asm/kvm_asm.h>
#include <asm/kvm_hyp.h>
#include <asm/memory.h>
#include <asm/percpu.h>
Include dependency graph for stacktrace.c:

Go to the source code of this file.

Functions

 __aligned (16)
 
 DEFINE_PER_CPU (struct kvm_nvhe_stacktrace_info, kvm_stacktrace_info)
 
static void hyp_prepare_backtrace (unsigned long fp, unsigned long pc)
 
static void pkvm_save_backtrace (unsigned long fp, unsigned long pc)
 
void kvm_nvhe_prepare_backtrace (unsigned long fp, unsigned long pc)
 

Function Documentation

◆ __aligned()

__aligned ( 16  )

◆ DEFINE_PER_CPU()

DEFINE_PER_CPU ( struct kvm_nvhe_stacktrace_info  ,
kvm_stacktrace_info   
)

◆ hyp_prepare_backtrace()

static void hyp_prepare_backtrace ( unsigned long  fp,
unsigned long  pc 
)
static

Definition at line 26 of file stacktrace.c.

27 {
28  struct kvm_nvhe_stacktrace_info *stacktrace_info = this_cpu_ptr(&kvm_stacktrace_info);
29  struct kvm_nvhe_init_params *params = this_cpu_ptr(&kvm_init_params);
30 
31  stacktrace_info->stack_base = (unsigned long)(params->stack_hyp_va - PAGE_SIZE);
32  stacktrace_info->overflow_stack_base = (unsigned long)this_cpu_ptr(overflow_stack);
33  stacktrace_info->fp = fp;
34  stacktrace_info->pc = pc;
35 }
Here is the caller graph for this function:

◆ kvm_nvhe_prepare_backtrace()

void kvm_nvhe_prepare_backtrace ( unsigned long  fp,
unsigned long  pc 
)

Definition at line 152 of file stacktrace.c.

153 {
154  if (is_protected_kvm_enabled())
155  pkvm_save_backtrace(fp, pc);
156  else
157  hyp_prepare_backtrace(fp, pc);
158 }
static void pkvm_save_backtrace(unsigned long fp, unsigned long pc)
Definition: stacktrace.c:138
static void hyp_prepare_backtrace(unsigned long fp, unsigned long pc)
Definition: stacktrace.c:26
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pkvm_save_backtrace()

static void pkvm_save_backtrace ( unsigned long  fp,
unsigned long  pc 
)
static

Definition at line 138 of file stacktrace.c.

139 {
140 }
Here is the caller graph for this function: