Changeset 45699 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Apr 24, 2013 2:00:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r45698 r45699 38 38 #define HMVMX_SAVE_FULL_GUEST_STATE 39 39 #define HMVMX_SYNC_FULL_GUEST_STATE 40 #define HMVMX_TRAP_ALL_EXCEPTIONS 40 #define HMVMX_ALWAYS_TRAP_ALL_XCPTS 41 #define HMVMX_ALWAYS_TRAP_PF 41 42 #endif 42 43 … … 2784 2785 2785 2786 /* Additional intercepts for debugging, define these yourself explicitly. */ 2786 #ifdef VBOX_ALWAYS_TRAP_ALL_EXCEPTIONS2787 #ifdef HMVMX_ALWAYS_TRAP_ALL_XCPTS 2787 2788 pVCpu->hm.s.vmx.u32XcptBitmap |= RT_BIT(X86_XCPT_BP) 2788 2789 | RT_BIT(X86_XCPT_DB) … … 2795 2796 | RT_BIT(X86_XCPT_PF) 2796 2797 | RT_BIT(X86_XCPT_MF); 2797 #elif defined( VBOX_ALWAYS_TRAP_PF)2798 #elif defined(HMVMX_ALWAYS_TRAP_PF) 2798 2799 pVCpu->hm.s.vmx.u32XcptBitmap |= RT_BIT(X86_XCPT_PF) 2799 2800 #endif … … 3109 3110 else if (!pVCpu->hm.s.vmx.RealMode.fRealOnV86Active) 3110 3111 { 3111 #ifndef VBOX_ALWAYS_TRAP_ALL_EXCEPTIONS3112 #ifndef HMVMX_ALWAYS_TRAP_ALL_XCPTS 3112 3113 pVCpu->hm.s.vmx.u32XcptBitmap &= ~RT_BIT(X86_XCPT_DB); 3113 3114 #endif … … 6966 6967 case X86_XCPT_DB: rc = hmR0VmxExitXcptDB(pVCpu, pMixedCtx, pVmxTransient); break; 6967 6968 case X86_XCPT_BP: rc = hmR0VmxExitXcptBP(pVCpu, pMixedCtx, pVmxTransient); break; 6968 #ifdef VBOX_ALWAYS_TRAP_ALL_EXCEPTIONS6969 #ifdef HMVMX_ALWAYS_TRAP_ALL_XCPTS 6969 6970 case X86_XCPT_XF: STAM_COUNTER_INC(&pVCpu->hm.s.StatExitGuestXF); 6970 6971 rc = hmR0VmxExitXcptGeneric(pVCpu, pMixedCtx, pVmxTransient); break; … … 8491 8492 VMX_VALIDATE_EXIT_XCPT_HANDLER_PARAMS(); 8492 8493 8493 #ifndef VBOX_ALWAYS_TRAP_ALL_EXCEPTIONS8494 #ifndef HMVMX_ALWAYS_TRAP_ALL_XCPTS 8494 8495 Assert(!CPUMIsGuestFPUStateActive(pVCpu)); 8495 8496 #endif … … 8534 8535 if (!pVCpu->hm.s.vmx.RealMode.fRealOnV86Active) 8535 8536 { 8536 #ifdef VBOX_ALWAYS_TRAP_ALL_EXCEPTIONS8537 #ifdef HMVMX_ALWAYS_TRAP_ALL_XCPTS 8537 8538 /* If the guest is not in real-mode or we have unrestricted execution support, reflect #GP to the guest. */ 8538 8539 rc = hmR0VmxReadExitIntrInfoVmcs(pVCpu, pVmxTransient); … … 8793 8794 AssertRCReturn(rc, rc); 8794 8795 8795 #if defined( VBOX_ALWAYS_TRAP_ALL_EXCEPTIONS) || defined(VBOX_ALWAYS_TRAP_PF)8796 #if defined(HMVMX_ALWAYS_TRAP_ALL_XCPTS) || defined(HMVMX_ALWAYS_TRAP_PF) 8796 8797 if (pVM->hm.s.fNestedPaging) 8797 8798 {
Note:
See TracChangeset
for help on using the changeset viewer.