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

Go to the source code of this file.

Data Structures

struct  xen_cpu_user_regs
 
struct  arch_vcpu_info
 

Macros

#define FLAT_RING3_CS32   0xe023 /* GDT index 260 */
 
#define FLAT_RING3_CS64   0xe033 /* GDT index 261 */
 
#define FLAT_RING3_DS32   0xe02b /* GDT index 262 */
 
#define FLAT_RING3_DS64   0x0000 /* NULL selector */
 
#define FLAT_RING3_SS32   0xe02b /* GDT index 262 */
 
#define FLAT_RING3_SS64   0xe02b /* GDT index 262 */
 
#define MACH2PHYS_VIRT_START   0xFFFF800000000000UL
 
#define VGCF_in_syscall   0x100
 
#define __DECL_REG_LOHI(which)
 
#define __DECL_REG_LO8(name)
 
#define __DECL_REG_LO16(name)
 
#define __DECL_REG_HI(num)
 
#define INIT_XEN_CALLBACK(_cs, _ip)   (_ip)
 

Typedefs

typedef unsigned long xen_callback_t
 

Functions

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

Macro Definition Documentation

◆ FLAT_RING3_CS32

#define FLAT_RING3_CS32   0xe023 /* GDT index 260 */

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

◆ FLAT_RING3_CS64

#define FLAT_RING3_CS64   0xe033 /* GDT index 261 */

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

◆ FLAT_RING3_DS32

#define FLAT_RING3_DS32   0xe02b /* GDT index 262 */

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

◆ FLAT_RING3_DS64

#define FLAT_RING3_DS64   0x0000 /* NULL selector */

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

◆ FLAT_RING3_SS32

#define FLAT_RING3_SS32   0xe02b /* GDT index 262 */

Definition at line 15 of file xen-x86_64.h.

◆ FLAT_RING3_SS64

#define FLAT_RING3_SS64   0xe02b /* GDT index 262 */

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

◆ MACH2PHYS_VIRT_START

#define MACH2PHYS_VIRT_START   0xFFFF800000000000UL

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

◆ VGCF_in_syscall

#define VGCF_in_syscall   0x100

Definition at line 21 of file xen-x86_64.h.

◆ __DECL_REG_LOHI

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

Definition at line 26 of file xen-x86_64.h.

◆ __DECL_REG_LO8

#define __DECL_REG_LO8 (   name)
Value:
union { \
uint64_t r ## name; \
uint32_t e ## name; \
uint16_t name; \
uint8_t name ## l; \
}
name
Definition: mkcfg.py:14

Definition at line 35 of file xen-x86_64.h.

◆ __DECL_REG_LO16

#define __DECL_REG_LO16 (   name)
Value:
union { \
uint64_t r ## name; \
uint32_t e ## name; \
uint16_t name; \
}

Definition at line 41 of file xen-x86_64.h.

◆ __DECL_REG_HI

#define __DECL_REG_HI (   num)
Value:
union { \
uint64_t r ## num; \
uint32_t r ## num ## d; \
uint16_t r ## num ## w; \
uint8_t r ## num ## b; \
}

Definition at line 46 of file xen-x86_64.h.

◆ INIT_XEN_CALLBACK

#define INIT_XEN_CALLBACK (   _cs,
  _ip 
)    (_ip)

Definition at line 106 of file xen-x86_64.h.

Typedef Documentation

◆ xen_callback_t

typedef unsigned long xen_callback_t

Definition at line 104 of file xen-x86_64.h.

Function Documentation

◆ xen_pfn_to_cr3()

static unsigned long xen_pfn_to_cr3 ( unsigned long  pfn)
inlinestatic

Definition at line 89 of file xen-x86_64.h.

◆ xen_cr3_to_pfn()

static unsigned long xen_cr3_to_pfn ( unsigned long  cr3)
inlinestatic

Definition at line 94 of file xen-x86_64.h.