diff options
| author | zhenwei pi <pizhenwei@bytedance.com> | 2023-07-28 10:20:00 +0800 |
|---|---|---|
| committer | Hanna Czenczek <hreitz@redhat.com> | 2023-08-29 10:49:24 +0200 |
| commit | d85b08c6e27d796dbb653b8ae9584080361c1498 (patch) | |
| tree | 62dc1302719515bedc05930a114af33012d981ee /backends/cryptodev.c | |
| parent | 1322f63df52e23ecf47cc9a5842ec3099c517183 (diff) | |
| download | focaccia-qemu-d85b08c6e27d796dbb653b8ae9584080361c1498.tar.gz focaccia-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 'backends/cryptodev.c')
0 files changed, 0 insertions, 0 deletions