Changeset 23702 in vbox for trunk/src/VBox
- Timestamp:
- Oct 12, 2009 3:28:56 PM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r23537 r23702 167 167 #endif 168 168 /* Features that can be queried with GetProcessorFeature */ 169 BOOL fVT xAMDVSupported,169 BOOL fVTSupported, 170 170 fLongModeSupported, 171 fPAESupported; 171 fPAESupported, 172 fNestedPagingSupported; 172 173 173 174 /* 3D hardware acceleration supported? */ … … 247 248 248 249 /* Cache the features reported by GetProcessorFeature. */ 249 m->fVT xAMDVSupported = false;250 m->fVTSupported = false; 250 251 m->fLongModeSupported = false; 251 252 m->fPAESupported = false; 253 m->fNestedPagingSupported = false; 252 254 253 255 if (ASMHasCpuId()) … … 278 280 int rc = SUPR3QueryVTxSupported(); 279 281 if (RT_SUCCESS(rc)) 280 m->fVT xAMDVSupported = true;282 m->fVTSupported = true; 281 283 } 282 284 } … … 291 293 && (u32FeaturesEDX & X86_CPUID_FEATURE_EDX_FXSR) 292 294 ) 293 m->fVTxAMDVSupported = true; 294 } 295 } 295 m->fVTSupported = true; 296 } 297 } 298 299 #if 0 /* needs testing */ 300 if (m->fVTSupported) 301 { 302 uint32_t u32Caps = 0; 303 304 int rc = SUPR3QueryVTCaps(&u32Caps); 305 if (VBOX_SUCCESS(rc)) 306 { 307 if (u32Caps & SUPVTCAPS_NESTED_PAGING) 308 m->fNestedPagingSupported = true; 309 } 310 /* else @todo; report BIOS trouble in some way. */ 311 } 312 #endif 296 313 297 314 /* Test for 3D hardware acceleration support */ … … 1025 1042 { 1026 1043 case ProcessorFeature_HWVirtEx: 1027 *aSupported = m->fVT xAMDVSupported;1044 *aSupported = m->fVTSupported; 1028 1045 break; 1029 1046 … … 1034 1051 case ProcessorFeature_LongMode: 1035 1052 *aSupported = m->fLongModeSupported; 1053 break; 1054 1055 case ProcessorFeature_NestedPaging: 1056 *aSupported = m->fNestedPagingSupported; 1036 1057 break; 1037 1058 -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r23643 r23702 972 972 <enum 973 973 name="ProcessorFeature" 974 uuid=" b8353b35-705d-4796-9967-ebfb7ba54af4"974 uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf" 975 975 > 976 976 <desc> … … 981 981 <const name="PAE" value="1"/> 982 982 <const name="LongMode" value="2"/> 983 <const name="NestedPaging" value="3"/> 983 984 </enum> 984 985
Note:
See TracChangeset
for help on using the changeset viewer.