VirtualBox

Changeset 46492 in vbox


Ignore:
Timestamp:
Jun 11, 2013 1:28:32 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Comments and tidying.

File:
1 edited

Legend:

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

    r46472 r46492  
    56555655
    56565656        /* Pending HM CR3 sync. */
    5657         if (VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_HM_UPDATE_CR3))
     5657        if (VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_HM_UPDATE_CR3))
    56585658        {
    56595659            rc = PGMUpdateCR3(pVCpu, pMixedCtx->cr3);
    56605660            Assert(rc == VINF_SUCCESS || rc == VINF_PGM_SYNC_CR3);
    5661             Assert(!VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_HM_UPDATE_CR3));
     5661            Assert(!VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_HM_UPDATE_CR3));
    56625662        }
    56635663
    56645664        /* Pending HM PAE PDPEs. */
    5665         if (VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_HM_UPDATE_PAE_PDPES))
     5665        if (VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_HM_UPDATE_PAE_PDPES))
    56665666        {
    56675667            rc = PGMGstUpdatePaePdpes(pVCpu, &pVCpu->hm.s.aPdpes[0]);
    56685668            AssertRC(rc);
    5669             Assert(!VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_HM_UPDATE_PAE_PDPES));
     5669            Assert(!VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_HM_UPDATE_PAE_PDPES));
    56705670        }
    56715671
     
    57285728 * @param   pVCpu           Pointer to the VMCPU.
    57295729 */
    5730 static void hmR0VmxTRPMTrapToPendingEvent(PVMCPU pVCpu)
     5730static void hmR0VmxTrpmTrapToPendingEvent(PVMCPU pVCpu)
    57315731{
    57325732    Assert(TRPMHasTrap(pVCpu));
     
    57735773    else if (enmTrpmEvent == TRPM_HARDWARE_INT)
    57745774    {
    5775         if (uVector != X86_XCPT_NMI)
     5775        if (uVector == X86_XCPT_NMI)
     5776            u32IntrInfo |= (VMX_EXIT_INTERRUPTION_INFO_TYPE_NMI << VMX_EXIT_INTERRUPTION_INFO_TYPE_SHIFT);
     5777        else
    57765778            u32IntrInfo |= (VMX_EXIT_INTERRUPTION_INFO_TYPE_EXT_INT << VMX_EXIT_INTERRUPTION_INFO_TYPE_SHIFT);
    5777         else
    5778             u32IntrInfo |= (VMX_EXIT_INTERRUPTION_INFO_TYPE_NMI << VMX_EXIT_INTERRUPTION_INFO_TYPE_SHIFT);
    57795779    }
    57805780    else if (enmTrpmEvent == TRPM_SOFTWARE_INT)
     
    57975797 * @param   pvCpu           Pointer to the VMCPU.
    57985798 */
    5799 static void hmR0VmxPendingEventToTRPMTrap(PVMCPU pVCpu)
     5799static void hmR0VmxPendingEventToTrpmTrap(PVMCPU pVCpu)
    58005800{
    58015801    Assert(pVCpu->hm.s.Event.fPending);
     
    58375837    if (fErrorCodeValid)
    58385838        TRPMSetErrorCode(pVCpu, uErrorCode);
     5839
    58395840    if (   uVectorType == VMX_IDT_VECTORING_INFO_TYPE_HW_XCPT
    58405841        && uVector == X86_XCPT_PF)
     
    59525953    if (pVCpu->hm.s.Event.fPending)
    59535954    {
    5954         hmR0VmxPendingEventToTRPMTrap(pVCpu);
     5955        hmR0VmxPendingEventToTrpmTrap(pVCpu);
    59555956        Assert(!pVCpu->hm.s.Event.fPending);
    59565957    }
     
    67116712 * recompiler. We must be cautious what we do here regarding committing
    67126713 * guest-state information into the the VMCS assuming we assuredly execute the
    6713  * guest in VT-x. If we fall back to the recompiler after updating VMCS and
     6714 * guest in VT-x. If we fall back to the recompiler after updating the VMCS and
    67146715 * clearing the common-state (TRPM/forceflags), we must undo those changes so
    67156716 * that the recompiler can (and should) use them when it resumes guest
     
    67876788    /** @todo Rework event evaluation and injection to be completely separate. */
    67886789    if (TRPMHasTrap(pVCpu))
    6789         hmR0VmxTRPMTrapToPendingEvent(pVCpu);
     6790        hmR0VmxTrpmTrapToPendingEvent(pVCpu);
    67906791
    67916792    rc = hmR0VmxInjectPendingEvent(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