Changeset 15319 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Dec 11, 2008 5:29:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r15309 r15319 217 217 } 218 218 219 /* Check REM flavour we wish to use with this VM. Now we assume 64-bit guests 219 /* Check REM flavour we wish to use with this VM. Now we assume 64-bit guests 220 220 can be only enabled if hardware acceleration is used. */ 221 221 if (fHWVirtExEnabled) 222 222 { 223 BOOL fSupportsLongMode = false, fIs64BitGuest = false; 224 ComPtr<IGuest> guest; 223 Bstr osTypeId; 224 hrc = pMachine->COMGETTER(OSTypeId)(osTypeId.asOutParam()); H(); 225 225 226 ComPtr <IGuestOSType> guestOSType; 226 Bstr osTypeId; 227 rc = pMachine->COMGETTER(OSTypeId)(osTypeId.asOutParam()); RC_CHECK(); 228 rc = virtualBox->GetGuestOSType (osTypeId, guestOSType.asOutParam()); RC_CHECK(); 229 rc = host->GetProcessorFeature(ProcessorFeature_LongMode, 230 &fSupportsLongMode); RC_CHECK(); 231 rc = guestOSType->COMGETTER(Is64Bit) (&fIs64BitGuest); RC_CHECK(); 232 227 hrc = virtualBox->GetGuestOSType(osTypeId, guestOSType.asOutParam()); H(); 228 229 BOOL fSupportsLongMode = false; 230 hrc = host->GetProcessorFeature(ProcessorFeature_LongMode, 231 &fSupportsLongMode); H(); 232 BOOL fIs64BitGuest = false; 233 hrc = guestOSType->COMGETTER(Is64Bit)(&fIs64BitGuest); H(); 234 233 235 if (fSupportsLongMode && fIs64BitGuest) 234 236 { 235 rc = CFGMR3InsertInteger(pRoot, "Rem64Enabled", 1);RC_CHECK();237 rc = CFGMR3InsertInteger(pRoot, "Rem64Enabled", 1); RC_CHECK(); 236 238 } 237 239 }
Note:
See TracChangeset
for help on using the changeset viewer.