From: Stefan Hajnoczi <stefanha@gmail.com>
To: "Gonglei (Arei)" <arei.gonglei@huawei.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"virtio-dev@lists.oasis-open.org"
<virtio-dev@lists.oasis-open.org>,
"Huangweidong (C)" <weidong.huang@huawei.com>,
"mst@redhat.com" <mst@redhat.com>,
"john.griffin@intel.com" <john.griffin@intel.com>,
"cornelia.huck@de.ibm.com" <cornelia.huck@de.ibm.com>,
"Zhoujian (jay, Euler)" <jianjay.zhou@huawei.com>,
"Varun.Sethi@freescale.com" <Varun.Sethi@freescale.com>,
"denglingli@chinamobile.com" <denglingli@chinamobile.com>,
"arei.gonglei@hotmail.com" <arei.gonglei@hotmail.com>,
"Hanweidong (Randy)" <hanweidong@huawei.com>,
"agraf@suse.de" <agraf@suse.de>,
"nmorey@kalray.eu" <nmorey@kalray.eu>,
longpeng <longpeng2@huawei.com>,
"vincent.jardin@6wind.com" <vincent.jardin@6wind.com>,
"Ola.Liljedahl@arm.com" <Ola.Liljedahl@arm.com>,
Luonengjun <luonengjun@huawei.com>,
"xin.zeng@intel.com" <xin.zeng@intel.com>,
"liang.j.ma@intel.com" <liang.j.ma@intel.com>,
"stefanha@redhat.com" <stefanha@redhat.com>,
Shiqing Fan <Shiqing.Fan@huawei.com>,
Jani Kokkonen <Jani.Kokkonen@huawei.com>,
"pasic@linux.vnet.ibm.com" <pasic@linux.vnet.ibm.com>,
"brian.a.keating@intel.com" <brian.a.keating@intel.com>,
Claudio Fontana <Claudio.Fontana@huawei.com>,
"mike.caraman@nxp.com" <mike.caraman@nxp.com>,
"Wubin (H)" <wu.wubin@huawei.com>
Subject: Re: [Qemu-devel] [PATCH v14 0/2] virtio-crypto: virtio crypto device specification
Date: Tue, 3 Jan 2017 15:00:03 +0000 [thread overview]
Message-ID: <20170103150003.GD14707@stefanha-x1.localdomain> (raw)
In-Reply-To: <33183CC9F5247A488A2544077AF19020DA16E01B@DGGEMA505-MBX.china.huawei.com>
[-- Attachment #1: Type: text/plain, Size: 1520 bytes --]
On Mon, Dec 26, 2016 at 02:38:29AM +0000, Gonglei (Arei) wrote:
> Both Alex and Stefan mentioned that the process of create/close a session
> makes we have a least one full round-trip cost from guest to host to guest
> to be able to send any data for symmetric algorithms. It gets ourself into
> synchronization troubles in some scenarios like a web server handling lots
> of small requests whose algorithms and keys are different.
>
> Because the virtio crypto specification has not been voted yet and v15 is on the way.
> I'd like to make some changes in order to support those scenarios better. That means
> we will support one-blob request (no sessions) as well for symmetric
> algorithms, including HASH, MAC services. The benefit is obvious for
> HASH service because it's usually a one-blob operation.
>
> The main changes will be:
> 1) using the flag property of struct virtio_crypto_op_header to identify the
> type of crypto request. Aka Is it a session-based or non-session request?
> The flag is not used currently, so we can make use of it.
>
> 2) extending virtio_crypto_*_para structures, for example, add the content of
> struct virtio_crypto_cipher_session_para into struct virtio_crypto_cipher_para.
> It's true that will increase the size of each crypto request after this change.
>
> Does it make sense? Thanks!
That sounds good. Hopefully many crypto API users only use a single
operation and can therefore benefit from this optimization.
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2017-01-03 15:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-11 9:23 [Qemu-devel] [PATCH v14 0/2] virtio-crypto: virtio crypto device specification Gonglei
2016-11-11 9:23 ` [Qemu-devel] [PATCH v14 1/2] virtio-crypto: Add " Gonglei
2016-11-16 18:11 ` Halil Pasic
2016-11-20 8:45 ` gong lei
2016-11-21 14:51 ` Cornelia Huck
2016-11-22 7:17 ` Gonglei (Arei)
2016-11-11 9:23 ` [Qemu-devel] [PATCH v14 2/2] virtio-crypto: Add conformance clauses Gonglei
2016-12-26 2:38 ` [Qemu-devel] [PATCH v14 0/2] virtio-crypto: virtio crypto device specification Gonglei (Arei)
2017-01-03 15:00 ` Stefan Hajnoczi [this message]
2017-01-04 1:03 ` Gonglei (Arei)
2017-01-09 21:41 ` Michael S. Tsirkin
2017-01-10 0:40 ` [Qemu-devel] [virtio-dev] " 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=20170103150003.GD14707@stefanha-x1.localdomain \
--to=stefanha@gmail.com \
--cc=Claudio.Fontana@huawei.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=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=longpeng2@huawei.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).