diff options
| author | Fam Zheng | 2018-06-01 11:26:47 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2018-06-01 15:41:48 +0200 |
| commit | b5679fa49c9a70efa7bf01f6efad1a65e2349a0b (patch) | |
| tree | 270d5585f5eb8e9f5928bd90ad36d5f8be691364 /include | |
| parent | iscsi: Implement copy offloading (diff) | |
| download | qemu-b5679fa49c9a70efa7bf01f6efad1a65e2349a0b.tar.gz qemu-b5679fa49c9a70efa7bf01f6efad1a65e2349a0b.tar.xz qemu-b5679fa49c9a70efa7bf01f6efad1a65e2349a0b.zip | |
block-backend: Add blk_co_copy_range
It's a BlockBackend wrapper of the BDS interface.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20180601092648.24614-10-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sysemu/block-backend.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index 92ab624fac..8d03d493c2 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -232,4 +232,8 @@ void blk_set_force_allow_inactivate(BlockBackend *blk); void blk_register_buf(BlockBackend *blk, void *host, size_t size); void blk_unregister_buf(BlockBackend *blk, void *host); +int coroutine_fn blk_co_copy_range(BlockBackend *blk_in, int64_t off_in, + BlockBackend *blk_out, int64_t off_out, + int bytes, BdrvRequestFlags flags); + #endif |
