Xen Test Framework
Functions | Variables
traps.c File Reference
#include <xtf/lib.h>
#include <xtf/traps.h>
#include <arch/decode.h>
#include <arch/lib.h>
#include <arch/processor.h>
+ Include dependency graph for traps.c:

Go to the source code of this file.

Functions

void do_exception (struct cpu_regs *regs)
 
bool do_unhandled_exception (struct cpu_regs *regs)
 May be implemented by a guest to provide custom exception handling. More...
 
void do_syscall (struct cpu_regs *regs)
 May be implemented by a guest to handle SYSCALL invocations. More...
 
void do_sysenter (struct cpu_regs *regs)
 May be implemented by a guest to handle SYSENTER invocations. More...
 
void do_evtchn (struct cpu_regs *regs)
 May be implemented by a guest to handle Event Channel upcalls. More...
 

Variables

unsigned long exec_user_cs = __USER_CS
 
unsigned long exec_user_ss = __USER_DS
 
unsigned long exec_user_efl_and_mask
 
unsigned long exec_user_efl_or_mask
 

Function Documentation

◆ do_exception()

void do_exception ( struct cpu_regs *  regs)

Definition at line 22 of file traps.c.

+ Here is the call graph for this function:

◆ do_unhandled_exception()

bool do_unhandled_exception ( struct cpu_regs *  regs)

May be implemented by a guest to provide custom exception handling.

Definition at line 63 of file traps.c.

+ Here is the caller graph for this function:

◆ do_syscall()

void do_syscall ( struct cpu_regs *  regs)

May be implemented by a guest to handle SYSCALL invocations.

Definition at line 68 of file traps.c.

◆ do_sysenter()

void do_sysenter ( struct cpu_regs *  regs)

May be implemented by a guest to handle SYSENTER invocations.

Definition at line 73 of file traps.c.

◆ do_evtchn()

void do_evtchn ( struct cpu_regs *  regs)

May be implemented by a guest to handle Event Channel upcalls.

Definition at line 78 of file traps.c.

Variable Documentation

◆ exec_user_cs

unsigned long exec_user_cs = __USER_CS

Definition at line 12 of file traps.c.

◆ exec_user_ss

unsigned long exec_user_ss = __USER_DS

Definition at line 13 of file traps.c.

◆ exec_user_efl_and_mask

unsigned long exec_user_efl_and_mask
Initial value:
=
~(IS_DEFINED(CONFIG_PV) ? X86_EFLAGS_IF : 0)
#define IS_DEFINED(x)
Evalute whether the CONFIG_ token x is defined.
Definition: macro_magic.h:67
#define X86_EFLAGS_IF
Definition: processor.h:14

Definition at line 14 of file traps.c.

◆ exec_user_efl_or_mask

unsigned long exec_user_efl_or_mask

Definition at line 16 of file traps.c.