Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


updated comments for compiler compatibility
[palacios.git] / palacios / include / palacios / vmm_types.h
1 /*
2  * This file is part of the Palacios Virtual Machine Monitor developed
3  * by the V3VEE Project with funding from the United States National 
4  * Science Foundation and the Department of Energy.  
5  *
6  * The V3VEE Project is a joint project between Northwestern University
7  * and the University of New Mexico.  You can find out more at 
8  * http://www.v3vee.org
9  *
10  * Copyright (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> 
11  * Copyright (c) 2008, The V3VEE Project <http://www.v3vee.org> 
12  * All rights reserved.
13  *
14  * Author: Jack Lange <jarusl@cs.northwestern.edu>
15  *
16  * This is free software.  You are permitted to use,
17  * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
18  */
19
20 #ifndef __VMM_TYPES_H
21 #define __VMM_TYPES_H
22
23 #ifdef __V3VEE__
24 /* #include <palacios/vmm_stddef.h> */
25
26
27
28
29 typedef enum {SHADOW_PAGING, NESTED_PAGING} v3_paging_mode_t;
30 typedef enum {VM_RUNNING, VM_STOPPED, VM_SUSPENDED, VM_ERROR, VM_EMULATING} v3_vm_operating_mode_t;
31
32
33 typedef enum {REAL, /*UNREAL,*/ PROTECTED, PROTECTED_PAE, LONG, LONG_32_COMPAT, LONG_16_COMPAT} v3_cpu_mode_t;
34 typedef enum {PHYSICAL_MEM, VIRTUAL_MEM} v3_mem_mode_t;
35
36
37 #define NULL ((void *)0)
38
39
40 typedef signed char schar_t;
41 typedef unsigned char uchar_t;
42
43 typedef signed short sshort_t;
44 typedef unsigned short ushort_t;
45
46 typedef signed int sint_t;
47 typedef unsigned int uint_t;
48
49 typedef signed long long sllong_t;
50 typedef unsigned long long ullong_t;
51
52 typedef signed long slong_t;
53 typedef unsigned long ulong_t;
54
55 typedef unsigned long size_t;
56 typedef long ssize_t;       
57
58 #define false 0
59 #define true 1
60 typedef uchar_t bool;
61
62
63
64 typedef unsigned long long uint64_t;
65 typedef long long sint64_t;
66
67 typedef unsigned int uint32_t;
68 typedef int sint32_t;
69
70
71 typedef unsigned short uint16_t;
72 typedef short sint16_t;
73
74 typedef unsigned char uint8_t;
75 typedef char sint8_t;
76
77 typedef ulong_t addr_t;
78 typedef ullong_t v3_reg_t;
79 #endif /* ! __V3VEE__ */
80
81 #endif