VirtualBox

Changeset 56875 in vbox


Ignore:
Timestamp:
Jul 8, 2015 4:55:40 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101546
Message:

VMM/GIM/HV: Read the TSC frequency from the cached value while being queried by the guest.

File:
1 edited

Legend:

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

    r56790 r56875  
    102102            /* Hyper-V reports the time in 100 ns units (10 MHz). */
    103103            uint64_t u64Tsc      = TMCpuTickGet(pVCpu);
    104             uint64_t u64TscHz    = TMCpuTicksPerSecond(pVM);
     104            uint64_t u64TscHz    = pHv->cTscTicksPerSecond;
    105105            uint64_t u64Tsc100Ns = u64TscHz / UINT64_C(10000000); /* 100 ns */
    106106            *puValue = (u64Tsc / u64Tsc100Ns);
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