All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Misc fixes for throttle
@ 2023-06-27  7:24 zhenwei pi
  2023-06-27  7:24 ` [PATCH v2 1/5] throttle: introduce enum ThrottleType zhenwei pi
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: zhenwei pi @ 2023-06-27  7:24 UTC (permalink / raw)
  To: berto; +Cc: arei.gonglei, qemu-devel, qemu-block, berrange, zhenwei pi

v1 -> v2:
- rename 'ThrottleTimerType' to 'ThrottleType'
- add assertion to throttle_schedule_timer

Something remained:
- 'bool is_write' is no longer appropriate, the related functions
  need to use 'ThrottleType throttle' instead. To avoid changes from
  other subsystems in this series, do this work in a followup series
  after there patches apply.


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 ThrottleType
  test-throttle: use enum ThrottleType
  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    | 11 ++++--
 tests/unit/test-throttle.c | 72 ++++++++++++++++++++++++++++++++++++--
 util/throttle.c            | 36 +++++++++++++------
 4 files changed, 103 insertions(+), 19 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-07-11  0:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-27  7:24 [PATCH v2 0/5] Misc fixes for throttle zhenwei pi
2023-06-27  7:24 ` [PATCH v2 1/5] throttle: introduce enum ThrottleType zhenwei pi
2023-07-03 10:26   ` Alberto Garcia
2023-06-27  7:24 ` [PATCH v2 2/5] test-throttle: use " zhenwei pi
2023-07-03 10:26   ` Alberto Garcia
2023-06-27  7:24 ` [PATCH v2 3/5] throttle: support read-only and write-only zhenwei pi
2023-07-03 10:28   ` Alberto Garcia
2023-06-27  7:24 ` [PATCH v2 4/5] test-throttle: test read only and write only zhenwei pi
2023-07-03 10:31   ` Alberto Garcia
2023-06-27  7:24 ` [PATCH v2 5/5] cryptodev: use NULL throttle timer cb for read direction zhenwei pi
2023-07-03 10:28   ` Alberto Garcia
2023-07-11  0:29 ` PING: [PATCH v2 0/5] Misc fixes for throttle zhenwei pi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.