All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: Ola Liljedahl <Ola.Liljedahl@arm.com>,
	"Gonglei (Arei)" <arei.gonglei@huawei.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"virtio-dev@lists.oasis-open.org"
	<virtio-dev@lists.oasis-open.org>
Cc: "Huangpeng (Peter)" <peter.huangpeng@huawei.com>,
	Luonengjun <luonengjun@huawei.com>,
	"mst@redhat.com" <mst@redhat.com>,
	"cornelia.huck@de.ibm.com" <cornelia.huck@de.ibm.com>,
	"stefanha@redhat.com" <stefanha@redhat.com>,
	"denglingli@chinamobile.com" <denglingli@chinamobile.com>,
	Jani Kokkonen <Jani.Kokkonen@huawei.com>,
	"Varun.Sethi@freescale.com" <Varun.Sethi@freescale.com>,
	"xin.zeng@intel.com" <xin.zeng@intel.com>,
	"brian.a.keating@intel.com" <brian.a.keating@intel.com>,
	"liang.j.ma@intel.com" <liang.j.ma@intel.com>,
	"john.griffin@intel.com" <john.griffin@intel.com>,
	"hanweidong@huawei.com" <hanweidong@huawei.com>,
	"Huangweidong (C)" <weidong.huang@huawei.com>,
	"mike.caraman@nxp.com" <mike.caraman@nxp.com>,
	Claudio Fontana <Claudio.Fontana@huawei.com>,
	"Zhoujian (jay, Euler)" <jianjay.zhou@huawei.com>
Subject: Re: [Qemu-devel] [PATCH v8 1/2] virtio-crypto: Add virtio crypto device specification
Date: Mon, 5 Sep 2016 09:40:32 +0200	[thread overview]
Message-ID: <57CD2170.3070006@suse.de> (raw)
In-Reply-To: <D3F20DE6.1F9E0%ola.liljedahl@arm.com>

On 09/04/2016 05:47 PM, Ola Liljedahl wrote:
>
> On 02/09/2016, 16:05, "Alexander Graf" <agraf@suse.de> wrote:
>
>>>> There is a big problem that the control handle logic is synchronization,
>>>> but the data queue
>>>> handling logic is asynchronization. We can't combine them into one
>>>> queue.
>>>> It will decrease the performance because you need indentify each packet
>>>> if we do this forcedly.
>>> Are you saying that control and data operations are handled by separate
>>> "blocks²?
>>> If you combined control and data queues, there would have to be a (SW)
>>> demultiplexer
>>> that would add overhead (and potentially decrease throughout) especially
>>> for the data
>>> operations?
>> Uh, the multiplexer is as simple as a switch() statement on the opcode,
>> no?
> You are assuming the backend will (always) be implemented in software.

If you implement it in something that is not software, multiplexing
suddenly becomes a lot harder. What if you want to run 20 VMs on a
single host? Would you spawn SR-IOV devices with separate control queues
each? Or would you trap the control queue into the host and let the
guest freely access data queues which then means one guest could
interfere with another guest's data?

If you manage to give each queue its own stream ID, you could just pass
as many real hardware queues as you like into guests, no?


Alex

  reply	other threads:[~2016-09-05  7:40 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-30 12:12 [Qemu-devel] [PATCH v8 0/2] virtio-crypto: virtio crypto device specification Gonglei
2016-08-30 12:12 ` [Qemu-devel] [PATCH v8 1/2] virtio-crypto: Add " Gonglei
2016-09-01 13:37   ` Alexander Graf
2016-09-02  3:08     ` Gonglei (Arei)
2016-09-02  8:06       ` Alexander Graf
2016-09-02 10:26         ` Gonglei (Arei)
2016-09-02 12:16           ` Ola Liljedahl
2016-09-02 14:05             ` Alexander Graf
2016-09-03  3:18               ` Gonglei (Arei)
2016-09-05  7:37                 ` Alexander Graf
2016-09-05  8:14                   ` Gonglei (Arei)
2016-09-04 15:47               ` Ola Liljedahl
2016-09-05  7:40                 ` Alexander Graf [this message]
2016-09-05  8:53                   ` Ola Liljedahl
2016-09-02 13:52           ` Alexander Graf
2016-09-03  2:51             ` Gonglei (Arei)
2016-09-02 12:06   ` Stefan Hajnoczi
2016-09-03  3:44     ` Gonglei (Arei)
2016-09-02 13:47   ` Ma, Liang J
2016-09-03  2:53     ` Gonglei (Arei)
2016-08-30 12:12 ` [Qemu-devel] [PATCH v8 2/2] virtio-crypto: Add conformance clauses Gonglei

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=57CD2170.3070006@suse.de \
    --to=agraf@suse.de \
    --cc=Claudio.Fontana@huawei.com \
    --cc=Jani.Kokkonen@huawei.com \
    --cc=Ola.Liljedahl@arm.com \
    --cc=Varun.Sethi@freescale.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=luonengjun@huawei.com \
    --cc=mike.caraman@nxp.com \
    --cc=mst@redhat.com \
    --cc=peter.huangpeng@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=virtio-dev@lists.oasis-open.org \
    --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.