cryptodev-vhost-user: add crypto session handler
commitefbfeb81802cf9723a4663fadd674bf452a07e11
authorGonglei <arei.gonglei@huawei.com>
Thu, 1 Mar 2018 13:46:30 +0000 (1 21:46 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Mar 2018 16:26:17 +0000 (1 18:26 +0200)
tree128a4c8780e711464f863a2c9e59af6b67aa4426
parent5da73dabe86162005dec83a039102b126944f03a
cryptodev-vhost-user: add crypto session handler

Introduce two vhost-user meassges: VHOST_USER_CREATE_CRYPTO_SESSION
and VHOST_USER_CLOSE_CRYPTO_SESSION. At this point, the QEMU side
support crypto operation in cryptodev host-user backend.

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-vhost-user.c
docs/interop/vhost-user.txt
hw/virtio/vhost-user.c
include/hw/virtio/vhost-backend.h