VirtualBox

Ignore:
Timestamp:
Mar 6, 2013 3:08:46 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84135
Message:

TM: Do not return the same value, either.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/TMAllCpu.cpp

    r44932 r44933  
    321321            u64 = ASMReadTSC();
    322322
    323         /* Never return a value lower than what the guest has already seen. */
    324         if (u64 < pVCpu->tm.s.u64TSCLastSeen)
     323        /* Always return a value higher than what the guest has already seen. */
     324        if (RT_LIKELY(u64 > pVCpu->tm.s.u64TSCLastSeen))
     325            pVCpu->tm.s.u64TSCLastSeen = u64;
     326        else
    325327        {
    326328            STAM_COUNTER_INC(&pVM->tm.s.StatTSCUnderflow);
     
    328330            u64 = pVCpu->tm.s.u64TSCLastSeen;
    329331        }
    330         else
    331             pVCpu->tm.s.u64TSCLastSeen = u64;
    332332    }
    333333    else
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