]> git.proxmox.com Git - qemu.git/commit
block: rate-limit streaming operations
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 18 Jan 2012 14:40:45 +0000 (14:40 +0000)
committerKevin Wolf <kwolf@redhat.com>
Thu, 26 Jan 2012 10:45:26 +0000 (11:45 +0100)
commit5094a6c016f6e7a4fc800816d716e10ce2331396
tree5e4bf84bc906e65691479f910e3bdb3a71bd0a45
parent4f1043b4ffdd6f130cab7c1d8d59d833a475adac
block: rate-limit streaming operations

This patch implements rate-limiting for image streaming.  If we've
exceeded the bandwidth quota for a 100 ms time slice we sleep the
coroutine until the next slice begins.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/stream.c