From: "Michael S. Tsirkin" <mst@redhat.com>
To: Parav Pandit <parav@nvidia.com>
Cc: "Cornelia Huck" <cohuck@redhat.com>,
"Viresh Kumar" <viresh.kumar@linaro.org>,
"virtio-comment@lists.linux.dev" <virtio-comment@lists.linux.dev>,
"Vincent Guittot" <vincent.guittot@linaro.org>,
"Alex Bennée" <alex.bennee@linaro.org>,
"stratos-dev@op-lists.linaro.org"
<stratos-dev@op-lists.linaro.org>,
"Manos Pitsidianakis" <manos.pitsidianakis@linaro.org>
Subject: Re: [PATCH V5] virtio-transport: Clarify requirements
Date: Wed, 12 Jun 2024 03:19:07 -0400 [thread overview]
Message-ID: <20240612031606-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <PH0PR12MB5481B721659E596A77AAB756DCC72@PH0PR12MB5481.namprd12.prod.outlook.com>
On Tue, Jun 11, 2024 at 05:40:45PM +0000, Parav Pandit wrote:
>
>
> > From: Cornelia Huck <cohuck@redhat.com>
> > Sent: Tuesday, June 11, 2024 8:59 PM
> >
> > On Tue, Jun 11 2024, Parav Pandit <parav@nvidia.com> wrote:
> >
> > > Hi Viresh,
> > >
> > >> From: Viresh Kumar <viresh.kumar@linaro.org>
> > >> Sent: Tuesday, June 11, 2024 11:06 AM
> > >
> > > [..]
> > >> diff --git a/content.tex b/content.tex index
> > >> 0a62dce5f65f..e2a836327818 100644
> > >> --- a/content.tex
> > >> +++ b/content.tex
> > >> @@ -631,8 +631,86 @@ \section{Device Cleanup}\label{sec:General
> > >> Initialization And Device Operation /
> > >>
> > >> \chapter{Virtio Transport Options}\label{sec:Virtio Transport
> > >> Options}
> > >>
> > >> -Virtio can use various different buses, thus the standard is split
> > >> -into virtio general and bus-specific sections.
> > >> +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 and the driver, like device discovery, exchanging
> > >> +capabilities, 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.
> > >> +
> > >> +The standard contains sections describing the transport-agnostic
> > >> +parts of virtio, and sections describing how individual transports
> > >> +implement virtio.
> > >> +
> > >> +\section{Virtio Transport Requirements}\label{sec:Virtio Transport
> > >> +Options / Virtio Transport Requirements}
> > >> +
> > >> +There are some mechanisms that any transport is required to
> > >> +implement, and some requirements that devices and drivers are
> > required to follow.
> > >> +
> > >> +\subsection{Transport Requirements}\label{sec:Virtio Transport
> > >> +Options / Virtio Transport Requirements / Transport Requirements}
> > >> +
> > >> +A transport provides a mechanism for the driver to discover the device.
> > >> +
> > > I would like to add a normative.
> > >
> > > A transport MAY provide a mechanism to create and destroy virtio devices.
> > >
> > > (for example PCI transport provides this).
> > >
> >
> > I'm not a fan of that statement: the transport already allows for the driver to
> > discover a device, whether that happens statically or dynamically really is the
> > choice of the transport, and I don't think we should go into that much detail.
> >
> Discovery != life cycle management of the device.
> The whole purpose of this section to clarify the transport requirements scope and guidelines for new transport.
> And if its incomplete I don't see a point of having this section at all.
I see it as complementing the section about adding new devices. So we
give some hints on how to add a new transport, basically a transport
developer is documenting his/her journey for others to follow. Yes this
does add support overhead, it will get out of sync so we better make
this clear straight away. Not enough transports are going to be added
to spend too many cycles making this complete, I think.
> Anyways, not too critical for me either.
>
> > [I'll go offline now, so please don't expect further responses from me right
> > now...]
prev parent reply other threads:[~2024-06-12 7:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-11 5:35 [PATCH V5] virtio-transport: Clarify requirements Viresh Kumar
2024-06-11 6:10 ` Parav Pandit
2024-06-11 6:58 ` Viresh Kumar
2024-06-11 7:41 ` Parav Pandit
2024-06-11 8:41 ` Viresh Kumar
2024-06-11 8:54 ` Parav Pandit
2024-06-13 9:32 ` Viresh Kumar
2024-06-21 8:05 ` Viresh Kumar
2024-06-21 9:39 ` Michael S. Tsirkin
2024-06-21 9:43 ` Viresh Kumar
2024-06-21 10:08 ` Michael S. Tsirkin
2024-06-11 15:28 ` Cornelia Huck
2024-06-11 17:40 ` Parav Pandit
2024-06-12 7:19 ` Michael S. Tsirkin [this message]
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=20240612031606-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=parav@nvidia.com \
--cc=stratos-dev@op-lists.linaro.org \
--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