Changeset 54749 in vbox for trunk/src/VBox
- Timestamp:
- Mar 13, 2015 4:40:01 PM (10 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r54737 r54749 726 726 if (!fHWVirtExEnabled) 727 727 { 728 Assert( pVM->cpum.s.aGuestCpuIdPatmStd[4].uEax== 0728 Assert( (pVM->cpum.s.aGuestCpuIdPatmStd[4].uEax & UINT32_C(0x0000ffff)) == 0 729 729 || pVM->cpum.s.aGuestCpuIdPatmStd[0].uEax < 0x4); 730 pVM->cpum.s.aGuestCpuIdPatmStd[4].uEax = 0;730 pVM->cpum.s.aGuestCpuIdPatmStd[4].uEax &= UINT32_C(0x0000ffff); 731 731 } 732 732 } -
trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
r54740 r54749 2525 2525 while ((pCurLeaf = cpumR3CpuIdGetExactLeaf(pCpum, 4, uSubLeaf)) != NULL) 2526 2526 { 2527 pCurLeaf->uEax &= UINT32_C(0x ffffc000); /* Clear the #maxcores, #threads-sharing-cache (both are #-1).*/2527 pCurLeaf->uEax &= UINT32_C(0x00003fff); /* Clear the #maxcores, #threads-sharing-cache (both are #-1).*/ 2528 2528 #ifdef VBOX_WITH_MULTI_CORE 2529 2529 if ( pVM->cCpus > 1 … … 3169 3169 AssertLogRelRCReturn(rc, rc); 3170 3170 3171 /** @cfgm{/CPUM/MaxStdLeaf, uint32_t, 0x000000 05}3171 /** @cfgm{/CPUM/MaxStdLeaf, uint32_t, 0x00000016} 3172 3172 * The last standard leaf to keep. The actual last value that is stored in EAX 3173 3173 * is RT_MAX(CPUID[0].EAX,/CPUM/MaxStdLeaf). Leaves beyond the max leaf are 3174 3174 * removed. (This works independently of and differently from NT4LeafLimit.) 3175 */ 3176 rc = CFGMR3QueryU32Def(pCpumCfg, "MaxStdLeaf", &pConfig->uMaxStdLeaf, UINT32_C(0x00000005)); 3175 * The default is usually set to what we're able to reasonably sanitize. 3176 */ 3177 rc = CFGMR3QueryU32Def(pCpumCfg, "MaxStdLeaf", &pConfig->uMaxStdLeaf, UINT32_C(0x00000016)); 3177 3178 AssertLogRelRCReturn(rc, rc); 3178 3179 3179 /** @cfgm{/CPUM/MaxExtLeaf, uint32_t, 0x800000 08}3180 /** @cfgm{/CPUM/MaxExtLeaf, uint32_t, 0x8000001e} 3180 3181 * The last extended leaf to keep. The actual last value that is stored in EAX 3181 3182 * is RT_MAX(CPUID[0x80000000].EAX,/CPUM/MaxStdLeaf). Leaves beyond the max 3182 * leaf are removed. 3183 */ 3184 rc = CFGMR3QueryU32Def(pCpumCfg, "MaxExtLeaf", &pConfig->uMaxExtLeaf, UINT32_C(0x800000 08));3183 * leaf are removed. The default is set to what we're able to sanitize. 3184 */ 3185 rc = CFGMR3QueryU32Def(pCpumCfg, "MaxExtLeaf", &pConfig->uMaxExtLeaf, UINT32_C(0x8000001e)); 3185 3186 AssertLogRelRCReturn(rc, rc); 3186 3187 … … 3188 3189 * The last extended leaf to keep. The actual last value that is stored in EAX 3189 3190 * is RT_MAX(CPUID[0xc0000000].EAX,/CPUM/MaxCentaurLeaf). Leaves beyond the max 3190 * leaf are removed. 3191 * leaf are removed. The default is set to what we're able to sanitize. 3191 3192 */ 3192 3193 rc = CFGMR3QueryU32Def(pCpumCfg, "MaxCentaurLeaf", &pConfig->uMaxCentaurLeaf, UINT32_C(0xc0000004));
Note:
See TracChangeset
for help on using the changeset viewer.