VirtualBox

vbox的更動 1624 路徑 trunk/src/VBox/Devices/VMMDev


忽略:
時間撮記:
2007-3-22 下午12:48:54 (18 年 以前)
作者:
vboxsync
訊息:

added BackdoorLogDisabled config option to VMMDev

位置:
trunk/src/VBox/Devices/VMMDev
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • 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;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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