qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC v1 0/2] Detect & register virtio-crypto algos only if it can be supported by backend
@ 2018-06-08 19:08 Farhan Ali
  2018-06-08 19:08 ` [Qemu-devel] [RFC v1 1/2] crypto/virtio-crypto: Read crypto services and algorithm masks Farhan Ali
  2018-06-08 19:08 ` [Qemu-devel] [RFC v1 2/2] crypto/virtio-crypto: Register an algo only if it's supported Farhan Ali
  0 siblings, 2 replies; 9+ messages in thread
From: Farhan Ali @ 2018-06-08 19:08 UTC (permalink / raw)
  To: linux-kernel, kvm
  Cc: mst, qemu-devel, arei.gonglei, longpeng2, pasic, frankja,
	borntraeger, alifm

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

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

end of thread, other threads:[~2018-06-13  0:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-08 19:08 [Qemu-devel] [RFC v1 0/2] Detect & register virtio-crypto algos only if it can be supported by backend Farhan Ali
2018-06-08 19:08 ` [Qemu-devel] [RFC v1 1/2] crypto/virtio-crypto: Read crypto services and algorithm masks Farhan Ali
2018-06-11  6:43   ` Gonglei (Arei)
2018-06-12 17:06     ` Farhan Ali
2018-06-13  0:27       ` Gonglei (Arei)
2018-06-08 19:08 ` [Qemu-devel] [RFC v1 2/2] crypto/virtio-crypto: Register an algo only if it's supported Farhan Ali
2018-06-11  8:48   ` Gonglei (Arei)
2018-06-12 17:07     ` Farhan Ali
2018-06-13  0:31       ` Gonglei (Arei)

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).