]> git.proxmox.com Git - qemu.git/blobdiff - block_int.h
block: Introduce bdrv_co_flush_to_os
[qemu.git] / block_int.h
index 5aadc1fceeb002f34c8efc7191cd12bc54f9cc96..1ec4921cc6f48e65fd4d8af6ebac2e10e5203fa3 100644 (file)
@@ -93,6 +93,13 @@ struct BlockDriver {
      */
     int coroutine_fn (*bdrv_co_flush_to_disk)(BlockDriverState *bs);
 
+    /*
+     * Flushes all internal caches to the OS. The data may still sit in a
+     * writeback cache of the host OS, but it will survive a crash of the qemu
+     * process.
+     */
+    int coroutine_fn (*bdrv_co_flush_to_os)(BlockDriverState *bs);
+
     int (*bdrv_aio_multiwrite)(BlockDriverState *bs, BlockRequest *reqs,
         int num_reqs);
     int (*bdrv_merge_requests)(BlockDriverState *bs, BlockRequest* a,