[Qemu-devel] [RFC v1 0/2] Detect & register virtio-crypto algos only if it can be supported by backend

Farhan Ali posted 2 patches 5 years, 10 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
drivers/crypto/virtio/virtio_crypto_algs.c   | 110 ++++++++++++++++++---------
drivers/crypto/virtio/virtio_crypto_common.h |  25 +++++-
drivers/crypto/virtio/virtio_crypto_core.c   |  29 +++++++
drivers/crypto/virtio/virtio_crypto_mgr.c    |  81 ++++++++++++++++++--
4 files changed, 201 insertions(+), 44 deletions(-)
[Qemu-devel] [RFC v1 0/2] Detect & register virtio-crypto algos only if it can be supported by backend
Posted by Farhan Ali 5 years, 10 months ago
Hi,

Currently the Linux virtio-crypto driver registers the crypto
algorithm without verifying if the backend actually supports the
algorithm.

This kernel patch series adds support for registering algorithm
with Linux crypto layer, only if the algorithm is supported by
the backend device. This also makes the driver more compliant with
the virtio-crypto spec [1].

I would appreciate any feedback or comments on this.

Thank you
Farhan

Reference
---------
[1] Virtio crypto spec proposal https://lists.gnu.org/archive/html/qemu-devel/2017-12/msg00816.html

Farhan Ali (2):
  crypto/virtio-crypto: Read crypto services and algorithm masks
  crypto/virtio-crypto: Register an algo only if it's supported

 drivers/crypto/virtio/virtio_crypto_algs.c   | 110 ++++++++++++++++++---------
 drivers/crypto/virtio/virtio_crypto_common.h |  25 +++++-
 drivers/crypto/virtio/virtio_crypto_core.c   |  29 +++++++
 drivers/crypto/virtio/virtio_crypto_mgr.c    |  81 ++++++++++++++++++--
 4 files changed, 201 insertions(+), 44 deletions(-)

-- 
2.7.4