Changeset 50617 in vbox for trunk/src/VBox/VMM/VMMAll/CPUMAllMsrs.cpp
- Timestamp:
- Feb 26, 2014 7:34:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllMsrs.cpp
r50590 r50617 1516 1516 { 1517 1517 /** @todo Write EBL_CR_POWERON: Remember written bits. */ 1518 return VINF_SUCCESS; 1519 } 1520 1521 1522 /** @callback_method_impl{FNCPUMRDMSR} */ 1523 static DECLCALLBACK(int) cpumMsrRd_IntelI7CoreThreadCount(PVMCPU pVCpu, uint32_t idMsr, PCCPUMMSRRANGE pRange, uint64_t *puValue) 1524 { 1525 /* Note! According to cpuid_set_info in XNU (10.7.0), Westmere CPU only 1526 have a 4-bit core count. */ 1527 uint16_t cCores = pVCpu->CTX_SUFF(pVM)->cCpus; 1528 uint16_t cThreads = cCores; /** @todo hyper-threading. */ 1529 *puValue = RT_MAKE_U32(cThreads, cCores); 1518 1530 return VINF_SUCCESS; 1519 1531 } … … 4457 4469 4458 4470 cpumMsrRd_IntelEblCrPowerOn, 4471 cpumMsrRd_IntelI7CoreThreadCount, 4459 4472 cpumMsrRd_IntelP4EbcHardPowerOn, 4460 4473 cpumMsrRd_IntelP4EbcSoftPowerOn, … … 5146 5159 5147 5160 CPUM_ASSERT_RD_MSR_FN(IntelEblCrPowerOn); 5161 CPUM_ASSERT_RD_MSR_FN(IntelI7CoreThreadCount); 5148 5162 CPUM_ASSERT_RD_MSR_FN(IntelP4EbcHardPowerOn); 5149 5163 CPUM_ASSERT_RD_MSR_FN(IntelP4EbcSoftPowerOn);
Note:
See TracChangeset
for help on using the changeset viewer.