Re: [Qemu-devel] [PATCH v1 11/14] virtio-crypto: add control queue handler

2016-09-07 Thread Michael S. Tsirkin
On Thu, Sep 08, 2016 at 11:42:33AM +0800, Gonglei wrote: > +info->cipher_alg = virtio_ldl_p(vdev, &cipher_para->algo); > +info->key_len = virtio_ldl_p(vdev, &cipher_para->keylen); > +info->direction = virtio_ldl_p(vdev, &cipher_para->op); There is no reason to use the virtio mixed endi

[Qemu-devel] [PATCH v1 11/14] virtio-crypto: add control queue handler

2016-09-07 Thread Gonglei
Realize the Symmetric algos session creation handler, including plain cipher and chainning algorithms. Signed-off-by: Gonglei --- hw/virtio/virtio-crypto.c | 172 ++ 1 file changed, 172 insertions(+) diff --git a/hw/virtio/virtio-crypto.c b/hw/virtio/