VirtualBox

Changeset 35162 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Dec 15, 2010 7:39:54 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68999
Message:

BlkCache: Fix possible crash during suspend of the VM. The cache must be suspended before making the disk readonly to make sure all I/O completed

File:
1 edited

Legend:

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

    r34219 r35162  
    310310 */
    311311VMMR3DECL(void) PDMR3BlkCacheIoXferComplete(PPDMBLKCACHE pBlkCache, PPDMBLKCACHEIOXFER hIoXfer, int rcIoXfer);
     312
     313/**
     314 * Suspends the block cache. The cache waits until all I/O transfers completed
     315 * and stops to enqueue new requests after the call returned but will not accept
     316 * reads, write or flushes either.
     317 *
     318 * @returns VBox status code.
     319 * @param   pBlkCache       The cache instance.
     320 */
     321VMMR3DECL(int) PDMR3BlkCacheSuspend(PPDMBLKCACHE pBlkCache);
     322
     323/**
     324 * Resumes operation of the block cache.
     325 *
     326 * @returns VBox status code.
     327 * @param   pBlkCache       The cache instance.
     328 */
     329VMMR3DECL(int) PDMR3BlkCacheResume(PPDMBLKCACHE pBlkCache);
     330
    312331/** @} */
    313332
Note: See TracChangeset for help on using the changeset viewer.

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