VirtualBox

Changeset 28030 in vbox for trunk/src


Ignore:
Timestamp:
Apr 7, 2010 7:53:12 AM (15 years ago)
Author:
vboxsync
Message:

VMM: SpeedStep and relatives MSRs

Location:
trunk/src
Files:
3 edited

Legend:

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

    r27331 r28030  
    792792            /* Keep consistent with helper_rdmsr() in REM */
    793793            u64 =     (1000ULL                      /* TSC increment by tick */)
    794                     | ((uint64_t)u8Multiplier << 40 /* CPU multiplier */       );
     794                    | ((uint64_t)u8Multiplier << 24 /* CPU multiplier (aka bus ratio) min */       )
     795                    | ((uint64_t)u8Multiplier << 40 /* CPU multiplier (aka bus ratio) max */       );
     796            break;
     797
     798        case  MSR_IA32_FSB_CLOCK_STS:
     799            /**
     800             * Encoded as:
     801             * 0 - 266
     802             * 1 - 133
     803             * 2 - 200
     804             * 3 - return 166
     805             * 5 - return 100
     806             */
     807            u64 = (2 << 4);
    795808            break;
    796809
     
    798811            u64 =     ((u8Multiplier)<<8              /* Flex ratio max */)
    799812                    | ((uint64_t)u8Multiplier << 40   /* Flex ratio min */ );
     813            break;
     814
     815        case MSR_IA32_THERM_STATUS:
     816            /* CPU temperature reltive to TCC, to actually activate, CPUID leaf 6 EAX[0] must be set */
     817            u64 = (1 << 31) /* validity bit */ |
     818                  (20 << 16) /* degrees till TCC */;
    800819            break;
    801820
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r27976 r28030  
    29952995    case MSR_IA32_PLATFORM_INFO:
    29962996    case MSR_IA32_MISC_ENABLE:
     2997    case MSR_IA32_FSB_CLOCK_STS:
     2998    case MSR_IA32_THERM_STATUS:
    29972999        val = CPUMGetGuestMsr(pVCpu, pRegFrame->ecx);
    29983000        break;
  • trunk/src/recompiler/target-i386/op_helper.c

    r27593 r28030  
    38563856    case MSR_IA32_PERF_STATUS:
    38573857    case MSR_IA32_PLATFORM_INFO:
     3858    case MSR_IA32_FSB_CLOCK_STS:
     3859    case MSR_IA32_THERM_STATUS:
    38583860        val = CPUMGetGuestMsr(env->pVCpu, (uint32_t)ECX);
    38593861        break;
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