mbox series

[0/5] Misc fixes for throttle

Message ID 20230625085631.372238-1-pizhenwei@bytedance.com
Headers show
Series Misc fixes for throttle | expand

Message

zhenwei pi June 25, 2023, 8:56 a.m. UTC
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(-)