Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
interface.h File Reference
#include <asm/xen/interface_64.h>
#include <asm/pvclock-abi.h>

Go to the source code of this file.

Data Structures

struct  trap_info
 
struct  arch_shared_info
 
struct  vcpu_guest_context
 

Macros

#define __DEFINE_GUEST_HANDLE(name, type)   typedef type * __guest_handle_ ## name
 
#define DEFINE_GUEST_HANDLE_STRUCT(name)   __DEFINE_GUEST_HANDLE(name, struct name)
 
#define DEFINE_GUEST_HANDLE(name)   __DEFINE_GUEST_HANDLE(name, name)
 
#define GUEST_HANDLE(name)   __guest_handle_ ## name
 
#define PRI_xen_pfn   "lx"
 
#define PRI_xen_ulong   "lx"
 
#define HYPERVISOR_VIRT_START   mk_unsigned_long(__HYPERVISOR_VIRT_START)
 
#define MACH2PHYS_VIRT_START   mk_unsigned_long(__MACH2PHYS_VIRT_START)
 
#define MACH2PHYS_VIRT_END   mk_unsigned_long(__MACH2PHYS_VIRT_END)
 
#define MACH2PHYS_NR_ENTRIES   ((MACH2PHYS_VIRT_END-MACH2PHYS_VIRT_START)>>__MACH2PHYS_SHIFT)
 
#define MAX_VIRT_CPUS   32
 
#define FIRST_RESERVED_GDT_PAGE   14
 
#define FIRST_RESERVED_GDT_BYTE   (FIRST_RESERVED_GDT_PAGE * 4096)
 
#define FIRST_RESERVED_GDT_ENTRY   (FIRST_RESERVED_GDT_BYTE / 8)
 
#define TI_GET_DPL(_ti)   ((_ti)->flags & 3)
 
#define TI_GET_IF(_ti)   ((_ti)->flags & 4)
 
#define TI_SET_DPL(_ti, _dpl)   ((_ti)->flags |= (_dpl))
 
#define TI_SET_IF(_ti, _if)   ((_ti)->flags |= ((!!(_if))<<2))
 
#define VGCF_I387_VALID   (1<<0)
 
#define VGCF_HVM_GUEST   (1<<1)
 
#define VGCF_IN_KERNEL   (1<<2)
 
#define XEN_EMULATE_PREFIX   ".byte 0x0f,0x0b,0x78,0x65,0x6e ; "
 
#define XEN_CPUID   XEN_EMULATE_PREFIX "cpuid"
 

Typedefs

typedef unsigned long xen_pfn_t
 
typedef unsigned long xen_ulong_t
 

Functions

 __DEFINE_GUEST_HANDLE (uchar, unsigned char)
 
 __DEFINE_GUEST_HANDLE (uint, unsigned int)
 
 DEFINE_GUEST_HANDLE (char)
 
 DEFINE_GUEST_HANDLE (int)
 
 DEFINE_GUEST_HANDLE (void)
 
 DEFINE_GUEST_HANDLE (uint64_t)
 
 DEFINE_GUEST_HANDLE (uint32_t)
 
 DEFINE_GUEST_HANDLE_STRUCT (trap_info)
 
 DEFINE_GUEST_HANDLE_STRUCT (vcpu_guest_context)
 

Macro Definition Documentation

#define __DEFINE_GUEST_HANDLE (   name,
  type 
)    typedef type * __guest_handle_ ## name

Definition at line 16 of file interface.h.

#define DEFINE_GUEST_HANDLE (   name)    __DEFINE_GUEST_HANDLE(name, name)

Definition at line 22 of file interface.h.

#define DEFINE_GUEST_HANDLE_STRUCT (   name)    __DEFINE_GUEST_HANDLE(name, struct name)

Definition at line 20 of file interface.h.

#define FIRST_RESERVED_GDT_BYTE   (FIRST_RESERVED_GDT_PAGE * 4096)

Definition at line 89 of file interface.h.

#define FIRST_RESERVED_GDT_ENTRY   (FIRST_RESERVED_GDT_BYTE / 8)

Definition at line 90 of file interface.h.

#define FIRST_RESERVED_GDT_PAGE   14

Definition at line 88 of file interface.h.

#define GUEST_HANDLE (   name)    __guest_handle_ ## name

Definition at line 23 of file interface.h.

#define HYPERVISOR_VIRT_START   mk_unsigned_long(__HYPERVISOR_VIRT_START)

Definition at line 69 of file interface.h.

#define MACH2PHYS_NR_ENTRIES   ((MACH2PHYS_VIRT_END-MACH2PHYS_VIRT_START)>>__MACH2PHYS_SHIFT)

Definition at line 74 of file interface.h.

#define MACH2PHYS_VIRT_END   mk_unsigned_long(__MACH2PHYS_VIRT_END)

Definition at line 73 of file interface.h.

#define MACH2PHYS_VIRT_START   mk_unsigned_long(__MACH2PHYS_VIRT_START)

Definition at line 72 of file interface.h.

#define MAX_VIRT_CPUS   32

Definition at line 77 of file interface.h.

#define PRI_xen_pfn   "lx"

Definition at line 54 of file interface.h.

#define PRI_xen_ulong   "lx"

Definition at line 56 of file interface.h.

#define TI_GET_DPL (   _ti)    ((_ti)->flags & 3)

Definition at line 102 of file interface.h.

#define TI_GET_IF (   _ti)    ((_ti)->flags & 4)

Definition at line 103 of file interface.h.

#define TI_SET_DPL (   _ti,
  _dpl 
)    ((_ti)->flags |= (_dpl))

Definition at line 104 of file interface.h.

#define TI_SET_IF (   _ti,
  _if 
)    ((_ti)->flags |= ((!!(_if))<<2))

Definition at line 105 of file interface.h.

#define VGCF_HVM_GUEST   (1<<1)

Definition at line 141 of file interface.h.

#define VGCF_I387_VALID   (1<<0)

Definition at line 140 of file interface.h.

#define VGCF_IN_KERNEL   (1<<2)

Definition at line 142 of file interface.h.

#define XEN_CPUID   XEN_EMULATE_PREFIX "cpuid"

Definition at line 182 of file interface.h.

#define XEN_EMULATE_PREFIX   ".byte 0x0f,0x0b,0x78,0x65,0x6e ; "

Definition at line 181 of file interface.h.

Typedef Documentation

typedef unsigned long xen_pfn_t

Definition at line 53 of file interface.h.

typedef unsigned long xen_ulong_t

Definition at line 55 of file interface.h.

Function Documentation

__DEFINE_GUEST_HANDLE ( uchar  ,
unsigned  char 
)
__DEFINE_GUEST_HANDLE ( uint  ,
unsigned  int 
)
DEFINE_GUEST_HANDLE ( char  )
DEFINE_GUEST_HANDLE ( int  )
DEFINE_GUEST_HANDLE ( void  )
DEFINE_GUEST_HANDLE ( uint64_t  )
DEFINE_GUEST_HANDLE ( uint32_t  )
DEFINE_GUEST_HANDLE_STRUCT ( trap_info  )
DEFINE_GUEST_HANDLE_STRUCT ( vcpu_guest_context  )