aboutsummaryrefslogtreecommitdiff
path: root/include/block
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-01-17 00:46:50 +0300
committerMax Reitz <mreitz@redhat.com>2021-01-26 14:36:37 +0100
commite0323a045f5929721c9f4b7437229f1dbdc5b5e5 (patch)
treea332de02f1c555f36d22d533b56296ef963c85b0 /include/block
parenta6d23d56df06027acb1202e64316b00d0c05aa75 (diff)
downloadqemu-e0323a045f5929721c9f4b7437229f1dbdc5b5e5.zip
qemu-e0323a045f5929721c9f4b7437229f1dbdc5b5e5.tar.gz
qemu-e0323a045f5929721c9f4b7437229f1dbdc5b5e5.tar.bz2
blockjob: add set_speed to BlockJobDriver
We are going to use async block-copy call in backup, so we'll need to passthrough setting backup speed to block-copy call. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20210116214705.822267-9-vsementsov@virtuozzo.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/blockjob_int.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/block/blockjob_int.h b/include/block/blockjob_int.h
index e2824a3..6633d83 100644
--- a/include/block/blockjob_int.h
+++ b/include/block/blockjob_int.h
@@ -52,6 +52,8 @@ struct BlockJobDriver {
* besides job->blk to the new AioContext.
*/
void (*attached_aio_context)(BlockJob *job, AioContext *new_context);
+
+ void (*set_speed)(BlockJob *job, int64_t speed);
};
/**