VirtualBox

Changeset 8911 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 19, 2008 10:08:21 AM (17 years ago)
Author:
vboxsync
Message:

No fixed tsc if the GIP timer is in async mode. (TM; AMD cpus with invariant cpuid bit set)

File:
1 edited

Legend:

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

    r8155 r8911  
    540540 * @returns true if it has, false if it hasn't.
    541541 *
    542  * @remark  This test doesn't bother with very old CPUs that doesn't do power
     542 * @remark  This test doesn't bother with very old CPUs that don't do power
    543543 *          management or any other stuff that might influence the TSC rate.
    544544 *          This isn't currently relevant.
     
    565565            if (uEAX >= 0x80000007)
    566566            {
     567                PSUPGLOBALINFOPAGE pGip = g_pSUPGlobalInfoPage;
     568
    567569                ASMCpuId(0x80000007, &uEAX, &uEBX, &uECX, &uEDX);
    568                 if (uEDX & RT_BIT(8) /* TscInvariant */)
     570                if (   (uEDX & RT_BIT(8)) /* TscInvariant */
     571                    && pGip->u32Mode == SUPGIPMODE_SYNC_TSC /* no fixed tsc if the gip timer is in async mode */)
    569572                    return true;
    570573            }
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