VirtualBox

Changeset 48695 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Sep 26, 2013 12:20:56 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89320
Message:

CPUM: MSR_CORE_THREAD_COUNT and MSR_FLEX_RATIO for snow leopard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/x86.h

    r48368 r48695  
    947947#endif
    948948
     949/** Undocumented intel MSR for reporting thread and core counts.
     950 * Judging from the XNU sources, it seems to be introduced in Nehalem. The
     951 * first 16 bits is the thread count. The next 16 bits the core count, except
     952 * on westmer where it seems it's only the next 4 bits for some reason. */
     953#define MSR_CORE_THREAD_COUNT               0x35
     954
    949955/** CPU Feature control. */
    950956#define MSR_IA32_FEATURE_CONTROL            0x3A
     
    10141020#define MSR_IA32_PERFEVTSEL0                0x186
    10151021#define MSR_IA32_PERFEVTSEL1                0x187
    1016 #define MSR_IA32_FLEX_RATIO                 0x194
     1022/** Flexible ratio, seems to be undocumented, used by XNU (tsc.c).
     1023 * The 16th bit whether flex ratio is being used, in which case bits 15:8
     1024 * holds a ratio that Apple takes for TSC granularity.
     1025 *
     1026 * @note This MSR conflics the P4 MSR_MCG_R12 register. */
     1027#define MSR_FLEX_RATIO                      0x194
     1028/** Performance state value and starting with Intel core more.
     1029 * Apple uses the >=core features to determine TSC granularity on older CPUs. */
    10171030#define MSR_IA32_PERF_STATUS                0x198
    10181031#define MSR_IA32_PERF_CTL                   0x199
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