Changeset 36003 in vbox for trunk/src/VBox/Devices/Storage/DrvVD.cpp
- Timestamp:
- Feb 16, 2011 9:22:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r35353 r36003 191 191 /** Bandwidth group the disk is assigned to. */ 192 192 char *pszBwGroup; 193 /** Flag whether async I/O using the host cache is enabled. */ 194 bool fAsyncIoWithHostCache; 193 195 194 196 /** I/O interface for a cache image. */ … … 372 374 fFlags |= PDMACEP_FILE_FLAGS_DONT_LOCK; 373 375 } 376 if (pThis->fAsyncIoWithHostCache) 377 fFlags |= PDMACEP_FILE_FLAGS_HOST_CACHE_ENABLED; 374 378 375 379 rc = PDMR3AsyncCompletionEpCreateForFile(&pStorageBackend->pEndpoint, … … 2378 2382 pThis->VDITcpNetCallbacks.pfnPoke = drvvdINIPPoke; 2379 2383 #endif /* VBOX_WITH_INIP */ 2384 } 2385 2386 /* 2387 * The image has a bandwidth group but the host cache is enabled. 2388 * Use the async I/O framework but tell it to enable the host cache. 2389 */ 2390 if (!fUseNewIo && pThis->pszBwGroup) 2391 { 2392 pThis->fAsyncIoWithHostCache = true; 2393 fUseNewIo = true; 2380 2394 } 2381 2395
Note:
See TracChangeset
for help on using the changeset viewer.