Changeset 30955 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Jul 21, 2010 12:52:19 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r30951 r30955 330 330 * Helper that calls CFGMR3InsertString and throws an iprt::Error if that 331 331 * fails (C-string variant). 332 * @param pParent333 * @param pcszNodeName334 * @param strValue332 * @param pParent See CFGMR3InsertStringN. 333 * @param pcszNodeName See CFGMR3InsertStringN. 334 * @param pcszValue The string value. 335 335 */ 336 void InsertConfigString(PCFGMNODE pNode,337 const char *pcszName,338 const char *pcszValue)336 static void InsertConfigString(PCFGMNODE pNode, 337 const char *pcszName, 338 const char *pcszValue) 339 339 { 340 340 int vrc = CFGMR3InsertString(pNode, … … 348 348 * Helper that calls CFGMR3InsertString and throws an iprt::Error if that 349 349 * fails (Utf8Str variant). 350 * @param pParent351 * @param pcszNodeName352 * @param strValue350 * @param pParent See CFGMR3InsertStringN. 351 * @param pcszNodeName See CFGMR3InsertStringN. 352 * @param rStrValue The string value. 353 353 */ 354 void InsertConfigString(PCFGMNODE pNode,355 const char *pcszName,356 const Utf8Str &strValue)354 static void InsertConfigString(PCFGMNODE pNode, 355 const char *pcszName, 356 const Utf8Str &rStrValue) 357 357 { 358 int vrc = CFGMR3InsertString LengthKnown(pNode,359 360 strValue.c_str(),361 strValue.length() + 1);358 int vrc = CFGMR3InsertStringN(pNode, 359 pcszName, 360 rStrValue.c_str(), 361 rStrValue.length()); 362 362 if (RT_FAILURE(vrc)) 363 363 throw ConfigError("CFGMR3InsertStringLengthKnown", vrc, pcszName); … … 367 367 * Helper that calls CFGMR3InsertString and throws an iprt::Error if that 368 368 * fails (Bstr variant). 369 * @param pParent 370 * @param pcszNodeName 371 * @param strValue 369 * 370 * @param pParent See CFGMR3InsertStringN. 371 * @param pcszNodeName See CFGMR3InsertStringN. 372 * @param rBstrValue The string value. 372 373 */ 373 void InsertConfigString(PCFGMNODE pNode,374 const char *pcszName,375 const Bstr &bstrValue)374 static void InsertConfigString(PCFGMNODE pNode, 375 const char *pcszName, 376 const Bstr &rBstrValue) 376 377 { 377 InsertConfigString(pNode, pcszName, Utf8Str( bstrValue));378 InsertConfigString(pNode, pcszName, Utf8Str(rBstrValue)); 378 379 } 379 380 380 381 /** 382 * Helper that calls CFGMR3InsertBytes and throws an iprt::Error if that fails. 381 383 * 382 * @param pNode383 * @param pcszName384 * @param pvBytes385 * @param cbBytes384 * @param pNode See CFGMR3InsertBytes. 385 * @param pcszName See CFGMR3InsertBytes. 386 * @param pvBytes See CFGMR3InsertBytes. 387 * @param cbBytes See CFGMR3InsertBytes. 386 388 */ 387 void InsertConfigBytes(PCFGMNODE pNode,388 const char *pcszName,389 const void *pvBytes,390 size_t cbBytes)389 static void InsertConfigBytes(PCFGMNODE pNode, 390 const char *pcszName, 391 const void *pvBytes, 392 size_t cbBytes) 391 393 { 392 394 int vrc = CFGMR3InsertBytes(pNode, … … 399 401 400 402 /** 403 * Helper that calls CFGMR3InsertInteger and thows an iprt::Error if that 404 * fails. 401 405 * 402 * @param pNode403 * @param pcszName404 * @param u64Integer406 * @param pNode See CFGMR3InsertInteger. 407 * @param pcszName See CFGMR3InsertInteger. 408 * @param u64Integer See CFGMR3InsertInteger. 405 409 */ 406 void InsertConfigInteger(PCFGMNODE pNode,407 const char *pcszName,408 uint64_t u64Integer)410 static void InsertConfigInteger(PCFGMNODE pNode, 411 const char *pcszName, 412 uint64_t u64Integer) 409 413 { 410 414 int vrc = CFGMR3InsertInteger(pNode, … … 416 420 417 421 /** 422 * Helper that calls CFGMR3InsertNode and throws an iprt::Error if that fails. 418 423 * 419 * @param pNode420 * @param pcszName421 * @param ppChild424 * @param pNode See CFGMR3InsertNode. 425 * @param pcszName See CFGMR3InsertNode. 426 * @param ppChild See CFGMR3InsertNode. 422 427 */ 423 void InsertConfigNode(PCFGMNODE pNode,424 const char *pcszName,425 PCFGMNODE *ppChild)428 static void InsertConfigNode(PCFGMNODE pNode, 429 const char *pcszName, 430 PCFGMNODE *ppChild) 426 431 { 427 432 int vrc = CFGMR3InsertNode(pNode, pcszName, ppChild); … … 431 436 432 437 /** 438 * Helper that calls CFGMR3RemoveValue and throws an iprt::Error if that fails. 433 439 * 434 * @param pNode435 * @param pcszName440 * @param pNode See CFGMR3RemoveValue. 441 * @param pcszName See CFGMR3RemoveValue. 436 442 */ 437 void RemoveConfigValue(PCFGMNODE pNode,438 const char *pcszName)443 static void RemoveConfigValue(PCFGMNODE pNode, 444 const char *pcszName) 439 445 { 440 446 int vrc = CFGMR3RemoveValue(pNode, pcszName); … … 442 448 throw ConfigError("CFGMR3RemoveValue", vrc, pcszName); 443 449 } 450 444 451 445 452 /** … … 886 893 887 894 InsertConfigString(pCfg, "DeviceKey", bstrKey); 888 InsertConfigInteger(pCfg, "GetKeyFromRealSMC", fGetKeyFromRealSMC);895 InsertConfigInteger(pCfg, "GetKeyFromRealSMC", fGetKeyFromRealSMC); 889 896 } 890 897 … … 917 924 InsertConfigString(pLunL0, "Driver", "KeyboardQueue"); 918 925 InsertConfigNode(pLunL0, "Config", &pCfg); 919 InsertConfigInteger(pCfg, "QueueSize", 64);926 InsertConfigInteger(pCfg, "QueueSize", 64); 920 927 921 928 InsertConfigNode(pLunL0, "AttachedDriver", &pLunL1); … … 923 930 InsertConfigNode(pLunL1, "Config", &pCfg); 924 931 Keyboard *pKeyboard = pConsole->mKeyboard; 925 InsertConfigInteger(pCfg, "Object", (uintptr_t)pKeyboard);932 InsertConfigInteger(pCfg, "Object", (uintptr_t)pKeyboard); 926 933 927 934 InsertConfigNode(pInst, "LUN#1", &pLunL0); … … 934 941 InsertConfigNode(pLunL1, "Config", &pCfg); 935 942 Mouse *pMouse = pConsole->mMouse; 936 InsertConfigInteger(pCfg, "Object", (uintptr_t)pMouse);943 InsertConfigInteger(pCfg, "Object", (uintptr_t)pMouse); 937 944 938 945 /* … … 963 970 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 964 971 InsertConfigNode(pInst, "Config", &pCfg); 965 InsertConfigInteger(pCfg, "IOAPIC", fIOAPIC);966 InsertConfigInteger(pCfg, "NumCPUs", cCpus);972 InsertConfigInteger(pCfg, "IOAPIC", fIOAPIC); 973 InsertConfigInteger(pCfg, "NumCPUs", cCpus); 967 974 968 975 if (fIOAPIC) … … 985 992 BOOL fRTCUseUTC; 986 993 hrc = pMachine->COMGETTER(RTCUseUTC)(&fRTCUseUTC); H(); 987 InsertConfigInteger(pCfg, "UseUTC", fRTCUseUTC ? 1 : 0);994 InsertConfigInteger(pCfg, "UseUTC", fRTCUseUTC ? 1 : 0); 988 995 989 996 /* … … 1000 1007 ULONG cVRamMBs; 1001 1008 hrc = pMachine->COMGETTER(VRAMSize)(&cVRamMBs); H(); 1002 InsertConfigInteger(pCfg, "VRamSize", cVRamMBs * _1M);1009 InsertConfigInteger(pCfg, "VRamSize", cVRamMBs * _1M); 1003 1010 ULONG cMonitorCount; 1004 1011 hrc = pMachine->COMGETTER(MonitorCount)(&cMonitorCount); H(); 1005 InsertConfigInteger(pCfg, "MonitorCount", cMonitorCount);1012 InsertConfigInteger(pCfg, "MonitorCount", cMonitorCount); 1006 1013 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE 1007 InsertConfigInteger(pCfg, "R0Enabled", fHWVirtExEnabled);1014 InsertConfigInteger(pCfg, "R0Enabled", fHWVirtExEnabled); 1008 1015 #endif 1009 1016 … … 1013 1020 BOOL fFadeIn; 1014 1021 hrc = biosSettings->COMGETTER(LogoFadeIn)(&fFadeIn); H(); 1015 InsertConfigInteger(pCfg, "FadeIn", fFadeIn ? 1 : 0);1022 InsertConfigInteger(pCfg, "FadeIn", fFadeIn ? 1 : 0); 1016 1023 BOOL fFadeOut; 1017 1024 hrc = biosSettings->COMGETTER(LogoFadeOut)(&fFadeOut); H(); 1018 InsertConfigInteger(pCfg, "FadeOut", fFadeOut ? 1: 0);1025 InsertConfigInteger(pCfg, "FadeOut", fFadeOut ? 1: 0); 1019 1026 ULONG logoDisplayTime; 1020 1027 hrc = biosSettings->COMGETTER(LogoDisplayTime)(&logoDisplayTime); H(); 1021 InsertConfigInteger(pCfg, "LogoTime", logoDisplayTime);1028 InsertConfigInteger(pCfg, "LogoTime", logoDisplayTime); 1022 1029 Bstr logoImagePath; 1023 1030 hrc = biosSettings->COMGETTER(LogoImagePath)(logoImagePath.asOutParam()); H(); … … 1064 1071 ulHeightReduction = 0; 1065 1072 } 1066 InsertConfigInteger(pCfg, "HeightReduction", ulHeightReduction);1073 InsertConfigInteger(pCfg, "HeightReduction", ulHeightReduction); 1067 1074 1068 1075 /* Attach the display. */ … … 1071 1078 InsertConfigNode(pLunL0, "Config", &pCfg); 1072 1079 Display *pDisplay = pConsole->mDisplay; 1073 InsertConfigInteger(pCfg, "Object", (uintptr_t)pDisplay);1080 InsertConfigInteger(pCfg, "Object", (uintptr_t)pDisplay); 1074 1081 1075 1082 … … 1094 1101 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 1095 1102 InsertConfigNode(pInst, "Config", &pBiosCfg); 1096 InsertConfigInteger(pBiosCfg, "RamSize", cbRam);1097 InsertConfigInteger(pBiosCfg, "RamHoleSize", cbRamHole);1098 InsertConfigInteger(pBiosCfg, "NumCPUs", cCpus);1103 InsertConfigInteger(pBiosCfg, "RamSize", cbRam); 1104 InsertConfigInteger(pBiosCfg, "RamHoleSize", cbRamHole); 1105 InsertConfigInteger(pBiosCfg, "NumCPUs", cCpus); 1099 1106 InsertConfigString(pBiosCfg, "HardDiskDevice", "piix3ide"); 1100 1107 InsertConfigString(pBiosCfg, "FloppyDevice", "i82078"); 1101 InsertConfigInteger(pBiosCfg, "IOAPIC", fIOAPIC);1102 InsertConfigInteger(pBiosCfg, "PXEDebug", fPXEDebug);1108 InsertConfigInteger(pBiosCfg, "IOAPIC", fIOAPIC); 1109 InsertConfigInteger(pBiosCfg, "PXEDebug", fPXEDebug); 1103 1110 InsertConfigBytes(pBiosCfg, "UUID", &HardwareUuid,sizeof(HardwareUuid)); 1104 InsertConfigNode(pBiosCfg, "NetBoot", &pNetBootCfg);1111 InsertConfigNode(pBiosCfg, "NetBoot", &pNetBootCfg); 1105 1112 1106 1113 DeviceType_T bootDevice; … … 1194 1201 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 1195 1202 InsertConfigNode(pInst, "Config", &pCfg); 1196 InsertConfigInteger(pCfg, "RamSize", cbRam);1197 InsertConfigInteger(pCfg, "RamHoleSize", cbRamHole);1198 InsertConfigInteger(pCfg, "NumCPUs", cCpus);1203 InsertConfigInteger(pCfg, "RamSize", cbRam); 1204 InsertConfigInteger(pCfg, "RamHoleSize", cbRamHole); 1205 InsertConfigInteger(pCfg, "NumCPUs", cCpus); 1199 1206 InsertConfigString(pCfg, "EfiRom", efiRomFile); 1200 1207 InsertConfigString(pCfg, "BootArgs", bootArgs); 1201 1208 InsertConfigString(pCfg, "DeviceProps", deviceProps); 1202 InsertConfigInteger(pCfg, "IOAPIC", fIOAPIC);1209 InsertConfigInteger(pCfg, "IOAPIC", fIOAPIC); 1203 1210 InsertConfigBytes(pCfg, "UUID", &HardwareUuid,sizeof(HardwareUuid)); 1204 InsertConfigInteger(pCfg, "64BitEntry", f64BitEntry); /* boolean */1205 InsertConfigInteger(pCfg, "GopMode", u32GopMode);1206 InsertConfigInteger(pCfg, "UgaHorizontalResolution", u32UgaHorisontal);1207 InsertConfigInteger(pCfg, "UgaVerticalResolution", u32UgaVertical);1211 InsertConfigInteger(pCfg, "64BitEntry", f64BitEntry); /* boolean */ 1212 InsertConfigInteger(pCfg, "GopMode", u32GopMode); 1213 InsertConfigInteger(pCfg, "UgaHorizontalResolution", u32UgaHorisontal); 1214 InsertConfigInteger(pCfg, "UgaVerticalResolution", u32UgaVertical); 1208 1215 1209 1216 /* For OS X guests we'll force passing host's DMI info to the guest */ … … 1272 1279 InsertConfigString(pLunL0, "Driver", "MainStatus"); 1273 1280 InsertConfigNode(pLunL0, "Config", &pCfg); 1274 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapStorageLeds[iLedScsi]);1275 InsertConfigInteger(pCfg, "First", 0);1281 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapStorageLeds[iLedScsi]); 1282 InsertConfigInteger(pCfg, "First", 0); 1276 1283 Assert(cLedScsi >= 16); 1277 InsertConfigInteger(pCfg, "Last", 15);1284 InsertConfigInteger(pCfg, "Last", 15); 1278 1285 paLedDevType = &pConsole->maStorageDevType[iLedScsi]; 1279 1286 break; … … 1291 1298 InsertConfigString(pLunL0, "Driver", "MainStatus"); 1292 1299 InsertConfigNode(pLunL0, "Config", &pCfg); 1293 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapStorageLeds[iLedScsi]);1294 InsertConfigInteger(pCfg, "First", 0);1300 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapStorageLeds[iLedScsi]); 1301 InsertConfigInteger(pCfg, "First", 0); 1295 1302 Assert(cLedScsi >= 16); 1296 InsertConfigInteger(pCfg, "Last", 15);1303 InsertConfigInteger(pCfg, "Last", 15); 1297 1304 paLedDevType = &pConsole->maStorageDevType[iLedScsi]; 1298 1305 break; … … 1335 1342 InsertConfigNode(pLunL0, "Config", &pCfg); 1336 1343 AssertRelease(cPorts <= cLedSata); 1337 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapStorageLeds[iLedSata]);1338 InsertConfigInteger(pCfg, "First", 0);1339 InsertConfigInteger(pCfg, "Last", cPorts - 1);1344 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapStorageLeds[iLedSata]); 1345 InsertConfigInteger(pCfg, "First", 0); 1346 InsertConfigInteger(pCfg, "Last", cPorts - 1); 1340 1347 paLedDevType = &pConsole->maStorageDevType[iLedSata]; 1341 1348 break; … … 1353 1360 afPciDeviceNo[1] = true; 1354 1361 InsertConfigInteger(pCtlInst, "PCIFunctionNo", 1); 1355 InsertConfigString(pCfg, "Type", controllerString(enmCtrlType));1362 InsertConfigString(pCfg, "Type", controllerString(enmCtrlType)); 1356 1363 1357 1364 /* Attach the status driver */ … … 1359 1366 InsertConfigString(pLunL0, "Driver", "MainStatus"); 1360 1367 InsertConfigNode(pLunL0, "Config", &pCfg); 1361 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapStorageLeds[iLedIde]);1362 InsertConfigInteger(pCfg, "First", 0);1368 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapStorageLeds[iLedIde]); 1369 InsertConfigInteger(pCfg, "First", 0); 1363 1370 Assert(cLedIde >= 4); 1364 InsertConfigInteger(pCfg, "Last", 3);1371 InsertConfigInteger(pCfg, "Last", 3); 1365 1372 paLedDevType = &pConsole->maStorageDevType[iLedIde]; 1366 1373 … … 1387 1394 InsertConfigString(pLunL0, "Driver", "MainStatus"); 1388 1395 InsertConfigNode(pLunL0, "Config", &pCfg); 1389 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapStorageLeds[iLedFloppy]);1390 InsertConfigInteger(pCfg, "First", 0);1396 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapStorageLeds[iLedFloppy]); 1397 InsertConfigInteger(pCfg, "First", 0); 1391 1398 Assert(cLedFloppy >= 1); 1392 InsertConfigInteger(pCfg, "Last", 0);1399 InsertConfigInteger(pCfg, "Last", 0); 1393 1400 paLedDevType = &pConsole->maStorageDevType[iLedFloppy]; 1394 1401 break; … … 1408 1415 InsertConfigString(pLunL0, "Driver", "MainStatus"); 1409 1416 InsertConfigNode(pLunL0, "Config", &pCfg); 1410 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapStorageLeds[iLedSas]);1411 InsertConfigInteger(pCfg, "First", 0);1417 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapStorageLeds[iLedSas]); 1418 InsertConfigInteger(pCfg, "First", 0); 1412 1419 Assert(cLedSas >= 8); 1413 InsertConfigInteger(pCfg, "Last", 7);1420 InsertConfigInteger(pCfg, "Last", 7); 1414 1421 paLedDevType = &pConsole->maStorageDevType[iLedSas]; 1415 1422 break; … … 1624 1631 InsertConfigString(pLunL0, "Driver", "MainStatus"); 1625 1632 InsertConfigNode(pLunL0, "Config", &pCfg); 1626 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapNetworkLeds[ulInstance]);1633 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapNetworkLeds[ulInstance]); 1627 1634 1628 1635 /* … … 1703 1710 InsertConfigString(pLunL1, "Driver", "NamedPipe"); 1704 1711 InsertConfigNode(pLunL1, "Config", &pLunL2); 1705 InsertConfigString(pLunL2, "Location", bstr);1712 InsertConfigString(pLunL2, "Location", bstr); 1706 1713 InsertConfigInteger(pLunL2, "IsServer", fServer); 1707 1714 } … … 1710 1717 InsertConfigString(pLunL0, "Driver", "Host Serial"); 1711 1718 InsertConfigNode(pLunL0, "Config", &pLunL1); 1712 InsertConfigString(pLunL1, "DevicePath", bstr);1719 InsertConfigString(pLunL1, "DevicePath", bstr); 1713 1720 } 1714 1721 else if (eHostMode == PortMode_RawFile) … … 1718 1725 InsertConfigString(pLunL1, "Driver", "RawFile"); 1719 1726 InsertConfigNode(pLunL1, "Config", &pLunL2); 1720 InsertConfigString(pLunL2, "Location", bstr);1727 InsertConfigString(pLunL2, "Location", bstr); 1721 1728 } 1722 1729 } … … 1747 1754 ULONG ulIOBase; 1748 1755 hrc = parallelPort->COMGETTER(IOBase)(&ulIOBase); H(); 1749 InsertConfigInteger(pCfg, "IOBase", ulIOBase);1756 InsertConfigInteger(pCfg, "IOBase", ulIOBase); 1750 1757 InsertConfigNode(pInst, "LUN#0", &pLunL0); 1751 1758 InsertConfigString(pLunL0, "Driver", "HostParallel"); … … 1777 1784 InsertConfigNode(pLunL0, "Config", &pCfg); 1778 1785 VMMDev *pVMMDev = pConsole->mVMMDev; 1779 InsertConfigInteger(pCfg, "Object", (uintptr_t)pVMMDev);1786 InsertConfigInteger(pCfg, "Object", (uintptr_t)pVMMDev); 1780 1787 1781 1788 /* … … 1785 1792 InsertConfigString(pLunL0, "Driver", "MainStatus"); 1786 1793 InsertConfigNode(pLunL0, "Config", &pCfg); 1787 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapSharedFolderLed);1788 InsertConfigInteger(pCfg, "First", 0);1789 InsertConfigInteger(pCfg, "Last", 0);1794 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapSharedFolderLed); 1795 InsertConfigInteger(pCfg, "First", 0); 1796 InsertConfigInteger(pCfg, "Last", 0); 1790 1797 1791 1798 /* … … 1801 1808 InsertConfigNode(pLunL0, "Config", &pCfg); 1802 1809 AudioSniffer *pAudioSniffer = pConsole->mAudioSniffer; 1803 InsertConfigInteger(pCfg, "Object", (uintptr_t)pAudioSniffer);1810 InsertConfigInteger(pCfg, "Object", (uintptr_t)pAudioSniffer); 1804 1811 1805 1812 /* … … 1838 1845 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 1839 1846 InsertConfigNode(pInst, "Config", &pCfg); 1840 InsertConfigInteger(pCfg, "IRQ", 5);1841 InsertConfigInteger(pCfg, "DMA", 1);1842 InsertConfigInteger(pCfg, "DMA16", 5);1843 InsertConfigInteger(pCfg, "Port", 0x220);1844 InsertConfigInteger(pCfg, "Version", 0x0405);1847 InsertConfigInteger(pCfg, "IRQ", 5); 1848 InsertConfigInteger(pCfg, "DMA", 1); 1849 InsertConfigInteger(pCfg, "DMA16", 5); 1850 InsertConfigInteger(pCfg, "Port", 0x220); 1851 InsertConfigInteger(pCfg, "Version", 0x0405); 1845 1852 break; 1846 1853 } … … 1957 1964 InsertConfigNode(pLunL0, "Config", &pCfg); 1958 1965 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapUSBLed[0]); 1959 InsertConfigInteger(pCfg, "First", 0);1960 InsertConfigInteger(pCfg, "Last", 0);1966 InsertConfigInteger(pCfg, "First", 0); 1967 InsertConfigInteger(pCfg, "Last", 0); 1961 1968 1962 1969 #ifdef VBOX_WITH_EHCI … … 1985 1992 InsertConfigNode(pLunL0, "Config", &pCfg); 1986 1993 InsertConfigInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapUSBLed[1]); 1987 InsertConfigInteger(pCfg, "First", 0);1988 InsertConfigInteger(pCfg, "Last", 0);1994 InsertConfigInteger(pCfg, "First", 0); 1995 InsertConfigInteger(pCfg, "Last", 0); 1989 1996 } 1990 1997 #endif … … 2027 2034 InsertConfigNode(pLunL1, "Config", &pCfg); 2028 2035 InsertConfigString(pCfg, "Type", "HardDisk"); 2029 InsertConfigInteger(pCfg, "Mountable", 0);2036 InsertConfigInteger(pCfg, "Mountable", 0); 2030 2037 2031 2038 InsertConfigNode(pLunL1, "AttachedDriver", &pLunL2); … … 2056 2063 InsertConfigString(pLunL0, "Driver", "MouseQueue"); 2057 2064 InsertConfigNode(pLunL0, "Config", &pCfg); 2058 InsertConfigInteger(pCfg, "QueueSize", 128);2065 InsertConfigInteger(pCfg, "QueueSize", 128); 2059 2066 2060 2067 InsertConfigNode(pLunL0, "AttachedDriver", &pLunL1); … … 2062 2069 InsertConfigNode(pLunL1, "Config", &pCfg); 2063 2070 pMouse = pConsole->mMouse; 2064 InsertConfigInteger(pCfg, "Object", (uintptr_t)pMouse);2071 InsertConfigInteger(pCfg, "Object", (uintptr_t)pMouse); 2065 2072 } 2066 2073 … … 2077 2084 InsertConfigString(pLunL0, "Driver", "KeyboardQueue"); 2078 2085 InsertConfigNode(pLunL0, "Config", &pCfg); 2079 InsertConfigInteger(pCfg, "QueueSize", 64);2086 InsertConfigInteger(pCfg, "QueueSize", 64); 2080 2087 2081 2088 InsertConfigNode(pLunL0, "AttachedDriver", &pLunL1); … … 2083 2090 InsertConfigNode(pLunL1, "Config", &pCfg); 2084 2091 pKeyboard = pConsole->mKeyboard; 2085 InsertConfigInteger(pCfg, "Object", (uintptr_t)pKeyboard);2092 InsertConfigInteger(pCfg, "Object", (uintptr_t)pKeyboard); 2086 2093 } 2087 2094 } … … 2233 2240 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 2234 2241 InsertConfigNode(pInst, "Config", &pCfg); 2235 InsertConfigInteger(pCfg, "RamSize", cbRam);2236 InsertConfigInteger(pCfg, "RamHoleSize", cbRamHole);2237 InsertConfigInteger(pCfg, "NumCPUs", cCpus);2238 2239 InsertConfigInteger(pCfg, "IOAPIC", fIOAPIC);2240 InsertConfigInteger(pCfg, "FdcEnabled", fFdcEnabled);2241 InsertConfigInteger(pCfg, "HpetEnabled", fHpetEnabled);2242 InsertConfigInteger(pCfg, "SmcEnabled", fSmcEnabled);2243 InsertConfigInteger(pCfg, "ShowRtc", fOsXGuest);2242 InsertConfigInteger(pCfg, "RamSize", cbRam); 2243 InsertConfigInteger(pCfg, "RamHoleSize", cbRamHole); 2244 InsertConfigInteger(pCfg, "NumCPUs", cCpus); 2245 2246 InsertConfigInteger(pCfg, "IOAPIC", fIOAPIC); 2247 InsertConfigInteger(pCfg, "FdcEnabled", fFdcEnabled); 2248 InsertConfigInteger(pCfg, "HpetEnabled", fHpetEnabled); 2249 InsertConfigInteger(pCfg, "SmcEnabled", fSmcEnabled); 2250 InsertConfigInteger(pCfg, "ShowRtc", fOsXGuest); 2244 2251 if (fOsXGuest && !llBootNics.empty()) 2245 2252 { … … 2248 2255 InsertConfigInteger(pCfg, "NicPciAddress", u32NicPciAddr); 2249 2256 } 2250 InsertConfigInteger(pCfg, "ShowCpu", fShowCpu);2251 InsertConfigInteger(pCfg, "CpuHotPlug", fCpuHotPlug);2257 InsertConfigInteger(pCfg, "ShowCpu", fShowCpu); 2258 InsertConfigInteger(pCfg, "CpuHotPlug", fCpuHotPlug); 2252 2259 InsertConfigInteger(pInst, "PCIDeviceNo", 7); 2253 2260 Assert(!afPciDeviceNo[7]);
Note:
See TracChangeset
for help on using the changeset viewer.