From: Stefan Hajnoczi <stefanha@gmail.com>
To: Gonglei <arei.gonglei@huawei.com>
Cc: qemu-devel@nongnu.org, virtio-dev@lists.oasis-open.org,
weidong.huang@huawei.com, mst@redhat.com, john.griffin@intel.com,
cornelia.huck@de.ibm.com, jianjay.zhou@huawei.com,
Varun.Sethi@freescale.com, denglingli@chinamobile.com,
arei.gonglei@hotmail.com, Hanweidong <hanweidong@huawei.com>,
agraf@suse.de, nmorey@kalray.eu, vincent.jardin@6wind.com,
Ola.Liljedahl@arm.com, luonengjun@huawei.com, xin.zeng@intel.com,
liang.j.ma@intel.com, stefanha@redhat.com,
Shiqing.Fan@huawei.com, Jani.Kokkonen@huawei.com,
pasic@linux.vnet.ibm.com, brian.a.keating@intel.com,
claudio.fontana@huawei.com, mike.caraman@nxp.com,
wu.wubin@huawei.com
Subject: Re: [Qemu-devel] [PATCH v15 1/2] virtio-crypto: Add virtio crypto device specification
Date: Mon, 16 Jan 2017 13:24:14 +0000 [thread overview]
Message-ID: <20170116132414.GC14681@stefanha-x1.localdomain> (raw)
In-Reply-To: <1483524185-9036-2-git-send-email-arei.gonglei@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]
On Wed, Jan 04, 2017 at 06:03:04PM +0800, Gonglei wrote:
> +The general header of dataq:
> +
> +\begin{lstlisting}
> +struct virtio_crypto_op_header {
> +#define VIRTIO_CRYPTO_CIPHER_ENCRYPT \
> + VIRTIO_CRYPTO_OPCODE(VIRTIO_CRYPTO_SERVICE_CIPHER, 0x00)
> +#define VIRTIO_CRYPTO_CIPHER_DECRYPT \
> + VIRTIO_CRYPTO_OPCODE(VIRTIO_CRYPTO_SERVICE_CIPHER, 0x01)
> +#define VIRTIO_CRYPTO_HASH \
> + VIRTIO_CRYPTO_OPCODE(VIRTIO_CRYPTO_SERVICE_HASH, 0x00)
> +#define VIRTIO_CRYPTO_MAC \
> + VIRTIO_CRYPTO_OPCODE(VIRTIO_CRYPTO_SERVICE_MAC, 0x00)
> +#define VIRTIO_CRYPTO_AEAD_ENCRYPT \
> + VIRTIO_CRYPTO_OPCODE(VIRTIO_CRYPTO_SERVICE_AEAD, 0x00)
> +#define VIRTIO_CRYPTO_AEAD_DECRYPT \
> + VIRTIO_CRYPTO_OPCODE(VIRTIO_CRYPTO_SERVICE_AEAD, 0x01)
> + le32 opcode;
> + /* algo should be service-specific algorithms */
> + le32 algo;
> + /* session_id should be service-specific algorithms */
> + le64 session_id;
> +#define VIRTIO_CRYPTO_FLAG_SESSION_MODE 1
> +#define VIRTIO_CRYPTO_FLAG_NONE_SESSION_MODE 2
This constant isn't mentioned anywhere in the spec, am I missing
something?
Regarding naming: "none session mode" != "non-session mode"
I think this constant should be called
VIRTIO_CRYPTO_FLAG_NON_SESSION_MODE or
VIRTIO_CRYPTO_FLAG_SESSIONLESS_MODE.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2017-01-16 13:24 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-04 10:03 [Qemu-devel] [PATCH v15 0/2] virtio-crypto: virtio crypto device specification Gonglei
2017-01-04 10:03 ` [Qemu-devel] [PATCH v15 1/2] virtio-crypto: Add " Gonglei
2017-01-16 13:24 ` Stefan Hajnoczi [this message]
2017-01-17 1:23 ` Gonglei (Arei)
2017-01-04 10:03 ` [Qemu-devel] [PATCH v15 2/2] virtio-crypto: Add conformance clauses Gonglei
2017-01-04 10:10 ` [Qemu-devel] [PATCH v15 0/2] virtio-crypto: virtio crypto device specification Gonglei (Arei)
2017-01-12 11:58 ` Halil Pasic
2017-01-12 12:26 ` [Qemu-devel] [virtio-dev] " Gonglei (Arei)
2017-01-12 19:45 ` Michael S. Tsirkin
2017-01-13 2:54 ` Gonglei (Arei)
2017-01-13 16:02 ` Michael S. Tsirkin
2017-01-14 1:20 ` Gonglei (Arei)
2017-01-16 12:43 ` Gonglei (Arei)
2017-01-16 13:58 ` Halil Pasic
2017-01-17 2:49 ` Gonglei (Arei)
2017-01-18 17:16 ` [Qemu-devel] [virtio-dev] " Halil Pasic
2017-01-19 1:43 ` Gonglei (Arei)
2017-01-12 11:27 ` [Qemu-devel] " Gonglei (Arei)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170116132414.GC14681@stefanha-x1.localdomain \
--to=stefanha@gmail.com \
--cc=Jani.Kokkonen@huawei.com \
--cc=Ola.Liljedahl@arm.com \
--cc=Shiqing.Fan@huawei.com \
--cc=Varun.Sethi@freescale.com \
--cc=agraf@suse.de \
--cc=arei.gonglei@hotmail.com \
--cc=arei.gonglei@huawei.com \
--cc=brian.a.keating@intel.com \
--cc=claudio.fontana@huawei.com \
--cc=cornelia.huck@de.ibm.com \
--cc=denglingli@chinamobile.com \
--cc=hanweidong@huawei.com \
--cc=jianjay.zhou@huawei.com \
--cc=john.griffin@intel.com \
--cc=liang.j.ma@intel.com \
--cc=luonengjun@huawei.com \
--cc=mike.caraman@nxp.com \
--cc=mst@redhat.com \
--cc=nmorey@kalray.eu \
--cc=pasic@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=vincent.jardin@6wind.com \
--cc=virtio-dev@lists.oasis-open.org \
--cc=weidong.huang@huawei.com \
--cc=wu.wubin@huawei.com \
--cc=xin.zeng@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).