Changeset 40561 in vbox for trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
- Timestamp:
- Mar 21, 2012 11:57:10 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r40551 r40561 1716 1716 AssertRC(rc); 1717 1717 } 1718 1719 #if 0 1720 /* Enable single stepping if requested and CPU supports it. */ 1721 if (pVM->hwaccm.s.vmx.msr.vmx_proc_ctls.n.allowed1 & VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_MONITOR_TRAP_FLAG) 1722 if (DBGFIsStepping(pVCpu)) 1723 { 1724 pVCpu->hwaccm.s.vmx.proc_ctls |= VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_MONITOR_TRAP_FLAG; 1725 rc = VMXWriteVMCS(VMX_VMCS_CTRL_PROC_EXEC_CONTROLS, pVCpu->hwaccm.s.vmx.proc_ctls); 1726 AssertRC(rc); 1727 } 1728 #endif 1718 1729 1719 1730 if (pVCpu->hwaccm.s.fContextUseFlags & HWACCM_CHANGED_GUEST_CR3) … … 4105 4116 AssertFailed(); /* can't happen. */ 4106 4117 rc = VERR_EM_INTERPRETER; 4118 break; 4119 4120 case VMX_EXIT_MTF: /* 37 Exit due to Monitor Trap Flag. */ 4121 LogFlow(("VMX_EXIT_MTF at %RGv\n", (RTGCPTR)pCtx->rip)); 4122 pVCpu->hwaccm.s.vmx.proc_ctls &= ~VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_MONITOR_TRAP_FLAG; 4123 rc2 = VMXWriteVMCS(VMX_VMCS_CTRL_PROC_EXEC_CONTROLS, pVCpu->hwaccm.s.vmx.proc_ctls); 4124 AssertRC(rc2); 4125 STAM_COUNTER_INC(&pVCpu->hwaccm.s.StatExitMTF); 4126 #if 0 4127 DBGFDoneStepping(pVCpu); 4128 #endif 4129 rc = VINF_EM_DBG_STOP; 4107 4130 break; 4108 4131
Note:
See TracChangeset
for help on using the changeset viewer.