VirtualBox

Ignore:
Timestamp:
Oct 27, 2015 4:17:12 PM (9 years ago)
Author:
vboxsync
Message:

Main: Added paravirtdebug options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r58420 r58437  
    12131213            }
    12141214        }
     1215    }
     1216
     1217    return S_OK;
     1218}
     1219
     1220HRESULT Machine::getParavirtDebug(com::Utf8Str &aParavirtDebug)
     1221{
     1222    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     1223
     1224    aParavirtDebug = mHWData->mParavirtDebug;
     1225    return S_OK;
     1226}
     1227
     1228HRESULT Machine::setParavirtDebug(const com::Utf8Str &aParavirtDebug)
     1229{
     1230    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
     1231
     1232    HRESULT rc = i_checkStateDependency(MutableStateDep);
     1233    if (FAILED(rc)) return rc;
     1234
     1235    /** @todo Parse/validate options? */
     1236    if (aParavirtDebug != mHWData->mParavirtDebug)
     1237    {
     1238        i_setModified(IsModified_MachineData);
     1239        mHWData.backup();
     1240        mHWData->mParavirtDebug = aParavirtDebug;
    12151241    }
    12161242
     
    89138939        mHWData->mChipsetType = data.chipsetType;
    89148940        mHWData->mParavirtProvider = data.paravirtProvider;
     8941        mHWData->mParavirtDebug = data.strParavirtDebug;
    89158942        mHWData->mEmulatedUSBCardReaderEnabled = data.fEmulatedUSBCardReader;
    89168943        mHWData->mHPETEnabled = data.fHPETEnabled;
     
    1019510222        // paravirt
    1019610223        data.paravirtProvider = mHWData->mParavirtProvider;
    10197 
    10198 
     10224        data.strParavirtDebug = mHWData->mParavirtDebug;
     10225
     10226        // emulated USB card reader
    1019910227        data.fEmulatedUSBCardReader = !!mHWData->mEmulatedUSBCardReaderEnabled;
    1020010228
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