Changeset 22264 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 14, 2009 3:23:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r22238 r22264 211 211 hrc = pMachine->COMGETTER(OSTypeId)(osTypeId.asOutParam()); H(); 212 212 213 BOOL fIOAPIC; 214 hrc = biosSettings->COMGETTER(IOAPICEnabled)(&fIOAPIC); H(); 215 213 216 /* 214 217 * Get root node first. … … 227 230 rc = CFGMR3InsertInteger(pRoot, "RamHoleSize", cbRamHole); RC_CHECK(); 228 231 rc = CFGMR3InsertInteger(pRoot, "NumCPUs", cCpus); RC_CHECK(); 229 rc = CFGMR3InsertString (pRoot, "OSType", Utf8Str(osTypeId).c_str()); RC_CHECK();230 232 rc = CFGMR3InsertInteger(pRoot, "TimerMillies", 10); RC_CHECK(); 231 233 rc = CFGMR3InsertInteger(pRoot, "RawR3Enabled", 1); /* boolean */ RC_CHECK(); … … 235 237 rc = CFGMR3InsertInteger(pRoot, "CSAMEnabled", 1); /* boolean */ RC_CHECK(); 236 238 237 if (osTypeId == "WindowsNT 4")239 if (osTypeId == "WindowsNT") 238 240 { 239 241 /* … … 300 302 } 301 303 #endif 304 305 /* @todo Not exactly pretty to check strings; VBOXOSTYPE would be better, but that requires quite a bit of API change in Main. */ 306 if ( !fIs64BitGuest 307 && fIOAPIC 308 && ( osTypeId == "WindowsNT" 309 || osTypeId == "Windows" 310 || osTypeId == "Windows 2000" 311 || osTypeId == "WindowsXP" 312 || osTypeId == "Windows 2003")) 313 { 314 /* Only allow TPR patching for NT, Win2k, XP and Windows Server 2003. (32 bits mode) 315 * We may want to consider adding more guest OSes (Solaris) later on. 316 */ 317 rc = CFGMR3InsertInteger(pHWVirtExt, "TPRPatchingEnabled", 1); RC_CHECK(); 318 } 302 319 } 303 320 … … 316 333 hrc = pMachine->COMGETTER(PAEEnabled)(&fEnablePAE); H(); 317 334 rc = CFGMR3InsertInteger(pRoot, "EnablePAE", fEnablePAE); RC_CHECK(); 318 319 BOOL fIOAPIC;320 hrc = biosSettings->COMGETTER(IOAPICEnabled)(&fIOAPIC); H();321 335 322 336 BOOL fPXEDebug;
Note:
See TracChangeset
for help on using the changeset viewer.