mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
cryptodev: Introduce cryptodev.json
Introduce QCryptodevBackendType in cryptodev.json, also apply this to related codes. Then we can drop 'enum CryptoDevBackendOptionsType'. Note that `CRYPTODEV_BACKEND_TYPE_NONE` is *NOT* used by anywhere, so drop it(no 'none' enum in QCryptodevBackendType). Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: zhenwei pi <pizhenwei@bytedance.com> Message-Id: <20230301105847.253084-2-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:
committed by
Michael S. Tsirkin
parent
9832009d9d
commit
14c9fd1673
20
qapi/cryptodev.json
Normal file
20
qapi/cryptodev.json
Normal file
@@ -0,0 +1,20 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
# This work is licensed under the terms of the GNU GPL, version 2 or later.
|
||||
# See the COPYING file in the top-level directory.
|
||||
|
||||
##
|
||||
# @QCryptodevBackendType:
|
||||
#
|
||||
# The crypto device backend type
|
||||
#
|
||||
# @builtin: the QEMU builtin support
|
||||
# @vhost-user: vhost-user
|
||||
# @lkcf: Linux kernel cryptographic framework
|
||||
#
|
||||
# Since: 8.0
|
||||
##
|
||||
{ 'enum': 'QCryptodevBackendType',
|
||||
'prefix': 'QCRYPTODEV_BACKEND_TYPE',
|
||||
'data': ['builtin', 'vhost-user', 'lkcf']}
|
||||
@@ -56,6 +56,7 @@ if have_system
|
||||
qapi_all_modules += [
|
||||
'acpi',
|
||||
'audio',
|
||||
'cryptodev',
|
||||
'qdev',
|
||||
'pci',
|
||||
'rdma',
|
||||
|
||||
@@ -95,3 +95,4 @@
|
||||
{ 'include': 'pci.json' }
|
||||
{ 'include': 'stats.json' }
|
||||
{ 'include': 'virtio.json' }
|
||||
{ 'include': 'cryptodev.json' }
|
||||
|
||||
Reference in New Issue
Block a user