VirtualBox

Changeset 46315 in vbox


Ignore:
Timestamp:
May 29, 2013 6:04:59 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86081
Message:

VMM/HMVMXR0: Added a couple of comments in the tagged-TLB flushing code.

File:
1 edited

Legend:

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

    r46294 r46315  
    12161216     * This can happen both for start & resume due to long jumps back to ring-3.
    12171217     * If the TLB flush count changed, another VM (VCPU rather) has hit the ASID limit while flushing the TLB
    1218      * or the host Cpu is online after a suspend/resume, so we cannot reuse the current ASID anymore.
     1218     * or the host CPU is online after a suspend/resume, so we cannot reuse the current ASID anymore.
    12191219     */
    12201220    bool fNewASID = false;
     
    12441244            if (pCpu->uCurrentAsid >= pVM->hm.s.uMaxAsid)
    12451245            {
    1246                 pCpu->uCurrentAsid = 1;       /* start at 1; host uses 0 */
    1247                 pCpu->cTlbFlushes++;
    1248                 pCpu->fFlushAsidBeforeUse = true;
     1246                pCpu->uCurrentAsid = 1;            /* Wraparound to 1; host uses 0. */
     1247                pCpu->cTlbFlushes++;               /* All VCPUs that run on this host CPU must use a new VPID. */
     1248                pCpu->fFlushAsidBeforeUse = true;  /* All VCPUs that run on this host CPU must flush their new VPID before use. */
    12491249            }
    12501250
     
    14241424        if (pCpu->uCurrentAsid >= pVM->hm.s.uMaxAsid)
    14251425        {
    1426             pCpu->uCurrentAsid        = 1;       /* start at 1; host uses 0 */
    1427             pCpu->fFlushAsidBeforeUse = true;
    1428             pCpu->cTlbFlushes++;
     1426            pCpu->uCurrentAsid        = 1;       /* Wraparound to 1; host uses 0 */
     1427            pCpu->cTlbFlushes++;                 /* All VCPUs that run on this host CPU must use a new VPID. */
     1428            pCpu->fFlushAsidBeforeUse = true;    /* All VCPUs that run on this host CPU must flush their new VPID before use. */
    14291429        }
    14301430
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