VirtualBox

Changeset 34219 in vbox


Ignore:
Timestamp:
Nov 21, 2010 6:10:39 PM (14 years ago)
Author:
vboxsync
Message:

PDM/BlockCache: First part for #5295, move the writeback cache into a separate component

Location:
trunk
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/log.h

    r32536 r34219  
    252252    /** PDM Async completion group. */
    253253    LOG_GROUP_PDM_ASYNC_COMPLETION,
     254    /** PDM Block cache group. */
     255    LOG_GROUP_PDM_BLK_CACHE,
    254256    /** PDM Device group. */
    255257    LOG_GROUP_PDM_DEVICE,
     
    459461    "PDM",          \
    460462    "PDM_ASYNC_COMPLETION", \
     463    "PDM_BLK_CACHE", \
    461464    "PDM_DEVICE",   \
    462465    "PDM_DRIVER",   \
  • trunk/src/VBox/VMM/Makefile.kmk

    r33935 r34219  
    167167        PATM/PATMA.asm \
    168168        PATM/PATMSSM.cpp \
    169         PATM/VMMAll/PATMAll.cpp
     169        PATM/VMMAll/PATMAll.cpp \
     170        PDMBlkCache.cpp
    170171ifdef VBOX_WITH_VUSB
    171172 VMMR3_SOURCES += PDMUsb.cpp
  • trunk/src/VBox/VMM/PDM.cpp

    r33595 r34219  
    344344#endif
    345345    if (RT_SUCCESS(rc))
     346        rc = pdmR3BlkCacheInit(pVM);
     347    if (RT_SUCCESS(rc))
    346348        rc = pdmR3DrvInit(pVM);
    347349    if (RT_SUCCESS(rc))
     
    606608    pdmR3ThreadDestroyAll(pVM);
    607609
     610    /*
     611     * Destroy the block cache.
     612     */
     613    pdmR3BlkCacheTerm(pVM);
     614
    608615#ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
    609616    /*
  • trunk/src/VBox/VMM/PDMDriver.cpp

    r34207 r34219  
    660660        AssertRC(rc);
    661661
     662        /* Block caches. */
     663        PDMR3BlkCacheReleaseDriver(pVM, pCur);
     664
    662665        /* Finally, the driver it self. */
    663666        bool fHyperHeap = pCur->Internal.s.fHyperHeap;
  • trunk/src/VBox/VMM/PDMInternal.h

    r33540 r34219  
    2525#include <VBox/vusb.h>
    2626#include <VBox/pdmasynccompletion.h>
     27#include <VBox/pdmblkcache.h>
    2728#include <VBox/pdmcommon.h>
    2829#include <iprt/assert.h>
     
    914915typedef struct PDMASYNCCOMPLETIONEPCLASS *PPDMASYNCCOMPLETIONEPCLASS;
    915916
     917/** Pointer to the global block cache structure. */
     918typedef struct PDMBLKCACHEGLOBAL *PPDMBLKCACHEGLOBAL;
    916919
    917920/**
     
    10521055    /** @} */
    10531056
     1057    R3PTRTYPE(PPDMBLKCACHEGLOBAL)   pBlkCacheGlobal;
     1058
    10541059} PDMUSERPERVM;
    10551060/** Pointer to the PDM data kept in the UVM. */
     
    11631168#endif
    11641169
     1170int         pdmR3BlkCacheInit(PVM pVM);
     1171void        pdmR3BlkCacheTerm(PVM pVM);
     1172
    11651173#endif /* IN_RING3 */
    11661174
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette