cryptodev: add vhost support
commit5da73dabe86162005dec83a039102b126944f03a
authorGonglei <arei.gonglei@huawei.com>
Thu, 1 Mar 2018 13:46:29 +0000 (1 21:46 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Mar 2018 16:26:17 +0000 (1 18:26 +0200)
tree4c892d99660172149a8e6bb65527d6659bc1574e
parent042cea274c5854023e1d18626480190c0d64268e
cryptodev: add vhost support

Impliment the vhost-crypto's funtions, such as startup,
stop and notification etc. Introduce an enum
QCryptoCryptoDevBackendOptionsType in order to
identify the cryptodev vhost backend is vhost-user
or vhost-kernel-module (If exist).

At this point, the cryptdoev-vhost-user works.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Longpeng(Mike) <longpeng2@huawei.com>
Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
backends/cryptodev-builtin.c
backends/cryptodev-vhost-user.c
backends/cryptodev-vhost.c
hw/virtio/virtio-crypto.c
include/hw/virtio/virtio-crypto.h
include/sysemu/cryptodev-vhost-user.h [new file with mode: 0644]
include/sysemu/cryptodev.h