VirtualBox

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


Ignore:
Timestamp:
Mar 3, 2010 2:23:59 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58300
Message:

VMM: implement some Nehalem MSRs

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

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

    r26673 r26993  
    736736{
    737737    uint64_t u64 = 0;
     738    uint8_t  u8Multiplier = 4;
    738739
    739740    switch (idMsr)
     
    790791            /** @todo: could really be not exactly correct, maybe use host's values */
    791792            /* Keep consistent with helper_rdmsr() in REM */
    792             u64 =     (1000ULL                /* TSC increment by tick */)
    793                     | (((uint64_t)4ULL) << 40 /* CPU multiplier */       );
     793            u64 =     (1000ULL                      /* TSC increment by tick */)
     794                    | ((uint64_t)u8Multiplier << 40 /* CPU multiplier */       );
     795            break;
     796
     797        case MSR_IA32_PLATFORM_INFO:
     798            u64 =     ((u8Multiplier)<<8              /* Flex ratio max */)
     799                    | ((uint64_t)u8Multiplier << 40   /* Flex ratio min */ );
    794800            break;
    795801
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r26855 r26993  
    28432843    case MSR_IA32_PERF_STATUS:
    28442844        return "MSR_IA32_PERF_STATUS";
     2845    case MSR_IA32_PLATFORM_INFO:
     2846        return "MSR_IA32_PLATFORM_INFO";
    28452847    case MSR_IA32_PERF_CTL:
    28462848        return "Unsupported MSR_IA32_PERF_CTL";
     
    29522954
    29532955    case MSR_IA32_PERF_STATUS:
    2954         val = CPUMGetGuestMsr(pVCpu, MSR_IA32_PERF_STATUS);
     2956    case MSR_IA32_PLATFORM_INFO:
     2957        val = CPUMGetGuestMsr(pVCpu, pRegFrame->ecx);
    29552958        break;
    29562959
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