Changeset 34434 in vbox
- Timestamp:
- Nov 27, 2010 11:20:37 AM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r34433 r34434 372 372 fFlags |= PDMACEP_FILE_FLAGS_DONT_LOCK; 373 373 } 374 #if 0 374 375 else 375 376 fFlags |= PDMACEP_FILE_FLAGS_CACHING; 377 #endif 376 378 rc = PDMR3AsyncCompletionEpCreateForFile(&pStorageBackend->pEndpoint, 377 379 pszLocation, fFlags, -
trunk/src/VBox/Main/ConsoleImpl.cpp
r34403 r34434 3401 3401 fUseHostIOCache, 3402 3402 false /* fSetupMerge */, 3403 false /* fBuiltinIoCache */, 3403 3404 0 /* uMergeSource */, 3404 3405 0 /* uMergeTarget */, … … 4555 4556 } 4556 4557 4558 BOOL fBuiltinIoCache; 4559 rc = mMachine->COMGETTER(IoCacheEnabled)(&fBuiltinIoCache); 4560 AssertComRC(rc); 4557 4561 SafeIfaceArray<IStorageController> ctrls; 4558 4562 rc = mMachine->COMGETTER(StorageControllers)(ComSafeArrayAsOutParam(ctrls)); … … 4630 4634 VMCPUID_ANY, 4631 4635 (PFNRT)reconfigureMediumAttachment, 4632 1 2,4636 13, 4633 4637 this, 4634 4638 pVM, … … 4637 4641 enmBus, 4638 4642 fUseHostIOCache, 4643 fBuiltinIoCache, 4639 4644 true /* fSetupMerge */, 4640 4645 aSourceIdx, … … 4705 4710 VMCPUID_ANY, 4706 4711 (PFNRT)reconfigureMediumAttachment, 4707 1 2,4712 13, 4708 4713 this, 4709 4714 pVM, … … 4712 4717 enmBus, 4713 4718 fUseHostIOCache, 4719 fBuiltinIoCache, 4714 4720 false /* fSetupMerge */, 4715 4721 0 /* uMergeSource */, … … 7894 7900 StorageBus_T enmBus, 7895 7901 bool fUseHostIOCache, 7902 bool fBuiltinIoCache, 7896 7903 bool fSetupMerge, 7897 7904 unsigned uMergeSource, … … 7928 7935 enmBus, 7929 7936 fUseHostIOCache, 7937 fBuiltinIoCache, 7930 7938 fSetupMerge, 7931 7939 uMergeSource, … … 8105 8113 const char *pcszDevice = Console::convertControllerTypeToDev(enmController); 8106 8114 8115 BOOL fBuiltinIoCache; 8116 rc = that->mMachine->COMGETTER(IoCacheEnabled)(&fBuiltinIoCache); 8117 if (FAILED(rc)) 8118 throw rc; 8119 8107 8120 /* 8108 8121 * don't leave the lock since reconfigureMediumAttachment … … 8112 8125 VMCPUID_ANY, 8113 8126 (PFNRT)reconfigureMediumAttachment, 8114 1 2,8127 13, 8115 8128 that, 8116 8129 that->mpVM, … … 8119 8132 enmBus, 8120 8133 fUseHostIOCache, 8134 fBuiltinIoCache, 8121 8135 false /* fSetupMerge */, 8122 8136 0 /* uMergeSource */, -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r34426 r34434 796 796 797 797 /* 798 * I/O settings (cache, max bandwidth, ...). 799 */ 800 PCFGMNODE pPDMAc; 801 PCFGMNODE pPDMAcFile; 802 InsertConfigNode(pPDM, "AsyncCompletion", &pPDMAc); 803 InsertConfigNode(pPDMAc, "File", &pPDMAcFile); 804 805 /* Builtin I/O cache */ 806 BOOL fIoCache = true; 807 hrc = pMachine->COMGETTER(IoCacheEnabled)(&fIoCache); H(); 808 InsertConfigInteger(pPDMAcFile, "CacheEnabled", fIoCache); 798 * Block cache settings. 799 */ 800 PCFGMNODE pPDMBlkCache; 801 InsertConfigNode(pPDM, "BlkCache", &pPDMBlkCache); 809 802 810 803 /* I/O cache size */ 811 804 ULONG ioCacheSize = 5; 812 805 hrc = pMachine->COMGETTER(IoCacheSize)(&ioCacheSize); H(); 813 InsertConfigInteger(pPDM AcFile, "CacheSize", ioCacheSize * _1M);806 InsertConfigInteger(pPDMBlkCache, "CacheSize", ioCacheSize * _1M); 814 807 815 808 /* … … 1464 1457 ComSafeArrayAsOutParam(atts)); H(); 1465 1458 1459 /* Builtin I/O cache - per device setting. */ 1460 BOOL fBuiltinIoCache = true; 1461 hrc = pMachine->COMGETTER(IoCacheEnabled)(&fBuiltinIoCache); H(); 1462 1463 1466 1464 for (size_t j = 0; j < atts.size(); ++j) 1467 1465 { … … 1471 1469 enmBus, 1472 1470 !!fUseHostIOCache, 1471 !!fBuiltinIoCache, 1473 1472 false /* fSetupMerge */, 1474 1473 0 /* uMergeSource */, … … 2581 2580 StorageBus_T enmBus, 2582 2581 bool fUseHostIOCache, 2582 bool fBuiltinIoCache, 2583 2583 bool fSetupMerge, 2584 2584 unsigned uMergeSource, … … 2852 2852 lType, 2853 2853 fUseHostIOCache, 2854 fBuiltinIoCache, 2854 2855 fSetupMerge, 2855 2856 uMergeSource, … … 2891 2892 DeviceType_T enmType, 2892 2893 bool fUseHostIOCache, 2894 bool fBuiltinIoCache, 2893 2895 bool fSetupMerge, 2894 2896 unsigned uMergeSource, … … 3059 3061 { 3060 3062 InsertConfigInteger(pCfg, "UseNewIo", 1); 3063 if (fBuiltinIoCache) 3064 InsertConfigInteger(pCfg, "BlockCache", 1); 3061 3065 } 3062 3066 -
trunk/src/VBox/Main/include/ConsoleImpl.h
r34397 r34434 463 463 StorageBus_T enmBus, 464 464 bool fUseHostIOCache, 465 bool fBuiltinIoCache, 465 466 bool fSetupMerge, 466 467 unsigned uMergeSource, … … 477 478 DeviceType_T enmType, 478 479 bool fUseHostIOCache, 480 bool fBuiltinIoCache, 479 481 bool fSetupMerge, 480 482 unsigned uMergeSource, … … 489 491 StorageBus_T enmBus, 490 492 bool fUseHostIOCache, 493 bool fBuiltinIoCache, 491 494 bool fSetupMerge, 492 495 unsigned uMergeSource,
Note:
See TracChangeset
for help on using the changeset viewer.