7 #include <palacios/vmm_mem.h>
8 #include <palacios/vmm_types.h>
9 #include <palacios/vmm_io.h>
10 #include <palacios/vmm_shadow_paging.h>
11 #include <palacios/vmm_intr.h>
12 #include <palacios/vmm_dev_mgr.h>
13 #include <palacios/vmm_time.h>
16 typedef ullong_t v3_reg_t;
53 uint_t granularity : 1;
64 struct v3_segment ldtr;
65 struct v3_segment gdtr;
66 struct v3_segment idtr;
70 struct shadow_page_state;
76 int (*raise_irq)(struct guest_info * info, int irq);
83 typedef enum {SHADOW_PAGING, NESTED_PAGING} vmm_paging_mode_t;
84 typedef enum {REAL, /*UNREAL,*/ PROTECTED, PROTECTED_PAE, LONG} vm_cpu_mode_t;
85 typedef enum {PHYSICAL_MEM, VIRTUAL_MEM} vm_mem_mode_t;
92 struct shadow_map mem_map;
94 struct vm_time time_state;
96 vmm_paging_mode_t shdw_pg_mode;
97 struct shadow_page_state shdw_pg_state;
99 // nested_paging_t nested_page_state;
102 // This structure is how we get interrupts for the guest
103 struct vm_intr intr_state;
105 struct vmm_io_map io_map;
108 struct vmm_dev_mgr dev_mgr;
110 vm_cpu_mode_t cpu_mode;
111 vm_mem_mode_t mem_mode;
114 struct v3_gprs vm_regs;
115 struct v3_ctrl_regs ctrl_regs;
116 struct v3_segments segments;
118 struct vm_ctrl_ops vm_ops;
126 void PrintV3Segments(struct guest_info * info);
127 void PrintV3CtrlRegs(struct guest_info * info);
128 void PrintV3GPRs(struct guest_info * info);