VirtualBox

Changeset 54181 in vbox


Ignore:
Timestamp:
Feb 12, 2015 5:34:24 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98237
Message:

HostDrivers/support: fix reinit of GipCpu data where TSC-delta isn't really relevant.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/sup.h

    r54013 r54181  
    16491649        uint64_t u64Tsc = UINT64_MAX;
    16501650        int rc = SUPGetTsc(&u64Tsc, NULL /* pidApic */);
    1651 #ifndef DEBUG_michael
     1651#ifdef DEBUG_ramshankar
    16521652        AssertRC(rc);
    16531653#endif
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r54013 r54181  
    39173917static void supdrvGipReInitCpu(PSUPGLOBALINFOPAGE pGip, PSUPGIPCPU pGipCpu, uint64_t u64NanoTS)
    39183918{
    3919     pGipCpu->u64TSC    = SUPReadTsc() - pGipCpu->u32UpdateIntervalTSC;
     3919    /*
     3920     * Here we don't really care about applying the TSC delta. The re-initialization of this
     3921     * value is not relevant especially while (re)starting the GIP as the first few ones will
     3922     * be ignored anyway, see supdrvGipDoUpdateCpu().
     3923     */
     3924    pGipCpu->u64TSC    = ASMReadTSC() - pGipCpu->u32UpdateIntervalTSC;
    39203925    pGipCpu->u64NanoTS = u64NanoTS;
    39213926}
     
    75867591
    75877592/**
    7588  * Worker routine for supdrvGipUpdate and supdrvGipUpdatePerCpu that
     7593 * Worker routine for supdrvGipUpdate() and supdrvGipUpdatePerCpu() that
    75897594 * updates all the per cpu data except the transaction id.
    75907595 *
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