block: throttle-groups: Use BlockBackend pointers internally
commit31dce3ccca98bc9f9eb57f8b08b008edd07661ba
authorKevin Wolf <kwolf@redhat.com>
Mon, 21 Mar 2016 10:30:57 +0000 (21 11:30 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 May 2016 14:45:29 +0000 (19 16:45 +0200)
treedc0e381967d0135f1bc11beae16efc6b1391c31c
parentf2cd875d54e95f87a4c994cfef082f09b4953aa9
block: throttle-groups: Use BlockBackend pointers internally

As a first step towards moving I/O throttling to the BlockBackend level,
this patch changes all pointers in struct ThrottleGroup from referencing
a BlockDriverState to referencing a BlockBackend.

This change is valid because we made sure that throttling can only be
enabled on BDSes which have a BB attached.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
block/io.c
block/throttle-groups.c
include/block/block_int.h
include/block/throttle-groups.h
include/sysemu/block-backend.h
tests/test-throttle.c