Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbaf0624 authored by Gonglei's avatar Gonglei Committed by Michael S. Tsirkin
Browse files

crypto: add virtio-crypto driver

This patch introduces virtio-crypto driver for Linux Kernel.

The virtio crypto device is a virtual cryptography device
as well as a kind of virtual hardware accelerator for
virtual machines. The encryption anddecryption requests
are placed in the data queue and are ultimately handled by
thebackend crypto accelerators. The second queue is the
control queue used to create or destroy sessions for
symmetric algorithms and will control some advanced features
in the future. The virtio crypto device provides the following
cryptoservices: CIPHER, MAC, HASH, and AEAD.

For more information about virtio-crypto device, please see:
  http://qemu-project.org/Features/VirtioCrypto



CC: Michael S. Tsirkin <mst@redhat.com>
CC: Cornelia Huck <cornelia.huck@de.ibm.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Herbert Xu <herbert@gondor.apana.org.au>
CC: Halil Pasic <pasic@linux.vnet.ibm.com>
CC: David S. Miller <davem@davemloft.net>
CC: Zeng Xin <xin.zeng@intel.com>
Signed-off-by: default avatarGonglei <arei.gonglei@huawei.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 809ecb9b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -12988,6 +12988,7 @@ F: drivers/net/virtio_net.c
F:	drivers/block/virtio_blk.c
F:	include/linux/virtio_*.h
F:	include/uapi/linux/virtio_*.h
F:	drivers/crypto/virtio/

VIRTIO DRIVERS FOR S390
M:	Christian Borntraeger <borntraeger@de.ibm.com>
@@ -13024,6 +13025,14 @@ S: Maintained
F:	drivers/virtio/virtio_input.c
F:	include/uapi/linux/virtio_input.h

VIRTIO CRYPTO DRIVER
M:  Gonglei <arei.gonglei@huawei.com>
L:  virtualization@lists.linux-foundation.org
L:  linux-crypto@vger.kernel.org
S:  Maintained
F:  drivers/crypto/virtio/
F:  include/uapi/linux/virtio_crypto.h

VIA RHINE NETWORK DRIVER
S:	Orphan
F:	drivers/net/ethernet/via/via-rhine.c
+2 −0
Original line number Diff line number Diff line
@@ -555,4 +555,6 @@ config CRYPTO_DEV_ROCKCHIP

source "drivers/crypto/chelsio/Kconfig"

source "drivers/crypto/virtio/Kconfig"

endif # CRYPTO_HW
+1 −0
Original line number Diff line number Diff line
@@ -32,3 +32,4 @@ obj-$(CONFIG_CRYPTO_DEV_VMX) += vmx/
obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sunxi-ss/
obj-$(CONFIG_CRYPTO_DEV_ROCKCHIP) += rockchip/
obj-$(CONFIG_CRYPTO_DEV_CHELSIO) += chelsio/
obj-$(CONFIG_CRYPTO_DEV_VIRTIO) += virtio/
+10 −0
Original line number Diff line number Diff line
config CRYPTO_DEV_VIRTIO
	tristate "VirtIO crypto driver"
	depends on VIRTIO
	select CRYPTO_AEAD
	select CRYPTO_AUTHENC
	select CRYPTO_BLKCIPHER
	default m
	help
	  This driver provides support for virtio crypto device. If you
	  choose 'M' here, this module will be called virtio_crypto.
+5 −0
Original line number Diff line number Diff line
obj-$(CONFIG_CRYPTO_DEV_VIRTIO) += virtio_crypto.o
virtio_crypto-objs := \
	virtio_crypto_algs.o \
	virtio_crypto_mgr.o \
	virtio_crypto_core.o
Loading