X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_types.h;h=01e22b7d9cf35c806c167bad6e4563aca7df06f3;hb=60ad6a41c6d0ee08ed689e8505eb0c3df0c2a289;hp=96e5642e9d0f3edd1a5b1bce7940851ecd8e86b6;hpb=d38e1d6edeee83bfb1e3e3c6e2367faa5055bdfe;p=palacios.git diff --git a/palacios/include/palacios/vmm_types.h b/palacios/include/palacios/vmm_types.h index 96e5642..01e22b7 100644 --- a/palacios/include/palacios/vmm_types.h +++ b/palacios/include/palacios/vmm_types.h @@ -21,7 +21,20 @@ #define __VMM_TYPES_H #ifdef __V3VEE__ -#include +//#include + + + + +typedef enum {SHADOW_PAGING, NESTED_PAGING} v3_paging_mode_t; +typedef enum {VM_INVALID, VM_RUNNING, VM_STOPPED, VM_PAUSED, VM_ERROR, VM_SIMULATING} v3_vm_operating_mode_t; +typedef enum {CORE_INVALID, CORE_RUNNING, CORE_STOPPED} v3_core_operating_mode_t; + +typedef enum {REAL, /*UNREAL,*/ PROTECTED, PROTECTED_PAE, LONG, LONG_32_COMPAT, LONG_16_COMPAT} v3_cpu_mode_t; +typedef enum {PHYSICAL_MEM, VIRTUAL_MEM} v3_mem_mode_t; + + +#define NULL ((void *)0) typedef signed char schar_t; @@ -39,8 +52,8 @@ typedef unsigned long long ullong_t; typedef signed long slong_t; typedef unsigned long ulong_t; -//typedef unsigned long size_t; - +typedef unsigned long size_t; +typedef long ssize_t; #define false 0 #define true 1 @@ -62,7 +75,11 @@ typedef unsigned char uint8_t; typedef char sint8_t; typedef ulong_t addr_t; +typedef ullong_t v3_reg_t; + +typedef uint8_t v3_xmm_reg_t[16]; +typedef uint8_t v3_fp_mmx_reg_t[10]; -#endif // ! __V3VEE__ +#endif /* ! __V3VEE__ */ #endif