diff options
author | 2023-07-28 10:20:00 +0800 | |
---|---|---|
committer | 2023-08-29 10:49:24 +0200 | |
commit | d85b08c6e27d796dbb653b8ae9584080361c1498 (patch) | |
tree | 62dc1302719515bedc05930a114af33012d981ee /scripts/qapi/source.py | |
parent | test-throttle: use enum ThrottleDirection (diff) | |
download | qemu-d85b08c6e27d796dbb653b8ae9584080361c1498.tar.xz qemu-d85b08c6e27d796dbb653b8ae9584080361c1498.zip |
throttle: support read-only and write-only
Only one direction is necessary in several scenarios:
- a read-only disk
- operations on a device are considered as *write* only. For example,
encrypt/decrypt/sign/verify operations on a cryptodev use a single
*write* timer(read timer callback is defined, but never invoked).
Allow a single direction in throttle, this reduces memory, and uplayer
does not need a dummy callback any more.
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id: <20230728022006.1098509-4-pizhenwei@bytedance.com>
Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions