VirtualBox

Changeset 51867 in vbox


Ignore:
Timestamp:
Jul 4, 2014 12:53:36 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94723
Message:

TM: Made the SYNC_TSC_PAUSE code default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/TM.cpp

    r51852 r51867  
    163163
    164164
    165 //#define SYNC_TSC_PAUSE
    166165/*******************************************************************************
    167166*   Internal Functions                                                         *
     
    26862685    if (!pVM->tm.s.fTSCTiedToExecution)
    26872686    {
    2688 #ifdef SYNC_TSC_PAUSE
    2689         TM_LOCK_TIMERS(pVM);    /* Paranoia: Exploiting the timer lock here. */
     2687        TM_LOCK_TIMERS(pVM);    /* Exploit the timer lock for synchronization. */
    26902688        rc = tmCpuTickPauseLocked(pVM, pVCpu);
    26912689        TM_UNLOCK_TIMERS(pVM);
    2692 #else
    2693         rc = tmCpuTickPause(pVCpu);
    2694 #endif
    26952690        if (RT_FAILURE(rc))
    26962691            return rc;
     
    27392734    if (!pVM->tm.s.fTSCTiedToExecution)
    27402735    {
    2741 #ifdef SYNC_TSC_PAUSE
    2742         TM_LOCK_TIMERS(pVM);                    /* Paranoia: Exploiting the timer lock here. */
     2736        TM_LOCK_TIMERS(pVM);    /* Exploit the timer lock for synchronization. */
    27432737        rc = tmCpuTickResumeLocked(pVM, pVCpu);
    27442738        TM_UNLOCK_TIMERS(pVM);
    2745 #else
    2746         rc = tmCpuTickResume(pVM, pVCpu);
    2747 #endif
    27482739        if (RT_FAILURE(rc))
    27492740            return rc;
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