From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Gonglei (Arei)" <arei.gonglei@huawei.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"Huangweidong (C)" <weidong.huang@huawei.com>,
"stefanha@redhat.com" <stefanha@redhat.com>,
"Zhoujian (jay)" <jianjay.zhou@huawei.com>,
"pasic@linux.vnet.ibm.com" <pasic@linux.vnet.ibm.com>,
longpeng <longpeng2@huawei.com>,
"xin.zeng@intel.com" <xin.zeng@intel.com>,
"roy.fan.zhang@intel.com" <roy.fan.zhang@intel.com>,
"jianfeng.tan@intel.com" <jianfeng.tan@intel.com>
Subject: Re: [Qemu-devel] [PATCH 3/4] cryptodev-vhost-user: add crypto session handler
Date: Wed, 29 Nov 2017 06:10:08 +0200 [thread overview]
Message-ID: <20171129060910-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <33183CC9F5247A488A2544077AF19020DA4A8D54@DGGEMA505-MBS.china.huawei.com>
On Wed, Nov 29, 2017 at 02:33:59AM +0000, Gonglei (Arei) wrote:
>
> > -----Original Message-----
> > From: Paolo Bonzini [mailto:pbonzini@redhat.com]
> > Sent: Tuesday, November 28, 2017 7:20 PM
> > To: Gonglei (Arei); qemu-devel@nongnu.org
> > Cc: mst@redhat.com; Huangweidong (C); stefanha@redhat.com; Zhoujian
> > (jay); pasic@linux.vnet.ibm.com; longpeng; xin.zeng@intel.com;
> > roy.fan.zhang@intel.com
> > Subject: Re: [PATCH 3/4] cryptodev-vhost-user: add crypto session handler
> >
> > On 28/11/2017 12:06, Gonglei (Arei) wrote:
> > >>> You mean we can share control virtqueue to DPDK as well? Like data
> > queues?
> > >> I don't know :) but why not?
> > >>
> > > Current there are two main reasons for this design:
> > >
> > > 1) we should use another cpu to polling the control virtqueue, which is
> > expensive.
> >
> > IIRC DPDK also supports interrupt mode, doesn't it? Is it possible to
> > do interrupt mode for some virtqueues and poll mode for others?
> >
>
> The intel guy Tan (Ccing) said to me:
>
> " Interrupt mode for vhost-user is still not supported in current
> implementation. But we are evaluating the necessity now.
That's more or less a spec violation. Guest must get interrupts
if it does not disable them. And it must notify host
if host does not disable notifications.
> And yes, the mode (polling or interrupt) can be different for different
> queues."
>
> > > 2) we should copy the logic of parsing control message to DPDK, which break
> > > current layered architecture .
> >
> > But isn't it already a layering violation that you're adding *some*
> > control messages to the vhost-user protocol? I am not sure why only
> > these two are necessary.
> >
> Sorry, but I don't think this is layering violation, just like "vhost_net_set_mtu"
> for vhost-net and "vhost_vsock_set_guest_cid_op" for vhost_vsock. They're all
> device-specific messages. Aren't they?
>
> Thanks,
> -Gonglei
>
> > Paolo
> >
> > > I'm not sure if there are any other hidden issues for future scalability, such as
> > > using Qemu to manage some control messages, avoiding D-Dos attack etc.
> > >
> > > Thanks,
> > > -Gonglei
>
next prev parent reply other threads:[~2017-11-29 4:10 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-28 9:03 [Qemu-devel] [PATCH 0/4] cryptodev: add vhost support Gonglei
2017-11-28 9:03 ` [Qemu-devel] [PATCH 1/4] cryptodev: add vhost-user as a new cryptodev backend Gonglei
2017-11-28 9:03 ` [Qemu-devel] [PATCH 2/4] cryptodev: add vhost support Gonglei
2017-11-28 9:03 ` [Qemu-devel] [PATCH 3/4] cryptodev-vhost-user: add crypto session handler Gonglei
2017-11-28 10:01 ` Paolo Bonzini
2017-11-28 10:43 ` Gonglei (Arei)
2017-11-28 10:45 ` Paolo Bonzini
2017-11-28 11:06 ` Gonglei (Arei)
2017-11-28 11:19 ` Paolo Bonzini
2017-11-29 2:33 ` Gonglei (Arei)
2017-11-29 4:10 ` Michael S. Tsirkin [this message]
2017-11-29 9:11 ` Paolo Bonzini
2017-11-29 10:21 ` Tan, Jianfeng
2017-11-28 19:15 ` Michael S. Tsirkin
2017-11-28 9:03 ` [Qemu-devel] [PATCH 4/4] cryptodev-vhost-user: set the key length Gonglei
2017-11-28 10:10 ` [Qemu-devel] [PATCH 0/4] cryptodev: add vhost support no-reply
2017-12-18 9:03 ` Gonglei (Arei)
2017-12-20 17:38 ` Michael S. Tsirkin
2017-12-21 0:51 ` Gonglei (Arei)
2017-12-21 4:28 ` Michael S. Tsirkin
2017-12-21 9:11 ` Paolo Bonzini
2017-12-21 14:25 ` Michael S. Tsirkin
2017-12-22 7:39 ` 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=20171129060910-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=arei.gonglei@huawei.com \
--cc=jianfeng.tan@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.