- Timestamp:
- Mar 21, 2012 11:57:10 AM (13 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 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 -
trunk/src/VBox/VMM/VMMR3/HWACCM.cpp
r40360 r40561 96 96 EXIT_REASON_NIL(), 97 97 EXIT_REASON(VMX_EXIT_MWAIT , 36, "Guest software executed MWAIT."), 98 EXIT_REASON _NIL(),98 EXIT_REASON(VMX_EXIT_MTF , 37, "Monitor Trap Flag."), 99 99 EXIT_REASON_NIL(), 100 100 EXIT_REASON(VMX_EXIT_MONITOR , 39, "Guest software attempted to execute MONITOR."), … … 527 527 HWACCM_REG_COUNTER(&pVCpu->hwaccm.s.StatExitMaxResume, "/HWACCM/CPU%d/Exit/MaxResume"); 528 528 HWACCM_REG_COUNTER(&pVCpu->hwaccm.s.StatExitPreemptPending, "/HWACCM/CPU%d/Exit/PreemptPending"); 529 HWACCM_REG_COUNTER(&pVCpu->hwaccm.s.StatExitMTF, "/HWACCM/CPU%d/Exit/MonitorTrapFlag"); 529 530 530 531 HWACCM_REG_COUNTER(&pVCpu->hwaccm.s.StatSwitchGuestIrq, "/HWACCM/CPU%d/Switch/IrqPending"); -
trunk/src/VBox/VMM/include/HWACCMInternal.h
r38683 r40561 838 838 STAMCOUNTER StatExitMaxResume; 839 839 STAMCOUNTER StatExitPreemptPending; 840 STAMCOUNTER StatExitMTF; 840 841 STAMCOUNTER StatIntReinject; 841 842 STAMCOUNTER StatPendingHostIrq;
Note:
See TracChangeset
for help on using the changeset viewer.