Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
interface_64.h File Reference

Go to the source code of this file.

Data Structures

struct  iret_context
 
struct  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 FLAT_KERNEL_DS64   FLAT_RING3_DS64
 
#define FLAT_KERNEL_DS32   FLAT_RING3_DS32
 
#define FLAT_KERNEL_DS   FLAT_KERNEL_DS64
 
#define FLAT_KERNEL_CS64   FLAT_RING3_CS64
 
#define FLAT_KERNEL_CS32   FLAT_RING3_CS32
 
#define FLAT_KERNEL_CS   FLAT_KERNEL_CS64
 
#define FLAT_KERNEL_SS64   FLAT_RING3_SS64
 
#define FLAT_KERNEL_SS32   FLAT_RING3_SS32
 
#define FLAT_KERNEL_SS   FLAT_KERNEL_SS64
 
#define FLAT_USER_DS64   FLAT_RING3_DS64
 
#define FLAT_USER_DS32   FLAT_RING3_DS32
 
#define FLAT_USER_DS   FLAT_USER_DS64
 
#define FLAT_USER_CS64   FLAT_RING3_CS64
 
#define FLAT_USER_CS32   FLAT_RING3_CS32
 
#define FLAT_USER_CS   FLAT_USER_CS64
 
#define FLAT_USER_SS64   FLAT_RING3_SS64
 
#define FLAT_USER_SS32   FLAT_RING3_SS32
 
#define FLAT_USER_SS   FLAT_USER_SS64
 
#define __HYPERVISOR_VIRT_START   0xFFFF800000000000
 
#define __HYPERVISOR_VIRT_END   0xFFFF880000000000
 
#define __MACH2PHYS_VIRT_START   0xFFFF800000000000
 
#define __MACH2PHYS_VIRT_END   0xFFFF804000000000
 
#define __MACH2PHYS_SHIFT   3
 
#define SEGBASE_FS   0
 
#define SEGBASE_GS_USER   1
 
#define SEGBASE_GS_KERNEL   2
 
#define SEGBASE_GS_USER_SEL   3 /* Set user %gs specified in base[15:0] */
 
#define _VGCF_in_syscall   8
 
#define VGCF_in_syscall   (1<<_VGCF_in_syscall)
 
#define VGCF_IN_SYSCALL   VGCF_in_syscall
 
#define __DECL_REG(name)   uint64_t r ## name
 
#define xen_pfn_to_cr3(pfn)   ((unsigned long)(pfn) << 12)
 
#define xen_cr3_to_pfn(cr3)   ((unsigned long)(cr3) >> 12)
 
#define XEN_CALLBACK(__cs, __rip)   ((unsigned long)(__rip))
 

Typedefs

typedef unsigned long xen_callback_t
 

Functions

 DEFINE_GUEST_HANDLE_STRUCT (cpu_user_regs)
 

Macro Definition Documentation

#define __DECL_REG (   name)    uint64_t r ## name

Definition at line 95 of file interface_64.h.

#define __HYPERVISOR_VIRT_END   0xFFFF880000000000

Definition at line 39 of file interface_64.h.

#define __HYPERVISOR_VIRT_START   0xFFFF800000000000

Definition at line 38 of file interface_64.h.

#define __MACH2PHYS_SHIFT   3

Definition at line 42 of file interface_64.h.

#define __MACH2PHYS_VIRT_END   0xFFFF804000000000

Definition at line 41 of file interface_64.h.

#define __MACH2PHYS_VIRT_START   0xFFFF800000000000

Definition at line 40 of file interface_64.h.

#define _VGCF_in_syscall   8

Definition at line 75 of file interface_64.h.

#define FLAT_KERNEL_CS   FLAT_KERNEL_CS64

Definition at line 23 of file interface_64.h.

#define FLAT_KERNEL_CS32   FLAT_RING3_CS32

Definition at line 22 of file interface_64.h.

#define FLAT_KERNEL_CS64   FLAT_RING3_CS64

Definition at line 21 of file interface_64.h.

#define FLAT_KERNEL_DS   FLAT_KERNEL_DS64

Definition at line 20 of file interface_64.h.

#define FLAT_KERNEL_DS32   FLAT_RING3_DS32

Definition at line 19 of file interface_64.h.

#define FLAT_KERNEL_DS64   FLAT_RING3_DS64

Definition at line 18 of file interface_64.h.

#define FLAT_KERNEL_SS   FLAT_KERNEL_SS64

Definition at line 26 of file interface_64.h.

#define FLAT_KERNEL_SS32   FLAT_RING3_SS32

Definition at line 25 of file interface_64.h.

#define FLAT_KERNEL_SS64   FLAT_RING3_SS64

Definition at line 24 of file interface_64.h.

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

Definition at line 11 of file interface_64.h.

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

Definition at line 12 of file interface_64.h.

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

Definition at line 13 of file interface_64.h.

#define FLAT_RING3_DS64   0x0000 /* NULL selector */

Definition at line 14 of file interface_64.h.

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

Definition at line 15 of file interface_64.h.

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

Definition at line 16 of file interface_64.h.

#define FLAT_USER_CS   FLAT_USER_CS64

Definition at line 33 of file interface_64.h.

#define FLAT_USER_CS32   FLAT_RING3_CS32

Definition at line 32 of file interface_64.h.

#define FLAT_USER_CS64   FLAT_RING3_CS64

Definition at line 31 of file interface_64.h.

#define FLAT_USER_DS   FLAT_USER_DS64

Definition at line 30 of file interface_64.h.

#define FLAT_USER_DS32   FLAT_RING3_DS32

Definition at line 29 of file interface_64.h.

#define FLAT_USER_DS64   FLAT_RING3_DS64

Definition at line 28 of file interface_64.h.

#define FLAT_USER_SS   FLAT_USER_SS64

Definition at line 36 of file interface_64.h.

#define FLAT_USER_SS32   FLAT_RING3_SS32

Definition at line 35 of file interface_64.h.

#define FLAT_USER_SS64   FLAT_RING3_SS64

Definition at line 34 of file interface_64.h.

#define SEGBASE_FS   0

Definition at line 49 of file interface_64.h.

#define SEGBASE_GS_KERNEL   2

Definition at line 51 of file interface_64.h.

#define SEGBASE_GS_USER   1

Definition at line 50 of file interface_64.h.

#define SEGBASE_GS_USER_SEL   3 /* Set user %gs specified in base[15:0] */

Definition at line 52 of file interface_64.h.

#define VGCF_in_syscall   (1<<_VGCF_in_syscall)

Definition at line 76 of file interface_64.h.

#define VGCF_IN_SYSCALL   VGCF_in_syscall

Definition at line 77 of file interface_64.h.

#define XEN_CALLBACK (   __cs,
  __rip 
)    ((unsigned long)(__rip))

Definition at line 142 of file interface_64.h.

#define xen_cr3_to_pfn (   cr3)    ((unsigned long)(cr3) >> 12)

Definition at line 133 of file interface_64.h.

#define xen_pfn_to_cr3 (   pfn)    ((unsigned long)(pfn) << 12)

Definition at line 132 of file interface_64.h.

Typedef Documentation

typedef unsigned long xen_callback_t

Definition at line 140 of file interface_64.h.

Function Documentation

DEFINE_GUEST_HANDLE_STRUCT ( cpu_user_regs  )