Changeset 92516 in vbox for trunk/src/VBox
- Timestamp:
- Nov 19, 2021 8:52:38 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 148391
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
r92515 r92516 4228 4228 if (VM_IS_NEM_ENABLED(pVM)) 4229 4229 { 4230 LogRel(("CPUM: WARNING! Can't turn on nested VT-x/AMD-V when NEM is used! \n"));4230 LogRel(("CPUM: WARNING! Can't turn on nested VT-x/AMD-V when NEM is used! (later)\n")); 4231 4231 pConfig->fNestedHWVirt = false; 4232 4232 } … … 4340 4340 AssertLogRelRCReturn(rc, rc); 4341 4341 4342 bool const fMayHaveXSave = fNestedPagingAndFullGuestExec 4343 && pVM->cpum.s.HostFeatures.fXSaveRstor 4342 bool const fMayHaveXSave = pVM->cpum.s.HostFeatures.fXSaveRstor 4344 4343 && pVM->cpum.s.HostFeatures.fOpSysXSaveRstor 4345 && ( !VM_IS_NEM_ENABLED(pVM) 4346 || (NEMHCGetFeatures(pVM) & NEM_FEAT_F_XSAVE_XRSTOR)); 4344 && ( !VM_IS_NEM_ENABLED(pVM) 4345 ? fNestedPagingAndFullGuestExec 4346 : NEMHCGetFeatures(pVM) & NEM_FEAT_F_XSAVE_XRSTOR); 4347 4347 uint64_t const fXStateHostMask = pVM->cpum.s.fXStateHostMask; 4348 4348 … … 4545 4545 RT_ZERO(Config); 4546 4546 4547 bool const fNestedPagingAndFullGuestExec = VM_IS_NEM_ENABLED(pVM) 4548 ? ((NEMHCGetFeatures(pVM) & (NEM_FEAT_F_NESTED_PAGING | NEM_FEAT_F_FULL_GST_EXEC)) 4549 == (NEM_FEAT_F_NESTED_PAGING | NEM_FEAT_F_FULL_GST_EXEC)) 4550 : HMAreNestedPagingAndFullGuestExecEnabled(pVM); 4547 bool const fNestedPagingAndFullGuestExec = VM_IS_NEM_ENABLED(pVM) || HMAreNestedPagingAndFullGuestExecEnabled(pVM); 4551 4548 int rc = cpumR3CpuIdReadConfig(pVM, &Config, pCpumCfg, fNestedPagingAndFullGuestExec); 4552 4549 AssertRCReturn(rc, rc);
Note:
See TracChangeset
for help on using the changeset viewer.