diff options
| author | Kevin Wolf | 2019-05-06 19:18:02 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2019-05-20 17:08:56 +0200 |
| commit | 980b0f943aad9240f276d7e48e2cf92ae4eb61ca (patch) | |
| tree | 2514fc8e267e82cfc81e8f3c9ffa1923b1cf2f8c /include | |
| parent | block: Implement .(can_)set_aio_ctx for BlockBackend (diff) | |
| download | qemu-980b0f943aad9240f276d7e48e2cf92ae4eb61ca.tar.gz qemu-980b0f943aad9240f276d7e48e2cf92ae4eb61ca.tar.xz qemu-980b0f943aad9240f276d7e48e2cf92ae4eb61ca.zip | |
block: Add blk_set_allow_aio_context_change()
Some users (like block jobs) can tolerate an AioContext change for their
BlockBackend. Add a function that tells the BlockBackend that it can
allow changes.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sysemu/block-backend.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index 5be6224226..938de34fe9 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -103,6 +103,7 @@ int blk_set_perm(BlockBackend *blk, uint64_t perm, uint64_t shared_perm, void blk_get_perm(BlockBackend *blk, uint64_t *perm, uint64_t *shared_perm); void blk_set_allow_write_beyond_eof(BlockBackend *blk, bool allow); +void blk_set_allow_aio_context_change(BlockBackend *blk, bool allow); void blk_iostatus_enable(BlockBackend *blk); bool blk_iostatus_is_enabled(const BlockBackend *blk); BlockDeviceIoStatus blk_iostatus(const BlockBackend *blk); |
