Xen Test Framework
Functions
extable.h File Reference

Common x86 exception table helper functions. More...

#include <arch/exinfo.h>
#include <arch/regs.h>
+ Include dependency graph for extable.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool ex_record_fault_eax (struct cpu_regs *regs, const struct extable_entry *ex)
 Record the current fault in %eax. More...
 
bool ex_record_fault_edi (struct cpu_regs *regs, const struct extable_entry *ex)
 Record the current fault in %edi. More...
 
bool ex_rdmsr_safe (struct cpu_regs *regs, const struct extable_entry *ex)
 Fixup from a rdmsr fault. More...
 
bool ex_wrmsr_safe (struct cpu_regs *regs, const struct extable_entry *ex)
 Fixup from a wrmsr fault. More...
 

Detailed Description

Common x86 exception table helper functions.

Definition in file extable.h.

Function Documentation

◆ ex_record_fault_eax()

bool ex_record_fault_eax ( struct cpu_regs *  regs,
const struct extable_entry ex 
)

Record the current fault in %eax.

Sample usage:

  asm volatile ("1: $INSN; 2:"
                _ASM_EXTABLE_HANDLER(1b, 2b, P[rec])
                : "=a" (fault) : "0" (0), [rec] "p" (ex_record_fault_eax));

Definition at line 8 of file extable.c.

+ Here is the caller graph for this function:

◆ ex_record_fault_edi()

bool ex_record_fault_edi ( struct cpu_regs *  regs,
const struct extable_entry ex 
)

Record the current fault in %edi.

Sample usage:

  asm volatile ("1: $INSN; 2:"
                _ASM_EXTABLE_HANDLER(1b, 2b, P[rec])
                : "=D" (fault) : "0" (0), [rec] "p" (ex_record_fault_edi));

Definition at line 16 of file extable.c.

+ Here is the caller graph for this function:

◆ ex_rdmsr_safe()

bool ex_rdmsr_safe ( struct cpu_regs *  regs,
const struct extable_entry ex 
)

Fixup from a rdmsr fault.

Clobber the MSR index to signify error, and zero output.

Definition at line 24 of file extable.c.

+ Here is the caller graph for this function:

◆ ex_wrmsr_safe()

bool ex_wrmsr_safe ( struct cpu_regs *  regs,
const struct extable_entry ex 
)

Fixup from a wrmsr fault.

Clobber the MSR index to signify error.

Definition at line 33 of file extable.c.

+ Here is the caller graph for this function: