vmx_state->pri_proc_ctrls.hlt_exit = 1;
- vmx_state->pri_proc_ctrls.invlpg_exit = 1;
- vmx_state->pri_proc_ctrls.pause_exit = 1;
+
+ vmx_state->pri_proc_ctrls.pause_exit = 0;
vmx_state->pri_proc_ctrls.tsc_offset = 1;
#ifdef CONFIG_TIME_VIRTUALIZE_TSC
vmx_state->pri_proc_ctrls.rdtsc_exit = 1;
vmx_state->pri_proc_ctrls.cr3_ld_exit = 1;
vmx_state->pri_proc_ctrls.cr3_str_exit = 1;
+ vmx_state->pri_proc_ctrls.invlpg_exit = 1;
+
/* Add page fault exits */
vmx_state->excp_bmap.pf = 1;
// vmx_state->pinbased_ctrls |= NMI_EXIT;
- /* Add CR exits */
- //vmx_state->pri_proc_ctrls.cr3_ld_exit = 1;
- //vmx_state->pri_proc_ctrls.cr3_str_exit = 1;
+ /* Disable CR exits */
+ vmx_state->pri_proc_ctrls.cr3_ld_exit = 0;
+ vmx_state->pri_proc_ctrls.cr3_str_exit = 0;
+
+ vmx_state->pri_proc_ctrls.invlpg_exit = 0;
/* Add page fault exits */
- vmx_state->excp_bmap.pf = 1; // This should never happen..., enabled to catch bugs
+ // vmx_state->excp_bmap.pf = 1; // This should never happen..., enabled to catch bugs
// Setup VMX Assist
v3_vmxassist_init(core, vmx_state);
int i = 0;
// For now we will assume that unrestricted guest mode is assured w/ EPT
+
core->vm_regs.rsp = 0x00;
core->rip = 0xfff0;
core->vm_regs.rdx = 0x00000f00;
vmx_state->exit_ctrls.ld_efer = 1;
vmx_state->exit_ctrls.save_efer = 1;
+ /* Disable shadow paging stuff */
+ vmx_state->pri_proc_ctrls.cr3_ld_exit = 0;
+ vmx_state->pri_proc_ctrls.cr3_str_exit = 0;
+
+ vmx_state->pri_proc_ctrls.invlpg_exit = 0;
+
if (v3_init_ept(core, &hw_info) == -1) {
PrintError("Error initializing EPT\n");