Xen Test Framework
idt.h
Go to the documentation of this file.
1 
7 #ifndef XTF_X86_IDT_H
8 #define XTF_X86_IDT_H
9 
15 #define X86_VEC_RET2KERN 0x20
16 
20 #define X86_VEC_AVAIL 0x21
21 
22 
23 #ifndef __ASSEMBLY__
24 
26 struct xtf_idte
27 {
28  unsigned long addr;
29  unsigned int cs, dpl;
30 };
31 
42 int xtf_set_idte(unsigned int vector,
43  const struct xtf_idte *idte);
44 
45 #endif /* __ASSEMBLY__ */
46 
47 #endif /* XTF_X86_IDT_H */
48 
49 /*
50  * Local variables:
51  * mode: C
52  * c-file-style: "BSD"
53  * c-basic-offset: 4
54  * tab-width: 4
55  * indent-tabs-mode: nil
56  * End:
57  */
unsigned long addr
Definition: idt.h:28
unsigned int cs
Definition: idt.h:29
int xtf_set_idte(unsigned int vector, const struct xtf_idte *idte)
Set up an IDT Entry, in a guest agnostic way.
Definition: traps.c:73
static const struct xtf_idte idte
Definition: main.c:266
unsigned int dpl
Definition: idt.h:29
A guest agnostic represention of IDT information.
Definition: idt.h:26