Changeset 71108 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Feb 22, 2018 3:38:35 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120973
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
r70948 r71108 1750 1750 pFeatures->fIbrs = pFeatures->fIbpb; 1751 1751 pFeatures->fStibp = RT_BOOL(pSxfLeaf0->uEdx & X86_CPUID_STEXT_FEATURE_EDX_STIBP); 1752 #if 0 // Disabled until IA32_ARCH_CAPABILITIES support can be tested 1752 1753 pFeatures->fArchCap = RT_BOOL(pSxfLeaf0->uEdx & X86_CPUID_STEXT_FEATURE_EDX_ARCHCAP); 1754 #endif 1753 1755 } 1754 1756 … … 4314 4316 4315 4317 /* Check if speculation control is enabled. */ 4316 rc = CFGMR3QueryBoolDef( CFGMR3GetRoot(pVM), "EnableSpecCtrl", &fEnable, false);4318 rc = CFGMR3QueryBoolDef(pCpumCfg, "SpecCtrl", &fEnable, false); 4317 4319 AssertRCReturn(rc, rc); 4318 4320 if (fEnable) … … 4621 4623 { 4622 4624 pLeaf->uEdx |= X86_CPUID_STEXT_FEATURE_EDX_IBRS_IBPB; 4625 pVM->cpum.s.GuestFeatures.fIbrs = 1; 4623 4626 if (pVM->cpum.s.HostFeatures.fStibp) 4627 { 4624 4628 pLeaf->uEdx |= X86_CPUID_STEXT_FEATURE_EDX_STIBP; 4629 pVM->cpum.s.GuestFeatures.fStibp = 1; 4630 } 4625 4631 4626 4632 /* Make sure we have the speculation control MSR... */ -
trunk/src/VBox/VMM/VMMR3/HM.cpp
r71064 r71108 464 464 "|IBPBOnVMExit" 465 465 "|IBPBOnVMEntry" 466 "|SpecCtrlByHost" 466 467 "|TPRPatchingEnabled" 467 468 "|64bitEnabled" … … 649 650 * Costly paranoia setting. */ 650 651 rc = CFGMR3QueryBoolDef(pCfgHm, "IBPBOnVMEntry", &pVM->hm.s.fIbpbOnVmEntry, false); 652 AssertLogRelRCReturn(rc, rc); 653 654 /** @cfgm{/HM/SpecCtrlByHost, bool} 655 * Another expensive paranoia setting. */ 656 rc = CFGMR3QueryBoolDef(pCfgHm, "SpecCtrlByHost", &pVM->hm.s.fSpecCtrlByHost, false); 651 657 AssertLogRelRCReturn(rc, rc); 652 658
Note:
See TracChangeset
for help on using the changeset viewer.