qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 10/12] cryptodev: support QoS


From: Daniel P . Berrangé
Subject: Re: [PATCH v5 10/12] cryptodev: support QoS
Date: Wed, 1 Mar 2023 09:45:49 +0000
User-agent: Mutt/2.2.9 (2022-11-12)

On Wed, Mar 01, 2023 at 10:51:22AM +0800, zhenwei pi wrote:
> 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
> 
> Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
> ---
>  backends/cryptodev.c       | 138 +++++++++++++++++++++++++++++++++++++
>  include/sysemu/cryptodev.h |   7 ++
>  qapi/qom.json              |   8 ++-
>  3 files changed, 152 insertions(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




reply via email to

[Prev in Thread] Current Thread [Next in Thread]