Xen Test Framework
Data Structures | Macros | Typedefs | Functions
xen-x86_32.h File Reference

Go to the source code of this file.

Data Structures

struct  xen_cpu_user_regs
 
struct  arch_vcpu_info
 
struct  xen_callback
 

Macros

#define FLAT_RING1_CS   0xe019 /* GDT index 259 */
 
#define FLAT_RING1_DS   0xe021 /* GDT index 260 */
 
#define FLAT_RING1_SS   0xe021 /* GDT index 260 */
 
#define FLAT_RING3_CS   0xe02b /* GDT index 261 */
 
#define FLAT_RING3_DS   0xe033 /* GDT index 262 */
 
#define FLAT_RING3_SS   0xe033 /* GDT index 262 */
 
#define MACH2PHYS_VIRT_START   0xF5800000UL
 
#define __HYPERVISOR_VIRT_START_PAE   0xF5800000UL
 
#define __DECL_REG_LO8(which)
 
#define __DECL_REG_LO16(name)
 
#define INIT_XEN_CALLBACK(_cs, _ip)   ((xen_callback_t){ .cs = _cs, .eip = _ip })
 

Typedefs

typedef struct xen_callback xen_callback_t
 

Functions

static unsigned int xen_pfn_to_cr3 (unsigned int pfn)
 
static unsigned int xen_cr3_to_pfn (unsigned int cr3)
 

Macro Definition Documentation

◆ FLAT_RING1_CS

#define FLAT_RING1_CS   0xe019 /* GDT index 259 */

Definition at line 9 of file xen-x86_32.h.

◆ FLAT_RING1_DS

#define FLAT_RING1_DS   0xe021 /* GDT index 260 */

Definition at line 10 of file xen-x86_32.h.

◆ FLAT_RING1_SS

#define FLAT_RING1_SS   0xe021 /* GDT index 260 */

Definition at line 11 of file xen-x86_32.h.

◆ FLAT_RING3_CS

#define FLAT_RING3_CS   0xe02b /* GDT index 261 */

Definition at line 12 of file xen-x86_32.h.

◆ FLAT_RING3_DS

#define FLAT_RING3_DS   0xe033 /* GDT index 262 */

Definition at line 13 of file xen-x86_32.h.

◆ FLAT_RING3_SS

#define FLAT_RING3_SS   0xe033 /* GDT index 262 */

Definition at line 14 of file xen-x86_32.h.

◆ MACH2PHYS_VIRT_START

#define MACH2PHYS_VIRT_START   0xF5800000UL

Definition at line 16 of file xen-x86_32.h.

◆ __HYPERVISOR_VIRT_START_PAE

#define __HYPERVISOR_VIRT_START_PAE   0xF5800000UL

Definition at line 18 of file xen-x86_32.h.

◆ __DECL_REG_LO8

#define __DECL_REG_LO8 (   which)
Value:
union { \
uint32_t e ## which ## x; \
uint16_t which ## x; \
struct { \
uint8_t which ## l; \
uint8_t which ## h; \
}; \
}

Definition at line 23 of file xen-x86_32.h.

◆ __DECL_REG_LO16

#define __DECL_REG_LO16 (   name)
Value:
union { \
uint32_t e ## name, _e ## name; \
uint16_t name; \
}
name
Definition: mkcfg.py:14

Definition at line 31 of file xen-x86_32.h.

◆ INIT_XEN_CALLBACK

#define INIT_XEN_CALLBACK (   _cs,
  _ip 
)    ((xen_callback_t){ .cs = _cs, .eip = _ip })

Definition at line 88 of file xen-x86_32.h.

Typedef Documentation

◆ xen_callback_t

typedef struct xen_callback xen_callback_t

Definition at line 86 of file xen-x86_32.h.

Function Documentation

◆ xen_pfn_to_cr3()

static unsigned int xen_pfn_to_cr3 ( unsigned int  pfn)
inlinestatic

Definition at line 67 of file xen-x86_32.h.

+ Here is the caller graph for this function:

◆ xen_cr3_to_pfn()

static unsigned int xen_cr3_to_pfn ( unsigned int  cr3)
inlinestatic

Definition at line 72 of file xen-x86_32.h.

+ Here is the caller graph for this function: