cryptodev: Introduce cryptodev alg type in QAPI
Introduce cryptodev alg type in cryptodev.json, then apply this to related codes, and drop 'enum CryptoDevBackendAlgType'. There are two options: 1, { 'enum': 'QCryptodevBackendAlgType', 'prefix': 'CRYPTODEV_BACKEND_ALG', 'data': ['sym', 'asym']} Then we can keep 'CRYPTODEV_BACKEND_ALG_SYM' and avoid lots of changes. 2, changes in this patch(with prefix 'QCRYPTODEV_BACKEND_ALG'). To avoid breaking the rule of QAPI, use 2 here. Reviewed-by:Daniel P. Berrangé <berrange@redhat.com> Signed-off-by:
zhenwei pi <pizhenwei@bytedance.com> Message-Id: <20230301105847.253084-4-pizhenwei@bytedance.com> Reviewed-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Michael S. Tsirkin <mst@redhat.com>
Showing
- backends/cryptodev-builtin.c 3 additions, 3 deletionsbackends/cryptodev-builtin.c
- backends/cryptodev-lkcf.c 2 additions, 2 deletionsbackends/cryptodev-lkcf.c
- backends/cryptodev.c 3 additions, 3 deletionsbackends/cryptodev.c
- hw/virtio/virtio-crypto.c 7 additions, 7 deletionshw/virtio/virtio-crypto.c
- include/sysemu/cryptodev.h 1 addition, 7 deletionsinclude/sysemu/cryptodev.h
- qapi/cryptodev.json 14 additions, 0 deletionsqapi/cryptodev.json
Loading
Please register or sign in to comment