vbox的更動 1624 路徑 trunk/src/VBox/Devices/VMMDev
- 時間撮記:
- 2007-3-22 下午12:48:54 (18 年 以前)
- 位置:
- trunk/src/VBox/Devices/VMMDev
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp
r1426 r1624 269 269 static DECLCALLBACK(int) vmmdevBackdoorLog(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 270 270 { 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 { 274 275 275 276 /* The raw version. */ … … 1586 1587 * Validate and read the configuration. 1587 1588 */ 1588 if (!CFGMR3AreValuesValid(pCfgHandle, "GetHostTimeDisabled\0 "))1589 if (!CFGMR3AreValuesValid(pCfgHandle, "GetHostTimeDisabled\0BackdoorLogDisabled\0")) 1589 1590 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 1590 1591 … … 1593 1594 pData->fGetHostTimeDisabled = false; 1594 1595 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")); 1598 1605 1599 1606 /* -
trunk/src/VBox/Devices/VMMDev/VMMDevState.h
r446 r1624 132 132 /** Set if GetHostTime should fail. 133 133 * 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; 135 138 136 139 } VMMDevState;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器