VirtualBox

Changeset 49003 in vbox


Ignore:
Timestamp:
Oct 9, 2013 1:36:17 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89730
Message:

VMM/HMVMXR0, HMSVMR0: Comment out unused code paths in TLB shootdown.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

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

    r49000 r49003  
    927927        pVCpu->hm.s.fForceTLBFlush = false;
    928928    }
     929    /** @todo We never set VMCPU_FF_TLB_SHOOTDOWN anywhere so this path should
     930     *        not be executed. See hmQueueInvlPage() where it is commented
     931     *        out. Support individual entry flushing someday. */
     932#if 0
    929933    else
    930934    {
    931         /** @todo We never set VMCPU_FF_TLB_SHOOTDOWN anywhere so this path should
    932          *        not be executed. See hmQueueInvlPage() where it is commented
    933          *        out. Support individual entry flushing someday. */
    934935        if (VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_TLB_SHOOTDOWN))
    935936        {
     
    938939            for (uint32_t i = 0; i < pVCpu->hm.s.TlbShootdown.cPages; i++)
    939940                SVMR0InvlpgA(pVCpu->hm.s.TlbShootdown.aPages[i], pVmcb->ctrl.TLBCtrl.n.u32ASID);
    940         }
    941     }
    942 
    943     pVCpu->hm.s.TlbShootdown.cPages = 0;
    944     VMCPU_FF_CLEAR(pVCpu, VMCPU_FF_TLB_SHOOTDOWN);
     941
     942            pVCpu->hm.s.TlbShootdown.cPages = 0;
     943            VMCPU_FF_CLEAR(pVCpu, VMCPU_FF_TLB_SHOOTDOWN);
     944        }
     945    }
     946#endif
     947
    945948
    946949    /* Update VMCB with the ASID. */
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r49002 r49003  
    13131313
    13141314    VMCPU_FF_CLEAR(pVCpu, VMCPU_FF_TLB_FLUSH);
     1315
     1316    /** @todo TLB shootdown is currently not used. See hmQueueInvlPage(). */
     1317#if 0
    13151318    VMCPU_FF_CLEAR(pVCpu, VMCPU_FF_TLB_SHOOTDOWN);
    1316 
    13171319    pVCpu->hm.s.TlbShootdown.cPages = 0;
     1320#endif
     1321
    13181322    pVCpu->hm.s.idLastCpu           = pCpu->idCpu;
    13191323    pVCpu->hm.s.cTlbFlushes         = pCpu->cTlbFlushes;
     
    14021406    }
    14031407
    1404     /** @todo We never set VMCPU_FF_TLB_SHOOTDOWN anywhere so this path should
    1405      *        not be executed. See hmQueueInvlPage() where it is commented
    1406      *        out. Support individual entry flushing someday. */
     1408    /** @todo We never set VMCPU_FF_TLB_SHOOTDOWN anywhere. See hmQueueInvlPage()
     1409     *        where it is commented out. Support individual entry flushing
     1410     *        someday. */
     1411#if 0
    14071412    if (VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_TLB_SHOOTDOWN))
    14081413    {
     
    14231428        HMVMX_SET_TAGGED_TLB_FLUSHED();
    14241429        VMCPU_FF_CLEAR(pVCpu, VMCPU_FF_TLB_SHOOTDOWN);
    1425     }
    1426 
    1427     pVCpu->hm.s.TlbShootdown.cPages = 0;
     1430        pVCpu->hm.s.TlbShootdown.cPages = 0;
     1431    }
     1432#endif
     1433
    14281434    pVCpu->hm.s.fForceTLBFlush = false;
    14291435
     
    14911497        pVCpu->hm.s.fForceTLBFlush = false;
    14921498    }
     1499    /** @todo We never set VMCPU_FF_TLB_SHOOTDOWN anywhere. See hmQueueInvlPage()
     1500     *        where it is commented out. Support individual entry flushing
     1501     *        someday. */
     1502#if 0
    14931503    else
    14941504    {
    1495         /** @todo We never set VMCPU_FF_TLB_SHOOTDOWN anywhere so this path should
    1496          *        not be executed. See hmQueueInvlPage() where it is commented
    1497          *        out. Support individual entry flushing someday. */
    14981505        if (VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_TLB_SHOOTDOWN))
    14991506        {
     
    15041511        else
    15051512            STAM_COUNTER_INC(&pVCpu->hm.s.StatNoFlushTlbWorldSwitch);
    1506     }
    1507 
    1508     pVCpu->hm.s.TlbShootdown.cPages = 0;
    1509     VMCPU_FF_CLEAR(pVCpu, VMCPU_FF_TLB_SHOOTDOWN);
     1513
     1514        pVCpu->hm.s.TlbShootdown.cPages = 0;
     1515        VMCPU_FF_CLEAR(pVCpu, VMCPU_FF_TLB_SHOOTDOWN);
     1516    }
     1517#endif
    15101518}
    15111519
     
    15701578            hmR0VmxFlushVpid(pVM, pVCpu, pVM->hm.s.vmx.enmFlushVpid, 0 /* GCPtr */);
    15711579    }
     1580    /** @todo We never set VMCPU_FF_TLB_SHOOTDOWN anywhere. See hmQueueInvlPage()
     1581     *        where it is commented out. Support individual entry flushing
     1582     *        someday. */
     1583#if 0
    15721584    else
    15731585    {
     
    15771589                   pCpu->uCurrentAsid, pCpu->cTlbFlushes));
    15781590
    1579         /** @todo We never set VMCPU_FF_TLB_SHOOTDOWN anywhere so this path should
    1580          *        not be executed. See hmQueueInvlPage() where it is commented
    1581          *        out. Support individual entry flushing someday. */
    15821591        if (VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_TLB_SHOOTDOWN))
    15831592        {
     
    15901599            else
    15911600                hmR0VmxFlushVpid(pVM, pVCpu, pVM->hm.s.vmx.enmFlushVpid, 0 /* GCPtr */);
     1601
     1602            pVCpu->hm.s.TlbShootdown.cPages = 0;
     1603            VMCPU_FF_CLEAR(pVCpu, VMCPU_FF_TLB_SHOOTDOWN);
    15921604        }
    15931605        else
    15941606            STAM_COUNTER_INC(&pVCpu->hm.s.StatNoFlushTlbWorldSwitch);
    15951607    }
    1596 
    1597     pVCpu->hm.s.TlbShootdown.cPages = 0;
    1598     VMCPU_FF_CLEAR(pVCpu, VMCPU_FF_TLB_SHOOTDOWN);
     1608#endif
    15991609
    16001610    AssertMsg(pVCpu->hm.s.cTlbFlushes == pCpu->cTlbFlushes,
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