Hi, v1: - introduce enum ThrottleTimerType instead of timers[0], timer[1]... - support read-only and write-only for throttle - adapt related test codes - cryptodev uses a write-only throttle timer
Zhenwei Pi (5): throttle: introduce enum ThrottleTimerType test-throttle: use enum ThrottleTimerType throttle: support read-only and write-only test-throttle: test read only and write only cryptodev: use NULL throttle timer cb for read direction backends/cryptodev.c | 3 +- include/qemu/throttle.h | 12 +++++-- tests/unit/test-throttle.c | 72 ++++++++++++++++++++++++++++++++++++-- util/throttle.c | 28 ++++++++++----- 4 files changed, 98 insertions(+), 17 deletions(-) -- 2.34.1