qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Halil Pasic <pasic@linux.vnet.ibm.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: "Longpeng (Mike)" <longpeng2@huawei.com>,
	virtio-dev@lists.oasis-open.org, Ola.Liljedahl@arm.com,
	brian.a.keating@intel.com, wangxinxin.wang@huawei.com,
	xin.zeng@intel.com, jasowang@redhat.com, luonengjun@huawei.com,
	qemu-devel@nongnu.org, john.griffin@intel.com, agraf@suse.de,
	arei.gonglei@huawei.com, liang.j.ma@intel.com,
	stefanha@redhat.com, jianjay.zhou@huawei.com,
	Cornelia Huck <cohuck@redhat.com>,
	Varun.Sethi@freescale.com, Jani.Kokkonen@huawei.com,
	vincent.jardin@6wind.com, denglingli@chinamobile.com,
	weidong.huang@huawei.com
Subject: Re: [Qemu-devel] [virtio-dev] Re: [v22 1/2] virtio-crypto: Add virtio crypto device specification
Date: Mon, 18 Dec 2017 16:27:42 +0100	[thread overview]
Message-ID: <0cada9eb-60c1-4b71-09a9-fef7db2c4831@linux.vnet.ibm.com> (raw)
In-Reply-To: <20171218153450-mutt-send-email-mst@kernel.org>



On 12/18/2017 02:51 PM, Michael S. Tsirkin wrote:
> On Mon, Dec 18, 2017 at 01:29:50PM +0100, Halil Pasic wrote:
[..]
>>
>> It isn't a big structural thing, but inconsistent wording can make
>> difficult to understand stuff even more difficult to understand.
>>
>> This wording stuff is not a show-stopper for me.
> 
> Right. There's a working implementation upstream that people use,
> so at this point we really need a description of that upstream,
> and add wording tweaks on top. And it's too late to change the
> interface drastically, any change must be compatible using
> feature bits for anything we want changed.
> 
> 

I fully agree. Please bear with me if end up complaining about
minor stuff identified while reviewing the spec and cross check
it with the implementation to make sure there is nothing major wrong.

[..]
>>>> * I assume one request is supposed to correspond to one descriptor chain.
>>>> Right? If yes, could you tell me, where is this expressed in the spec.
>>>>
>>
>> You have ignored this one. Michael said it's the default for the whole
>> spec, but I still don't know where is this requirement to be found
>> in the spec.
> 
> I was surprised to find this does not say this explicitly anywhere.
> I this we should add something like the below to the Virtqueues
> chapter:
> 
> 	Driver makes requests available to device by adding an available buffer
> 	to the queue - i.e. adding a buffer describing the request to a
> 	virtqueue, and optionally triggering a driver event - i.e. sending a
> 	notification to the device.  Device executes the requests and - when
> 	complete - adds a used buffer to the queue - i.e. lets the driver know
> 	by marking the buffer as used. Device can then trigger a device event -
> 	i.e. send an interrupt to the driver.

Thanks for verifying this. I can spin a patch addressing the issue, if you like.

If I'm going to do the patch, I would like take your text as a starting
point of (with your kind permission), but I would rather see this as belonging
to "3.2 Device Operation". (It's not about how virtqueues work, but how
virtio devices use virtqueues to do their thing.)

Regards,
Halil

  reply	other threads:[~2017-12-18 15:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-06  7:37 [Qemu-devel] [v22 0/2] virtio-crypto: virtio crypto device specification Longpeng(Mike)
2017-12-06  7:37 ` [Qemu-devel] [v22 1/2] virtio-crypto: Add " Longpeng(Mike)
2017-12-06 11:01   ` Halil Pasic
2017-12-07  7:59     ` Gonglei (Arei)
2017-12-11 12:56     ` Longpeng (Mike)
2017-12-11 13:54       ` Halil Pasic
2017-12-11 14:09         ` Michael S. Tsirkin
2017-12-11 15:41           ` Halil Pasic
2017-12-18  8:43         ` [Qemu-devel] [virtio-dev] " Longpeng (Mike)
2017-12-18 12:29           ` Halil Pasic
2017-12-18 13:51             ` Michael S. Tsirkin
2017-12-18 15:27               ` Halil Pasic [this message]
2017-12-23  9:11             ` [Qemu-devel] [virtio-dev] " Longpeng (Mike)
2017-12-20 16:44   ` [Qemu-devel] " Halil Pasic
2017-12-30  7:57     ` Longpeng (Mike)
2018-01-03 20:43       ` Halil Pasic
2018-01-04  8:55         ` [Qemu-devel] [virtio-dev] " Longpeng (Mike)
2017-12-06  7:37 ` [Qemu-devel] [v22 2/2] virtio-crypto: Add conformance clauses Longpeng(Mike)

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=0cada9eb-60c1-4b71-09a9-fef7db2c4831@linux.vnet.ibm.com \
    --to=pasic@linux.vnet.ibm.com \
    --cc=Jani.Kokkonen@huawei.com \
    --cc=Ola.Liljedahl@arm.com \
    --cc=Varun.Sethi@freescale.com \
    --cc=agraf@suse.de \
    --cc=arei.gonglei@huawei.com \
    --cc=brian.a.keating@intel.com \
    --cc=cohuck@redhat.com \
    --cc=denglingli@chinamobile.com \
    --cc=jasowang@redhat.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=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=vincent.jardin@6wind.com \
    --cc=virtio-dev@lists.oasis-open.org \
    --cc=wangxinxin.wang@huawei.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).