]> Git Repo - qemu.git/commit - qapi/block-core.json
block: add throttle block filter driver
authorManos Pitsidianakis <[email protected]>
Fri, 25 Aug 2017 13:20:27 +0000 (16:20 +0300)
committerKevin Wolf <[email protected]>
Wed, 6 Sep 2017 08:12:02 +0000 (10:12 +0200)
commitd8e7d87ec49c1458f516d50d109b3f201da736a1
tree79513899899eac436824afc1108b64953acc0cc7
parent432d889e55e2614bd0e8bb559af18a61ac217565
block: add throttle block filter driver

block/throttle.c uses existing I/O throttle infrastructure inside a
block filter driver. I/O operations are intercepted in the filter's
read/write coroutines, and referred to block/throttle-groups.c

The driver can be used with the syntax
-drive driver=throttle,file.filename=foo.qcow2,throttle-group=bar

which registers the throttle filter node with the ThrottleGroup 'bar'. The
given group must be created beforehand with object-add or -object.

Reviewed-by: Alberto Garcia <[email protected]>
Signed-off-by: Manos Pitsidianakis <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/Makefile.objs
block/throttle-groups.c
block/throttle.c [new file with mode: 0644]
include/block/throttle-groups.h
include/qemu/throttle-options.h
qapi/block-core.json
This page took 0.027231 seconds and 4 git commands to generate.