VirtualBox

Changeset 49934 in vbox


Ignore:
Timestamp:
Dec 16, 2013 2:51:20 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HMR0: Don't unnecessarily reset uCurrentAsid.

File:
1 edited

Legend:

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

    r49932 r49934  
    908908    Assert(!pCpu->fConfigured);
    909909
    910     pCpu->idCpu         = idCpu;
    911     pCpu->uCurrentAsid  = 0;    /* we'll aways increment this the first time (host uses ASID 0) */
     910    pCpu->idCpu = idCpu;
    912911    /* Do NOT reset cTlbFlushes here, see @bugref{6255}. */
    913912
     
    976975    g_HvmR0.fGlobalInit = pVM->hm.s.fGlobalInit;
    977976
     977#ifdef VBOX_STRICT
    978978    for (unsigned i = 0; i < RT_ELEMENTS(g_HvmR0.aCpuInfo); i++)
    979979    {
    980980        Assert(g_HvmR0.aCpuInfo[i].hMemObj == NIL_RTR0MEMOBJ);
    981         g_HvmR0.aCpuInfo[i].fConfigured  = false;
    982         g_HvmR0.aCpuInfo[i].cTlbFlushes  = 0;
    983         g_HvmR0.aCpuInfo[i].uCurrentAsid = 0;
    984     }
     981        Assert(!g_HvmR0.aCpuInfo[i].fConfigured);
     982        Assert(!g_HvmR0.aCpuInfo[i].cTlbFlushes);
     983        Assert(!g_HvmR0.aCpuInfo[i].uCurrentAsid);
     984    }
     985#endif
    985986
    986987    int rc;
     
    10891090        rc = VINF_SUCCESS; /* nothing to do */
    10901091
    1091     pCpu->uCurrentAsid = 0;
    10921092    return rc;
    10931093}
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