VirtualBox

Changeset 52550 in vbox


Ignore:
Timestamp:
Sep 1, 2014 11:47:17 AM (10 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Show invariant TSC support in the release log.

File:
1 edited

Legend:

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

    r52419 r52550  
    39643964                    "         RAW Extended CPUIDs\n"
    39653965                    "     Function  eax      ebx      ecx      edx\n");
     3966    bool fSupportsInvariantTsc = false;
    39663967    for (unsigned i = 0; i < RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdExt); i++)
    39673968    {
     
    39693970        ASMCpuIdExSlow(0x80000000 | i, 0, 0, 0, &Host.eax, &Host.ebx, &Host.ecx, &Host.edx);
    39703971
     3972        if (   i == 7
     3973            && (Host.edx & X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR))
     3974        {
     3975            fSupportsInvariantTsc = true;
     3976        }
    39713977        pHlp->pfnPrintf(pHlp,
    39723978                        "Gst: %08x  %08x %08x %08x %08x%s\n"
     
    42154221    {
    42164222        uint32_t uEDX = pVM->cpum.s.aGuestCpuIdExt[7].edx;
    4217 
     4223        pHlp->pfnPrintf(pHlp, "Host Invariant-TSC support:      %RTbool\n", fSupportsInvariantTsc);
    42184224        pHlp->pfnPrintf(pHlp, "APM Features:                   ");
    42194225        if (uEDX & RT_BIT(0))   pHlp->pfnPrintf(pHlp, " TS");
     
    42244230        if (uEDX & RT_BIT(5))   pHlp->pfnPrintf(pHlp, " STC");
    42254231        for (unsigned iBit = 6; iBit < 32; iBit++)
    4226             if (uEDX & RT_BIT(iBit))
     4232        {
     4233            if (uEDX & X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR)
     4234                pHlp->pfnPrintf(pHlp, " TSCINVARIANT");
     4235            else if (uEDX & RT_BIT(iBit))
    42274236                pHlp->pfnPrintf(pHlp, " %d", iBit);
     4237        }
    42284238        pHlp->pfnPrintf(pHlp, "\n");
    42294239    }
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