summary refs log tree commit diff stats
path: root/qapi/cryptodev.json
diff options
context:
space:
mode:
authorzhenwei pi <pizhenwei@bytedance.com>2023-03-01 18:58:39 +0800
committerMichael S. Tsirkin <mst@redhat.com>2023-03-07 12:38:59 -0500
commitbc304a6442e9abc3a7b56bb0b268dedb70ad3448 (patch)
treec398676e6a70f5bb7b8fff59eab3a3d73c77081c /qapi/cryptodev.json
parent999c789f0018151906484c25faff495b89b549dc (diff)
downloadfocaccia-qemu-bc304a6442e9abc3a7b56bb0b268dedb70ad3448.tar.gz
focaccia-qemu-bc304a6442e9abc3a7b56bb0b268dedb70ad3448.zip
cryptodev: Introduce server type in QAPI
Introduce cryptodev service type in cryptodev.json, then apply this
to related codes. Now we can remove VIRTIO_CRYPTO_SERVICE_xxx
dependence from QEMU cryptodev.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id: <20230301105847.253084-5-pizhenwei@bytedance.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'qapi/cryptodev.json')
-rw-r--r--qapi/cryptodev.json11
1 files changed, 11 insertions, 0 deletions
diff --git a/qapi/cryptodev.json b/qapi/cryptodev.json
index ebb6852035..8732a30524 100644
--- a/qapi/cryptodev.json
+++ b/qapi/cryptodev.json
@@ -19,6 +19,17 @@
   'data': ['sym', 'asym']}
 
 ##
+# @QCryptodevBackendServiceType:
+#
+# The supported service types of a crypto device.
+#
+# Since: 8.0
+##
+{ 'enum': 'QCryptodevBackendServiceType',
+  'prefix': 'QCRYPTODEV_BACKEND_SERVICE',
+  'data': ['cipher', 'hash', 'mac', 'aead', 'akcipher']}
+
+##
 # @QCryptodevBackendType:
 #
 # The crypto device backend type