diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-03-10 13:39:55 +0100 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 20:01:34 -0600 |
commit | 0231c2e38d39ac8df46036136a12f5f1fea25d3b (patch) | |
tree | 8f3d4110039ffc6c8a12ecefb02323bd3aaf46a2 /include/block/block_int.h | |
parent | 1fc674c72f691021202dbddf2b800c64fc72ae60 (diff) | |
download | hqemu-0231c2e38d39ac8df46036136a12f5f1fea25d3b.zip hqemu-0231c2e38d39ac8df46036136a12f5f1fea25d3b.tar.gz |
block: Introduce bdrv_co_writev_flags()
This function will allow drivers to implement BDRV_REQ_FUA natively
instead of sending a separate flush after the write.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block/block_int.h')
-rw-r--r-- | include/block/block_int.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index 4884609..10d8759 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -155,6 +155,11 @@ struct BlockDriver { int64_t sector_num, int nb_sectors, QEMUIOVector *qiov); int coroutine_fn (*bdrv_co_writev)(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov); + int coroutine_fn (*bdrv_co_writev_flags)(BlockDriverState *bs, + int64_t sector_num, int nb_sectors, QEMUIOVector *qiov, int flags); + + int supported_write_flags; + /* * Efficiently zero a region of the disk image. Typically an image format * would use a compact metadata representation to implement this. This |