summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorPaolo Bonzini2021-06-14 10:11:26 +0200
committerVladimir Sementsov-Ogievskiy2021-06-25 13:22:21 +0200
commit720507ed95023e45620f305767d12cd716e8b8ca (patch)
treed0c3a997b280da8eab6df328309e993912294ca7 /python
parentMerge remote-tracking branch 'remotes/kraxel/tags/ui-20210624-pull-request' i... (diff)
downloadqemu-720507ed95023e45620f305767d12cd716e8b8ca.tar.gz
qemu-720507ed95023e45620f305767d12cd716e8b8ca.tar.xz
qemu-720507ed95023e45620f305767d12cd716e8b8ca.zip
ratelimit: treat zero speed as unlimited
Both users of RateLimit, block-copy.c and blockjob.c, treat a speed of zero as unlimited, while RateLimit treats it as "as slow as possible". The latter is nicer from the code point of view but pretty useless, so disable rate limiting if a speed of zero is provided. Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Message-Id: <20210614081130.22134-2-eesposit@redhat.com> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions