VirtualBox

Changeset 5171 in vbox


Ignore:
Timestamp:
Oct 5, 2007 4:49:56 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25072
Message:

Added PXEDebug option scaffolding.

Location:
trunk/src/VBox/Main
Files:
6 edited

Legend:

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

    r4071 r5171  
    373373}
    374374
     375STDMETHODIMP BIOSSettings::COMGETTER(PXEDebugEnabled)(BOOL *enabled)
     376{
     377    if (!enabled)
     378        return E_POINTER;
     379
     380    AutoCaller autoCaller (this);
     381    CheckComRCReturnRC (autoCaller.rc());
     382
     383    AutoReaderLock alock (this);
     384
     385    *enabled = mData->mPXEDebugEnabled;
     386
     387    return S_OK;
     388}
     389
     390STDMETHODIMP BIOSSettings::COMSETTER(PXEDebugEnabled)(BOOL enable)
     391{
     392    AutoCaller autoCaller (this);
     393    CheckComRCReturnRC (autoCaller.rc());
     394
     395    /* the machine needs to be mutable */
     396    Machine::AutoMutableStateDependency adep (mParent);
     397    CheckComRCReturnRC (adep.rc());
     398
     399    AutoLock alock (this);
     400
     401    mData.backup();
     402    mData->mPXEDebugEnabled = enable;
     403
     404    return S_OK;
     405}
     406
    375407STDMETHODIMP BIOSSettings::COMGETTER(TimeOffset)(LONG64 *offset)
    376408{
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r5126 r5171  
    170170    hrc = biosSettings->COMGETTER(IOAPICEnabled)(&fIOAPIC);                          H();
    171171
     172    BOOL fPXEDebug;
     173    hrc = biosSettings->COMGETTER(PXEDebugEnabled)(&fPXEDebug);                      H();
     174
    172175    /*
    173176     * PDM config.
     
    222225    rc = CFGMR3InsertString(pCfg,   "FloppyDevice",         "i82078");              RC_CHECK();
    223226    rc = CFGMR3InsertInteger(pCfg,  "IOAPIC",               fIOAPIC);               RC_CHECK();
     227    rc = CFGMR3InsertInteger(pCfg,  "PXEDebug",             fPXEDebug);             RC_CHECK();
    224228    rc = CFGMR3InsertBytes(pCfg,    "UUID", pUuid, sizeof(*pUuid));                 RC_CHECK();
    225229
  • trunk/src/VBox/Main/MachineImpl.cpp

    r5163 r5171  
    42264226            }
    42274227
     4228            /* PXE debug logging (optional) */
     4229            {
     4230                CFGNODE pxedebugNode = 0;
     4231                CFGLDRGetChildNode (biosNode, "PXEDebug", 0, &pxedebugNode);
     4232                if (pxedebugNode)
     4233                {
     4234                    bool enabled;
     4235                    CFGLDRQueryBool (pxedebugNode, "enabled", &enabled);
     4236                    mBIOSSettings->COMSETTER(PXEDebugEnabled)(enabled);
     4237                    CFGLDRReleaseNode (pxedebugNode);
     4238                }
     4239            }
     4240
    42284241            /* time offset (optional) */
    42294242            {
     
    61536166            CFGLDRSetInt64 (timeOffsetNode, "value", timeOffset);
    61546167            CFGLDRReleaseNode (timeOffsetNode);
     6168
     6169            /* PXE debug flag (optional) */
     6170            CFGNODE pxedebugNode = 0;
     6171            CFGLDRCreateChildNode (biosNode, "PXEDebug", &pxedebugNode);
     6172            mBIOSSettings->COMGETTER(PXEDebugEnabled)(&fSet);
     6173            CFGLDRSetBool (pxedebugNode, "enabled", !!fSet);
     6174            CFGLDRReleaseNode (pxedebugNode);
     6175
    61556176        }
    61566177        CFGLDRReleaseNode(biosNode);
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r5150 r5171  
    20682068    </attribute>
    20692069
     2070    <attribute name="PXEDebugEnabled" type="boolean">
     2071      <desc>
     2072        PXE debug logging flag. If set, VirtualBox will write extensive
     2073        PXE trace information to the release log.
     2074      </desc>
     2075    </attribute>
     2076
    20702077  </interface>
    20712078
  • trunk/src/VBox/Main/include/BIOSSettingsImpl.h

    r4071 r5171  
    4141            mACPIEnabled = true;
    4242            mIOAPICEnabled = false;
     43            mPXEDebugEnabled = false;
    4344            mTimeOffset = 0;
    4445        }
     
    5455                    mACPIEnabled     == that.mACPIEnabled &&
    5556                    mIOAPICEnabled   == that.mIOAPICEnabled &&
     57                    mPXEDebugEnabled == that.mPXEDebugEnabled &&
    5658                    mTimeOffset      == that.mTimeOffset);
    5759        }
     
    6466        BOOL               mACPIEnabled;
    6567        BOOL               mIOAPICEnabled;
     68        BOOL               mPXEDebugEnabled;
    6669        LONG64             mTimeOffset;
    6770    };
     
    101104    STDMETHOD(COMGETTER(IOAPICEnabled))(BOOL *enabled);
    102105    STDMETHOD(COMSETTER(IOAPICEnabled))(BOOL enable);
     106    STDMETHOD(COMGETTER(PXEDebugEnabled))(BOOL *enabled);
     107    STDMETHOD(COMSETTER(PXEDebugEnabled))(BOOL enable);
    103108    STDMETHOD(COMGETTER)(TimeOffset)(LONG64 *offset);
    104109    STDMETHOD(COMSETTER)(TimeOffset)(LONG64 offset);
  • trunk/src/VBox/Main/xml/VirtualBox-settings-common.xsd

    r5150 r5171  
    465465      </xsd:complexType>
    466466    </xsd:element>
     467    <xsd:element name="PXEDebug" minOccurs="0">
     468      <xsd:complexType>
     469          <xsd:attribute name="enabled" type="xsd:boolean" default="false"/>
     470      </xsd:complexType>
     471    </xsd:element>
    467472  </xsd:all>
    468473</xsd:complexType>
Note: See TracChangeset for help on using the changeset viewer.

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