linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Detect & register virtio-crypto algos only if it can be supported by backend
@ 2018-06-19 15:41 Farhan Ali
  2018-06-19 15:41 ` [PATCH v3 1/2] crypto/virtio-crypto: Read crypto services and algorithm masks Farhan Ali
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Farhan Ali @ 2018-06-19 15:41 UTC (permalink / raw)
  To: linux-crypto, linux-kernel, kvm
  Cc: qemu-devel, herbert, borntraeger, arei.gonglei, longpeng2, pasic,
	frankja, jasowang, mst

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

ChangeLog
---------
v2 -> v3
    - Add Christian Borntrager's acks for the patches.

v1 -> v2
   - Modify comment as suggested by Arei (patch 1)
   - Modify error message as suggested by Arei (patch 2)

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   | 112 ++++++++++++++++++---------
 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, 202 insertions(+), 45 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-01 13:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-19 15:41 [PATCH v3 0/2] Detect & register virtio-crypto algos only if it can be supported by backend Farhan Ali
2018-06-19 15:41 ` [PATCH v3 1/2] crypto/virtio-crypto: Read crypto services and algorithm masks Farhan Ali
2018-06-19 15:41 ` [PATCH v3 2/2] crypto/virtio-crypto: Register an algo only if it's supported Farhan Ali
2018-06-27 13:22 ` [PATCH v3 0/2] Detect & register virtio-crypto algos only if it can be supported by backend Farhan Ali
2018-07-01 13:18 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).