Changeset 72356 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- May 28, 2018 4:18:06 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 122813
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostImpl.cpp
r72326 r72356 217 217 fPAESupported, 218 218 fNestedPagingSupported, 219 fUnrestrictedGuestSupported, 219 220 fRecheckVTSupported; 220 221 … … 298 299 m->fPAESupported = false; 299 300 m->fNestedPagingSupported = false; 301 m->fUnrestrictedGuestSupported = false; 300 302 m->fRecheckVTSupported = false; 301 303 … … 351 353 { 352 354 m->fVTSupported = true; 355 m->fUnrestrictedGuestSupported = true; 353 356 354 357 /* Query AMD features. */ … … 380 383 else 381 384 Assert(m->fNestedPagingSupported == false); 385 if ( (fVTCaps & SUPVTCAPS_AMD_V) 386 || (fVTCaps & SUPVTCAPS_VTX_UNRESTRICTED_GUEST)) 387 m->fUnrestrictedGuestSupported = true; 388 else 389 Assert(m->fUnrestrictedGuestSupported == false); 382 390 } 383 391 else 384 392 { 385 393 LogRel(("SUPR0QueryVTCaps -> %Rrc\n", rc)); 386 m->fVTSupported = m->fNestedPagingSupported = false;394 m->fVTSupported = m->fNestedPagingSupported = m->fUnrestrictedGuestSupported = false; 387 395 } 388 396 rc = SUPR3Term(false); … … 1008 1016 case ProcessorFeature_LongMode: 1009 1017 case ProcessorFeature_NestedPaging: 1018 case ProcessorFeature_UnrestrictedGuest: 1010 1019 break; 1011 1020 default: … … 1022 1031 if ( m->fRecheckVTSupported 1023 1032 && ( aFeature == ProcessorFeature_HWVirtEx 1024 || aFeature == ProcessorFeature_NestedPaging) 1033 || aFeature == ProcessorFeature_NestedPaging 1034 || aFeature == ProcessorFeature_UnrestrictedGuest) 1025 1035 ) 1026 1036 { … … 1042 1052 else 1043 1053 Assert(m->fNestedPagingSupported == false); 1054 if ( (fVTCaps & SUPVTCAPS_AMD_V) 1055 || (fVTCaps & SUPVTCAPS_VTX_UNRESTRICTED_GUEST)) 1056 m->fUnrestrictedGuestSupported = true; 1057 else 1058 Assert(m->fUnrestrictedGuestSupported == false); 1044 1059 } 1045 1060 else 1046 1061 { 1047 1062 LogRel(("SUPR0QueryVTCaps -> %Rrc\n", rc)); 1048 m->fVTSupported = m->fNestedPagingSupported = true;1063 m->fVTSupported = m->fNestedPagingSupported = m->fUnrestrictedGuestSupported = false; 1049 1064 } 1050 1065 rc = SUPR3Term(false); … … 1072 1087 case ProcessorFeature_NestedPaging: 1073 1088 *aSupported = m->fNestedPagingSupported; 1089 break; 1090 1091 case ProcessorFeature_UnrestrictedGuest: 1092 *aSupported = m->fUnrestrictedGuestSupported; 1074 1093 break; 1075 1094
Note:
See TracChangeset
for help on using the changeset viewer.