Re: [Qemu-devel] [PATCH v7 08/12] virtio-crypto: add control queue handler

2016-10-16 Thread Gonglei (Arei)
Hi Stefan, Thanks for your comments! > -Original Message- > From: Stefan Hajnoczi [mailto:stefa...@gmail.com] > Sent: Sunday, October 16, 2016 9:03 PM > Subject: Re: [Qemu-devel] [PATCH v7 08/12] virtio-crypto: add control queue > handler > > On Thu, Oct 13, 201

Re: [Qemu-devel] [PATCH v7 08/12] virtio-crypto: add control queue handler

2016-10-16 Thread Stefan Hajnoczi
On Thu, Oct 13, 2016 at 03:12:02PM +0800, Gonglei wrote: > +static int64_t > +virtio_crypto_create_sym_session(VirtIOCrypto *vcrypto, > + struct virtio_crypto_sym_create_session_req *sess_req, > + uint32_t queue_id, > + uint32_t opcode, > + st

[Qemu-devel] [PATCH v7 08/12] virtio-crypto: add control queue handler

2016-10-13 Thread Gonglei
Realize the symmetric algorithm control queue handler, including plain cipher and chainning algorithms. Currently the control queue is used to create and close session for symmetric algorithm. Signed-off-by: Gonglei --- hw/virtio/virtio-crypto.c | 285 +++