From: "Michael S. Tsirkin" <mst@redhat.com>
To: Jay Zhou <jianjay.zhou@huawei.com>
Cc: qemu-devel@nongnu.org, pbonzini@redhat.com,
weidong.huang@huawei.com, stefanha@redhat.com,
pasic@linux.vnet.ibm.com, longpeng2@huawei.com,
xin.zeng@intel.com, roy.fan.zhang@intel.com,
arei.gonglei@huawei.com
Subject: Re: [Qemu-devel] [PATCH v2 3/4] cryptodev-vhost-user: add crypto session handler
Date: Tue, 16 Jan 2018 06:24:04 +0200 [thread overview]
Message-ID: <20180116062059-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <1514623933-25568-4-git-send-email-jianjay.zhou@huawei.com>
On Sat, Dec 30, 2017 at 04:52:12PM +0800, Jay Zhou wrote:
> diff --git a/docs/interop/vhost-user.txt b/docs/interop/vhost-user.txt
> index 954771d..f43c63d 100644
> --- a/docs/interop/vhost-user.txt
> +++ b/docs/interop/vhost-user.txt
> @@ -596,6 +596,25 @@ Master message types
> and expect this message once (per VQ) during device configuration
> (ie. before the master starts the VQ).
>
> + * VHOST_USER_CREATE_CRYPTO_SESSION
> +
> + Id: 23
> + Equivalent ioctl: N/A
> + Master payload: crypto session description
> + Slave payload: crypto session description
> +
> + Create a session for crypto operation. The server side must return the
> + session id, 0 or positive for success, negative for failure.
> +
> + * VHOST_USER_CLOSE_CRYPTO_SESSION
> +
> + Id: 24
> + Equivalent ioctl: N/A
> + Master payload: u64
> +
> + Close a session for crypto operation which was previously
> + created by VHOST_USER_CREATE_CRYPTO_SESSION.
> +
> Slave message types
> -------------------
>
Sorry about a delayed response.
So an issue with this patchset is that you are adding
new messages unconditionally.
You must add a protocol bit whenever you add new messages.
If appropriate, you can document that it's a required feature for crypto
devices.
--
MST
next prev parent reply other threads:[~2018-01-16 4:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-30 8:52 [Qemu-devel] [PATCH v2 0/4] cryptodev: add vhost support Jay Zhou
2017-12-30 8:52 ` [Qemu-devel] [PATCH v2 1/4] cryptodev: add vhost-user as a new cryptodev backend Jay Zhou
2017-12-30 8:52 ` [Qemu-devel] [PATCH v2 2/4] cryptodev: add vhost support Jay Zhou
2017-12-30 8:52 ` [Qemu-devel] [PATCH v2 3/4] cryptodev-vhost-user: add crypto session handler Jay Zhou
2018-01-16 4:24 ` Michael S. Tsirkin [this message]
2018-01-16 12:43 ` Zhoujian (jay)
2017-12-30 8:52 ` [Qemu-devel] [PATCH v2 4/4] cryptodev-vhost-user: set the key length Jay Zhou
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=20180116062059-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=arei.gonglei@huawei.com \
--cc=jianjay.zhou@huawei.com \
--cc=longpeng2@huawei.com \
--cc=pasic@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=roy.fan.zhang@intel.com \
--cc=stefanha@redhat.com \
--cc=weidong.huang@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).