Changeset 85769 in vbox for trunk/src/VBox/Main/src-server/HostImpl.cpp
- Timestamp:
- Aug 14, 2020 12:59:51 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostImpl.cpp
r85683 r85769 217 217 fUnrestrictedGuestSupported, 218 218 fNestedHWVirtSupported, 219 fVirtVmsaveVmload, 219 220 fRecheckVTSupported; 220 221 … … 311 312 m->fUnrestrictedGuestSupported = false; 312 313 m->fNestedHWVirtSupported = false; 314 m->fVirtVmsaveVmload = false; 313 315 m->fRecheckVTSupported = false; 314 316 … … 375 377 if (fSVMFeaturesEdx & X86_CPUID_SVM_FEATURE_EDX_NESTED_PAGING) 376 378 m->fNestedPagingSupported = true; 379 if (fSVMFeaturesEdx & X86_CPUID_SVM_FEATURE_EDX_VIRT_VMSAVE_VMLOAD) 380 m->fVirtVmsaveVmload = true; 377 381 } 378 382 } … … 1149 1153 1150 1154 /** 1151 * Updates fVTSupported, fNestedPagingSupported, fUnrestrictedGuestSupported and1152 * f NestedHWVirtSupported with info from SUPR3QueryVTCaps().1155 * Updates fVTSupported, fNestedPagingSupported, fUnrestrictedGuestSupported, 1156 * fVirtVmsaveVmload and fNestedHWVirtSupported with info from SUPR3QueryVTCaps(). 1153 1157 * 1154 1158 * This is repeated till we successfully open the support driver, in case it … … 1182 1186 == ( SUPVTCAPS_VT_X | SUPVTCAPS_NESTED_PAGING 1183 1187 | SUPVTCAPS_VTX_UNRESTRICTED_GUEST | SUPVTCAPS_VTX_VMCS_SHADOWING); 1188 m->fVirtVmsaveVmload = (fVTCaps & SUPVTCAPS_AMDV_VIRT_VMSAVE_VMLOAD) != 0; 1184 1189 m->fRecheckVTSupported = false; /* No need to try again, we cached everything. */ 1185 1190 } … … 1204 1209 case ProcessorFeature_UnrestrictedGuest: 1205 1210 case ProcessorFeature_NestedHWVirt: 1211 case ProcessorFeature_VirtVmsaveVmload: 1206 1212 break; 1207 1213 default: … … 1220 1226 || aFeature == ProcessorFeature_NestedPaging 1221 1227 || aFeature == ProcessorFeature_UnrestrictedGuest 1222 || aFeature == ProcessorFeature_NestedHWVirt) 1228 || aFeature == ProcessorFeature_NestedHWVirt 1229 || aFeature == ProcessorFeature_VirtVmsaveVmload) 1223 1230 ) 1224 1231 { … … 1252 1259 case ProcessorFeature_NestedHWVirt: 1253 1260 *aSupported = m->fNestedHWVirtSupported; 1261 break; 1262 1263 case ProcessorFeature_VirtVmsaveVmload: 1264 *aSupported = m->fVirtVmsaveVmload; 1254 1265 break; 1255 1266
Note:
See TracChangeset
for help on using the changeset viewer.