VirtualBox

Changeset 19996 in vbox


Ignore:
Timestamp:
May 25, 2009 12:39:02 PM (15 years ago)
Author:
vboxsync
Message:

Moved TPR caching check to the top.

File:
1 edited

Legend:

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

    r19995 r19996  
    19971997    RTGCUINTPTR errCode, instrInfo;
    19981998    bool        fSyncTPR = false;
     1999    bool        fSetupTPRCaching = false;
    19992000    PHWACCM_CPUINFO pCpu = 0;
    20002001    RTCCUINTREG uOldEFlags;
     
    20072008    bool fStatExit2Started = false;
    20082009#endif
     2010
     2011    /* Check if we need to use TPR shadowing. */
     2012    if (    pVM->hwaccm.s.vmx.pAPIC
     2013        &&  (   CPUMIsGuestInLongModeEx(pCtx)
     2014             || (   (pVM->hwaccm.s.vmx.msr.vmx_proc_ctls2.n.allowed1 & VMX_VMCS_CTRL_PROC_EXEC2_VIRT_APIC)
     2015                 && PDMHasIoApic(pVM))
     2016            )
     2017       )
     2018    {
     2019        fSetupTPRCaching = true;
     2020    }
    20092021
    20102022    Log2(("\nE"));
     
    21632175     * @todo reduce overhead
    21642176     */
    2165     if (    PDMHasIoApic(pVM)
    2166         &&  pVM->hwaccm.s.vmx.pAPIC)
     2177    if (fSetupTPRCaching)
    21672178    {
    21682179        /* TPR caching in CR8 */
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