Xen Test Framework
Data Structures | Macros | Functions
idt.h File Reference

x86 IDT vector infrastructure. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  xtf_idte
 A guest agnostic represention of IDT information. More...


#define X86_VEC_RET2KERN   0x20
 Return to kernel mode. More...
#define X86_VEC_AVAIL   0x21
 Available for test use. More...


int xtf_set_idte (unsigned int vector, const struct xtf_idte *idte)
 Set up an IDT Entry, in a guest agnostic way. More...

Detailed Description

x86 IDT vector infrastructure.

Definition in file idt.h.

Macro Definition Documentation


#define X86_VEC_RET2KERN   0x20

Return to kernel mode.

To enable easy transition between user and kernel mode for tests.

Definition at line 15 of file idt.h.


#define X86_VEC_AVAIL   0x21

Available for test use.

Definition at line 20 of file idt.h.

Function Documentation

◆ xtf_set_idte()

int xtf_set_idte ( unsigned int  vector,
const struct xtf_idte idte 

Set up an IDT Entry, in a guest agnostic way.

Construct an IDT Entry at the specified vector, using configuration provided in idte.

vectorVector to set up.
idteDetails to set up.
0 for HVM guests, hypercall result for PV guests.

Definition at line 73 of file traps.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: