Changeset 75919 in vbox for trunk/src/VBox/Main/src-server/HostImpl.cpp
- Timestamp:
- Dec 3, 2018 5:27:41 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostImpl.cpp
r72394 r75919 218 218 fNestedPagingSupported, 219 219 fUnrestrictedGuestSupported, 220 fNestedHWVirtSupported, 220 221 fRecheckVTSupported; 221 222 … … 300 301 m->fNestedPagingSupported = false; 301 302 m->fUnrestrictedGuestSupported = false; 303 m->fNestedHWVirtSupported = false; 302 304 m->fRecheckVTSupported = false; 303 305 … … 388 390 else 389 391 Assert(m->fUnrestrictedGuestSupported == false); 392 /** @todo r=klaus put accurate condition here and update it as 393 * the feature becomes available with VT-x. */ 394 if ( (fVTCaps & SUPVTCAPS_AMD_V) 395 && m->fNestedPagingSupported) 396 m->fNestedHWVirtSupported = true; 390 397 } 391 398 else 392 399 { 393 400 LogRel(("SUPR0QueryVTCaps -> %Rrc\n", rc)); 394 m->fVTSupported = m->fNestedPagingSupported = m->fUnrestrictedGuestSupported = false; 401 m->fVTSupported = m->fNestedPagingSupported = m->fUnrestrictedGuestSupported 402 = m->fNestedHWVirtSupported = false; 395 403 } 396 404 rc = SUPR3Term(false); … … 1017 1025 case ProcessorFeature_NestedPaging: 1018 1026 case ProcessorFeature_UnrestrictedGuest: 1027 case ProcessorFeature_NestedHWVirt: 1019 1028 break; 1020 1029 default: … … 1032 1041 && ( aFeature == ProcessorFeature_HWVirtEx 1033 1042 || aFeature == ProcessorFeature_NestedPaging 1034 || aFeature == ProcessorFeature_UnrestrictedGuest) 1043 || aFeature == ProcessorFeature_UnrestrictedGuest 1044 || aFeature == ProcessorFeature_NestedHWVirt) 1035 1045 ) 1036 1046 { … … 1057 1067 else 1058 1068 Assert(m->fUnrestrictedGuestSupported == false); 1069 /** @todo r=klaus put accurate condition here and update it as 1070 * the feature becomes available with VT-x. */ 1071 if ( (fVTCaps & SUPVTCAPS_AMD_V) 1072 && m->fNestedPagingSupported) 1073 m->fNestedHWVirtSupported = true; 1059 1074 } 1060 1075 else 1061 1076 { 1062 1077 LogRel(("SUPR0QueryVTCaps -> %Rrc\n", rc)); 1063 m->fVTSupported = m->fNestedPagingSupported = m->fUnrestrictedGuestSupported = false; 1078 m->fVTSupported = m->fNestedPagingSupported = m->fUnrestrictedGuestSupported 1079 = m->fNestedHWVirtSupported = false; 1064 1080 } 1065 1081 rc = SUPR3Term(false); … … 1091 1107 case ProcessorFeature_UnrestrictedGuest: 1092 1108 *aSupported = m->fUnrestrictedGuestSupported; 1109 break; 1110 1111 case ProcessorFeature_NestedHWVirt: 1112 *aSupported = m->fNestedHWVirtSupported; 1093 1113 break; 1094 1114
Note:
See TracChangeset
for help on using the changeset viewer.