VirtualBox

Changeset 52165 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Jul 24, 2014 11:54:58 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95207
Message:

VMM/HMVMXR0: Cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r52164 r52165  
    68376837 * @param   pVCpu           Pointer to the VMCPU.
    68386838 */
    6839 static int hmR0VmxTrpmTrapToPendingEvent(PVMCPU pVCpu)
     6839static void hmR0VmxTrpmTrapToPendingEvent(PVMCPU pVCpu)
    68406840{
    68416841    Assert(TRPMHasTrap(pVCpu));
     
    68816881    }
    68826882    else if (enmTrpmEvent == TRPM_HARDWARE_INT)
    6883     {
    6884 #ifdef VBOX_STRICT
    6885         uint32_t uEFlags = CPUMGetGuestEFlags(pVCpu);
    6886         if (!(uEFlags & X86_EFL_IF))
    6887         {
    6888             Log4(("hmR0VmxTrpmTrapToPendingEvent: TRPM injecting an external interrupt when interrupts are disabled!?!"));
    6889             return VERR_VMX_IPE_5;
    6890         }
    6891 #endif
    68926883        u32IntInfo |= (VMX_EXIT_INTERRUPTION_INFO_TYPE_EXT_INT << VMX_EXIT_INTERRUPTION_INFO_TYPE_SHIFT);
    6893     }
    68946884    else if (enmTrpmEvent == TRPM_SOFTWARE_INT)
    68956885        u32IntInfo |= (VMX_EXIT_INTERRUPTION_INFO_TYPE_SW_INT << VMX_EXIT_INTERRUPTION_INFO_TYPE_SHIFT);
     
    69046894    hmR0VmxSetPendingEvent(pVCpu, u32IntInfo, cbInstr, uErrCode, GCPtrFaultAddress);
    69056895    STAM_COUNTER_DEC(&pVCpu->hm.s.StatInjectPendingReflect);
    6906     return VINF_SUCCESS;
    69076896}
    69086897
     
    84728461
    84738462    /*
    8474      * Evaluate events as pending-for-injection into the guest. Toggling of force-flags here is safe as long as
    8475      * we update TRPM on premature exits to ring-3 before executing guest code. We must NOT restore the force-flags.
     8463     * Evaluate events as pending-for-injection into the guest. Toggling of interrupt force-flags here is safe as long as
     8464     * we update TRPM on premature exits to ring-3 before executing guest code. We must NOT restore those force-flags.
    84768465     */
    84778466    if (TRPMHasTrap(pVCpu))
    8478     {
    8479         rc = hmR0VmxTrpmTrapToPendingEvent(pVCpu);
    8480         if (RT_FAILURE(rc))
    8481             return rc;
    8482     }
     8467        hmR0VmxTrpmTrapToPendingEvent(pVCpu);
    84838468    else if (!pVCpu->hm.s.Event.fPending)
    84848469        hmR0VmxEvaluatePendingEvent(pVCpu, pMixedCtx);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette