VirtualBox

Changeset 54697 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Mar 9, 2015 1:33:22 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98854
Message:

VMM/TM: TMR3CpuTickIsFixedRateMonotonic() for now.

File:
1 edited

Legend:

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

    r54672 r54697  
    32003200
    32013201
    3202 #if 0
    3203 /**
    3204  * Check whether the host TSC is fixed rate & monotonic.
     3202/**
     3203 * Check whether the guest can be presented a fixed rate & monotonic TSC.
    32053204 *
    32063205 * @returns true if TSC is stable, false otherwise.
     
    32133212VMMR3_INT_DECL(bool) TMR3CpuTickIsFixedRateMonotonic(PVM pVM, bool fWithParavirtEnabled)
    32143213{
    3215     /** @todo */
    3216 }
    3217 #endif
     3214    /** @todo figure out what exactly we want here later. */
     3215    NOREF(fWithParavirtEnabled);
     3216    return (   tmR3HasFixedTSC(pVM)                                        /* Host has fixed-rate TSC. */
     3217            && g_pSUPGlobalInfoPage->u32Mode != SUPGIPMODE_ASYNC_TSC);     /* GIP thinks it's monotonic. */
     3218}
    32183219
    32193220
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