VirtualBox

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


Ignore:
Timestamp:
Jan 14, 2010 4:50:45 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56617
Message:

VMM: More micro optimizations around CPUM getters and predicates.

File:
1 edited

Legend:

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

    r25553 r25837  
    12951295# ifdef HWACCM_VMX_EMULATE_REALMODE
    12961296    /* Intercept all exceptions in real mode as none of them can be injected directly (#GP otherwise). */
    1297     if (    CPUMIsGuestInRealModeEx(pCtx) 
     1297    if (    CPUMIsGuestInRealModeEx(pCtx)
    12981298        &&  pVM->hwaccm.s.vmx.pRealModeTSS)
    12991299        u32TrapMask |= HWACCM_VMX_TRAP_MASK_REALMODE;
     
    23562356            Log(("Invalid VMX_VMCS_CTRL_EXIT_CONTROLS: one\n"));
    23572357    }
    2358     fWasInLongMode = CPUMIsGuestInLongMode(pVCpu);
     2358    fWasInLongMode = CPUMIsGuestInLongModeEx(pCtx);
    23592359#endif
    23602360
     
    23752375    Assert(!HWACCMR0SuspendPending());
    23762376    /* Not allowed to switch modes without reloading the host state (32->64 switcher)!! */
    2377     Assert(fWasInLongMode == CPUMIsGuestInLongMode(pVCpu));
     2377    Assert(fWasInLongMode == CPUMIsGuestInLongModeEx(pCtx));
    23782378
    23792379    /* Safety precaution; looping for too long here can have a very bad effect on the host */
Note: See TracChangeset for help on using the changeset viewer.

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