vbox的更動 11185 路徑 trunk/src/VBox/Devices/Bus
- 時間撮記:
- 2008-8-6 下午05:09:12 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r11169 r11185 1446 1446 * Validate and read configuration. 1447 1447 */ 1448 if (!CFGMR3AreValuesValid(pCfgHandle, "IOAPIC\0" "GCEnabled\0 R0Enabled\0"))1448 if (!CFGMR3AreValuesValid(pCfgHandle, "IOAPIC\0" "GCEnabled\0" "R0Enabled\0")) 1449 1449 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 1450 1450 1451 1451 /* query whether we got an IOAPIC */ 1452 rc = CFGMR3QueryBool(pCfgHandle, "IOAPIC", &fUseIoApic); 1453 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1454 fUseIoApic = false; 1455 else if (VBOX_FAILURE(rc)) 1452 rc = CFGMR3QueryBoolDef(pCfgHandle, "IOAPIC", &fUseIoApic, false); 1453 if (VBOX_FAILURE(rc)) 1456 1454 return PDMDEV_SET_ERROR(pDevIns, rc, 1457 1455 N_("Configuration error: Failed to query boolean value \"IOAPIC\"")); 1458 1456 1459 1457 /* check if RC code is enabled. */ 1460 rc = CFGMR3QueryBool(pCfgHandle, "GCEnabled", &fGCEnabled); 1461 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1462 fGCEnabled = true; 1463 else if (VBOX_FAILURE(rc)) 1458 rc = CFGMR3QueryBoolDef(pCfgHandle, "GCEnabled", &fGCEnabled, true); 1459 if (VBOX_FAILURE(rc)) 1464 1460 return PDMDEV_SET_ERROR(pDevIns, rc, 1465 1461 N_("Configuration error: Failed to query boolean value \"GCEnabled\"")); 1466 Log(("PCI: fGCEnabled=%d\n", fGCEnabled));1467 1462 1468 1463 /* check if R0 code is enabled. */ 1469 rc = CFGMR3QueryBool(pCfgHandle, "R0Enabled", &fR0Enabled); 1470 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1471 fR0Enabled = true; 1472 else if (VBOX_FAILURE(rc)) 1464 rc = CFGMR3QueryBoolDef(pCfgHandle, "R0Enabled", &fR0Enabled, true); 1465 if (VBOX_FAILURE(rc)) 1473 1466 return PDMDEV_SET_ERROR(pDevIns, rc, 1474 1467 N_("Configuration error: Failed to query boolean value \"R0Enabled\"")); 1475 Log(("PCI: f R0Enabled=%d\n", fR0Enabled));1468 Log(("PCI: fUseIoApic=%RTbool fGCEnabled=%RTbool fR0Enabled=%RTbool\n", fUseIoApic, fGCEnabled, fR0Enabled)); 1476 1469 1477 1470 /*
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器