mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-12 03:49:27 -07:00
cryptodev: support QoS
Add 'throttle-bps' and 'throttle-ops' limitation to set QoS. The two arguments work with both QEMU command line and QMP command. Example of QEMU command line: -object cryptodev-backend-builtin,id=cryptodev1,throttle-bps=1600,\ throttle-ops=100 Example of QMP command: virsh qemu-monitor-command buster --hmp qom-set /objects/cryptodev1 \ throttle-ops 100 or cancel limitation: virsh qemu-monitor-command buster --hmp qom-set /objects/cryptodev1 \ throttle-ops 0 Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: zhenwei pi <pizhenwei@bytedance.com> Message-Id: <20230301105847.253084-11-pizhenwei@bytedance.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
e7a775fd9f
commit
2580b452ff
3 changed files with 152 additions and 1 deletions
|
|
@ -278,10 +278,16 @@
|
|||
# cryptodev-backend and must be 1 for cryptodev-backend-builtin.
|
||||
# (default: 1)
|
||||
#
|
||||
# @throttle-bps: limit total bytes per second (Since 8.0)
|
||||
#
|
||||
# @throttle-ops: limit total operations per second (Since 8.0)
|
||||
#
|
||||
# Since: 2.8
|
||||
##
|
||||
{ 'struct': 'CryptodevBackendProperties',
|
||||
'data': { '*queues': 'uint32' } }
|
||||
'data': { '*queues': 'uint32',
|
||||
'*throttle-bps': 'uint64',
|
||||
'*throttle-ops': 'uint64' } }
|
||||
|
||||
##
|
||||
# @CryptodevVhostUserProperties:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue