virtio: Notice when the system doesn't support MSIx at all
[qemu/ar7.git] / include / block / throttle-groups.h
blobfab113f6d136e38997e91bb3718e884d3b3ef2b3
1 /*
2 * QEMU block throttling group infrastructure
4 * Copyright (C) Nodalink, EURL. 2014
5 * Copyright (C) Igalia, S.L. 2015
7 * Authors:
8 * BenoƮt Canet <benoit.canet@nodalink.com>
9 * Alberto Garcia <berto@igalia.com>
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 or
14 * (at your option) version 3 of the License.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, see <http://www.gnu.org/licenses/>.
25 #ifndef THROTTLE_GROUPS_H
26 #define THROTTLE_GROUPS_H
28 #include "qemu/throttle.h"
29 #include "block/block_int.h"
31 const char *throttle_group_get_name(BlockDriverState *bs);
33 void throttle_group_config(BlockDriverState *bs, ThrottleConfig *cfg);
34 void throttle_group_get_config(BlockDriverState *bs, ThrottleConfig *cfg);
36 void throttle_group_register_bs(BlockDriverState *bs, const char *groupname);
37 void throttle_group_unregister_bs(BlockDriverState *bs);
39 void coroutine_fn throttle_group_co_io_limits_intercept(BlockDriverState *bs,
40 unsigned int bytes,
41 bool is_write);
43 void throttle_group_lock(BlockDriverState *bs);
44 void throttle_group_unlock(BlockDriverState *bs);
46 #endif