]> git.proxmox.com Git - mirror_qemu.git/commit
cryptodev: Account statistics
authorzhenwei pi <pizhenwei@bytedance.com>
Wed, 1 Mar 2023 10:58:44 +0000 (18:58 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Mar 2023 17:38:59 +0000 (12:38 -0500)
commite7a775fd9fc08550c4525bc331b1cda342b459dd
tree1b014379f12fd4f972b94414a1fb2667a9e958c2
parent2cb0692768c2d29333a6ad89fd081c97562bd899
cryptodev: Account statistics

Account OPS/BPS for crypto device, this will be used for 'query-stats'
QEMU monitor command and QoS in the next step.

Note that a crypto device may support symmetric mode, asymmetric mode,
both symmetric and asymmetric mode. So we use two structure to
describe the statistics of a crypto device.

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id: <20230301105847.253084-10-pizhenwei@bytedance.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
backends/cryptodev.c
include/sysemu/cryptodev.h