Changeset 22609 in vbox for trunk/src/VBox/Main/HostImpl.cpp
- Timestamp:
- Aug 31, 2009 2:34:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r22211 r22609 235 235 && (u32FeaturesEDX & X86_CPUID_FEATURE_EDX_FXSR) 236 236 ) 237 { 238 #ifdef RT_OS_LINUX 239 /* Linux: VT-x is not supported on Linux < 2.6.13 because older kernels 240 * unconditionally disable the VMXE flag */ 241 char szBuf[64]; 242 int rc = RTSystemQueryOSInfo(RTSYSOSINFO_RELEASE, szBuf, sizeof(szBuf)); 243 244 if (RT_SUCCESS(rc)) 245 { 246 char *pszNext; 247 uint32_t uA, uB, uC; 248 249 rc = RTStrToUInt32Ex(szBuf, &pszNext, 10, &uA); 250 if ( RT_SUCCESS(rc) 251 && *pszNext == '.') 252 { 253 rc = RTStrToUInt32Ex(pszNext+1, &pszNext, 10, &uB); 254 if ( RT_SUCCESS(rc) 255 && *pszNext == '.') 256 { 257 rc = RTStrToUInt32Ex(pszNext+1, &pszNext, 10, &uC); 258 if (RT_SUCCESS(rc)) 259 { 260 uint32_t uLinuxVersion = (uA << 16) + (uB << 8) + uC; 261 if (uLinuxVersion >= (2 << 16) + (6 << 8) + 13) 262 fVTxAMDVSupported = true; 263 } 264 } 265 } 266 } 267 #else 237 268 fVTxAMDVSupported = true; 269 #endif 270 } 238 271 } 239 272 else
Note:
See TracChangeset
for help on using the changeset viewer.