VirtualBox

Changeset 52911 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 1, 2014 9:45:51 AM (10 years ago)
Author:
vboxsync
Message:

HostDrivers/Support: Disable interrupts per-iteration while measuring TSC deltas, real problem on Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r52895 r52911  
    61666166        unsigned    i;
    61676167        uint64_t    uMinCmpReadTime = UINT64_MAX;
    6168         RTCCUINTREG uFlags = ASMIntDisableFlags();          /* Disable interrupts for the duration of a try. */
    61696168        for (i = 0; i < GIP_TSC_DELTA_LOOPS; i++)
    61706169        {
    6171             ASMCompilerBarrier();
     6170            RTCCUINTREG uFlags = ASMIntDisableFlags();   /* Disable interrupts per-iteration, see @bugref{6710} comment #38. */
    61726171            if (idCpu == idMaster)
    61736172            {
     
    62546253                    ASMNopPause();
    62556254            }
    6256         }
    6257         ASMSetFlags(uFlags);
     6255
     6256            ASMSetFlags(uFlags);
     6257        }
    62586258
    62596259        if (pGipCpuWorker->i64TSCDelta != INT64_MAX)
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