]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-options.hx
throttle: Add throttle group support
authorAlberto Garcia <berto@igalia.com>
Mon, 8 Jun 2015 16:17:44 +0000 (18:17 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 12 Jun 2015 13:00:00 +0000 (14:00 +0100)
commit76f4afb40fa076ed23fe0ab42c7a768ddb71123f
tree38d8b57c8c56a457a060866197d03d537653c2a3
parent1fee955f9cc5903b3c7f79bbd90929aefad583a6
throttle: Add throttle group support

The throttle group support use a cooperative round robin scheduling
algorithm.

The principles of the algorithm are simple:
- Each BDS of the group is used as a token in a circular way.
- The active BDS computes if a wait must be done and arms the right
  timer.
- If a wait must be done the token timer will be armed so the token
  will become the next active BDS.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: f0082a86f3ac01c46170f7eafe2101a92e8fde39.1433779731.git.berto@igalia.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
12 files changed:
block.c
block/io.c
block/qapi.c
block/throttle-groups.c
blockdev.c
hmp.c
include/block/block.h
include/block/block_int.h
include/block/throttle-groups.h
qapi/block-core.json
qemu-options.hx
qmp-commands.hx