]> git.proxmox.com Git - mirror_qemu.git/commit
cryptodev: Use CryptoDevBackendOpInfo for operation
authorzhenwei pi <pizhenwei@bytedance.com>
Wed, 1 Mar 2023 10:58:43 +0000 (18:58 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Mar 2023 17:38:59 +0000 (12:38 -0500)
commit2cb0692768c2d29333a6ad89fd081c97562bd899
tree5b33b93affa60523c920f37061a6470b31e21999
parentef52091aebb9860d9a454a792a9fbd66acdc63c8
cryptodev: Use CryptoDevBackendOpInfo for operation

Move queue_index, CryptoDevCompletionFunc and opaque into struct
CryptoDevBackendOpInfo, then cryptodev_backend_crypto_operation()
needs an argument CryptoDevBackendOpInfo *op_info only. And remove
VirtIOCryptoReq from cryptodev. It's also possible to hide
VirtIOCryptoReq into virtio-crypto.c in the next step. (In theory,
VirtIOCryptoReq is a private structure used by virtio-crypto only)

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