VirtualBox

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


Ignore:
Timestamp:
Jun 19, 2012 3:27:49 PM (13 years ago)
Author:
vboxsync
Message:

VMM/HWVMXR0: Fix using stale VPIDs on resume.

File:
1 edited

Legend:

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

    r41804 r41834  
    162162    else
    163163        pCpu->fFlushASIDBeforeUse = true;
     164
     165    /*
     166     * Ensure each VCPU scheduled on this CPU gets a new VPID on resume. See @bugref{6255}.
     167     */
     168    pCpu->cTLBFlushes++;
    164169
    165170    return VINF_SUCCESS;
     
    24482453    else
    24492454    {
    2450         Assert(pVCpu->hwaccm.s.uCurrentASID && pCpu->uCurrentASID);
     2455        AssertMsg(pVCpu->hwaccm.s.uCurrentASID && pCpu->uCurrentASID, ("hwaccm uCurrentASID=%lu cpu uCurrentASID=%lu\n",
     2456                                                                       pVCpu->hwaccm.s.uCurrentASID, pCpu->uCurrentASID));
    24512457
    24522458        /** @todo We never set VMCPU_FF_TLB_SHOOTDOWN anywhere so this path should
     
    25252531        pVCpu->hwaccm.s.fForceTLBFlush = true;
    25262532
    2527     pVCpu->hwaccm.s.idLastCpu = pCpu->idCpu;
     2533    pVCpu->hwaccm.s.idLastCpu   = pCpu->idCpu;
     2534    pVCpu->hwaccm.s.cTLBFlushes = pCpu->cTLBFlushes;
    25282535
    25292536    if (pVCpu->hwaccm.s.fForceTLBFlush)
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