VirtualBox

Ignore:
Timestamp:
Dec 11, 2008 5:29:27 PM (16 years ago)
Author:
vboxsync
Message:

ConsoleImpl2: fixes to and clean off the Rem64Enabled setting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r15309 r15319  
    217217    }
    218218
    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
    220220       can be only enabled if hardware acceleration is used. */
    221221    if (fHWVirtExEnabled)
    222222    {
    223         BOOL fSupportsLongMode = false, fIs64BitGuest = false;
    224         ComPtr<IGuest> guest;
     223        Bstr osTypeId;
     224        hrc = pMachine->COMGETTER(OSTypeId)(osTypeId.asOutParam());                 H();
     225
    225226        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
    233235        if (fSupportsLongMode && fIs64BitGuest)
    234236        {
    235             rc = CFGMR3InsertInteger(pRoot, "Rem64Enabled",     1);                 RC_CHECK();
     237            rc = CFGMR3InsertInteger(pRoot, "Rem64Enabled", 1);                     RC_CHECK();
    236238        }
    237239    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette