VirtualBox

Changeset 1624 in vbox for trunk/src


Ignore:
Timestamp:
Mar 22, 2007 12:48:54 PM (18 years ago)
Author:
vboxsync
Message:

added BackdoorLogDisabled config option to VMMDev

Location:
trunk/src/VBox/Devices/VMMDev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r1426 r1624  
    269269static DECLCALLBACK(int) vmmdevBackdoorLog(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    270270{
    271     if (cb == 1 && Port == RTLOG_DEBUG_PORT)
    272     {
    273         VMMDevState *pData = PDMINS2DATA(pDevIns, VMMDevState *);
     271    VMMDevState *pData = PDMINS2DATA(pDevIns, VMMDevState *);
     272
     273    if (!pData->fBackdoorLogDisabled && cb == 1 && Port == RTLOG_DEBUG_PORT)
     274    {
    274275
    275276        /* The raw version. */
     
    15861587     * Validate and read the configuration.
    15871588     */
    1588     if (!CFGMR3AreValuesValid(pCfgHandle, "GetHostTimeDisabled\0"))
     1589    if (!CFGMR3AreValuesValid(pCfgHandle, "GetHostTimeDisabled\0BackdoorLogDisabled\0"))
    15891590        return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES;
    15901591
     
    15931594        pData->fGetHostTimeDisabled = false;
    15941595    else if (VBOX_FAILURE(rc))
    1595         return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS,
    1596                                    N_("Configuration error: Failed querying \"GetHostTimeDisabled\" as a boolean. (%Vrc)"),
    1597                                    rc);
     1596        return PDMDEV_SET_ERROR(pDevIns, rc,
     1597                                N_("Configuration error: Failed querying \"GetHostTimeDisabled\" as a boolean"));
     1598
     1599    rc = CFGMR3QueryBool(pCfgHandle, "BackdoorLogDisabled", &pData->fBackdoorLogDisabled);
     1600    if (rc == VERR_CFGM_VALUE_NOT_FOUND)
     1601        pData->fBackdoorLogDisabled = false;
     1602    else if (VBOX_FAILURE(rc))
     1603        return PDMDEV_SET_ERROR(pDevIns, rc,
     1604                                N_("Configuration error: Failed querying \"BackdoorLogDisabled\" as a boolean"));
    15981605
    15991606    /*
  • trunk/src/VBox/Devices/VMMDev/VMMDevState.h

    r446 r1624  
    132132    /** Set if GetHostTime should fail.
    133133     * Loaded from the GetHostTimeDisabled configuration value. */
    134     bool fGetHostTimeDisabled;
     134    bool fGetHostTimeDisabled;
     135
     136    /** Set if backdoor logging should be disabled (output will be ignored then) */
     137    bool fBackdoorLogDisabled;
    135138
    136139} VMMDevState;
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