Discussion of the VIRTIO specification
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: "Cornelia Huck" <cohuck@redhat.com>,
	"Vincent Guittot" <vincent.guittot@linaro.org>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Manos Pitsidianakis" <manos.pitsidianakis@linaro.org>,
	"Parav Pandit" <parav@nvidia.com>,
	"Matias Ezequiel Vara Larsen" <mvaralar@redhat.com>,
	virtio-comment@lists.linux.dev
Subject: Re: [PATCH V7] virtio-transport: Add a new section to clarify transport requirements
Date: Wed, 24 Jul 2024 07:05:37 -0400	[thread overview]
Message-ID: <20240724065845-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20240724104537.5632obtaek7yr4ct@vireshk-i7>

On Wed, Jul 24, 2024 at 04:15:37PM +0530, Viresh Kumar wrote:
> On 11-07-24, 13:18, Viresh Kumar wrote:
> > The virtio documentation currently doesn't define any generic
> > requirements that are applicable to all transports. They can be useful
> > while adding support for a new transport.
> > 
> > This commit tries to define the same under a new Appendix section.
> > 
> > Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> > Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> > ---
> > V6->V7:
> > - Remove parts that talk about accessing content of the virtqueue.
> 
> I have tried to simplify the requirements now based on the discussion over the
> list. Do they look better now ?

I don't know do you keep talking about "pair" everywhere. Just say
"the device and the driver" or "a device and a driver" as apporpriate.
And in many cases it is actually just one of these.

> 
> diff --git a/newtransport.tex b/newtransport.tex
> new file mode 100644
> index 000000000000..8f7a21dc64e2
> --- /dev/null
> +++ b/newtransport.tex
> @@ -0,0 +1,37 @@
> +\chapter{Creating New Transports}\label{sec:Creating New Transports}
> +
> +Devices and drivers can use different transport methods to enable
> +interaction, for example PCI, MMIO, or Channel I/O. The transport
> +methods define various aspects of the communication between the device

so communication or interaction?

> +and the driver, like device discovery, exchanging capabilities,

"like" is informal english. do you mean "including"?

> +interrupt handling, data transfer, etc. For example, in a host/guest
> +architecture, the host might expose a device to the guest on a PCI bus,
> +and the guest will use a PCI-specific driver to interact with it.

what is "PCI-specific"? mean "a pci device driver"?
> +
> +This section specifies the mandatory requirements that any transport
> +needs to implement.
> +
> +\section{Transport Requirements}\label{sec:Creating New Transports / Transport Requirements}
> +
> +A transport provides a mechanism to implement configuration space
> +between a pair of device-driver.

configuration space is not "between".

> +
> +A transport provides a mechanism for a pair of device-driver to
> +communicate virtqueue configurations and virtqueue memory location.


this is only communicated one way

> +
> +A transport provides a mechanism for the driver to identify the device
> +type.
> +
> +A transport allows one or more virtqueues for a given device-driver
> +pair.

no idea what does virtqueues for a pair mean.

> The number of virtqueues per pair are governed by the individual
> +device protocol.

what is device protocol?

> +
> +A transport provides a mechanism for the device and driver to notify
> +each other, for example regarding availability of a buffer on the
> +virtqueue.

notify should be more specific. about vq events?
this is only notified one way, not "each other".

> +
> +A transport provides a mechanism for the driver to initiate a reset of
> +the device.
> +
> +A transport provides a mechanism for the driver to read or modify the
> +device status.

I don't think reading status is strictly required, except for
FEATURES_OK bit.

-- 
MST


  reply	other threads:[~2024-07-24 11:06 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-11  7:48 [PATCH V7] virtio-transport: Add a new section to clarify transport requirements Viresh Kumar
2024-07-11  8:24 ` Cornelia Huck
2024-07-11  9:05   ` Viresh Kumar
2024-07-11 10:59   ` Michael S. Tsirkin
2024-07-11  8:41 ` Stefano Garzarella
2024-07-11  9:23   ` Viresh Kumar
2024-07-11 11:07     ` Michael S. Tsirkin
2024-07-11 11:10 ` Michael S. Tsirkin
2024-07-11 11:46   ` Cornelia Huck
2024-07-11 11:51     ` Michael S. Tsirkin
2024-07-11 11:59       ` Cornelia Huck
2024-07-11 14:30         ` Michael S. Tsirkin
2024-07-11 14:44           ` Cornelia Huck
2024-07-11 14:49             ` Michael S. Tsirkin
2024-07-11 14:59               ` Cornelia Huck
2024-07-24 10:45 ` Viresh Kumar
2024-07-24 11:05   ` Michael S. Tsirkin [this message]
2024-07-25  9:15     ` Viresh Kumar
2024-07-25  9:28       ` Michael S. Tsirkin
2024-07-25 10:55         ` Viresh Kumar
2024-07-25 12:24           ` Michael S. Tsirkin
2024-07-29  3:36             ` Viresh Kumar

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=20240724065845-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=cohuck@redhat.com \
    --cc=manos.pitsidianakis@linaro.org \
    --cc=mvaralar@redhat.com \
    --cc=parav@nvidia.com \
    --cc=vincent.guittot@linaro.org \
    --cc=viresh.kumar@linaro.org \
    --cc=virtio-comment@lists.linux.dev \
    /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