public inbox for virtio-dev@lists.linux.dev
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Parav Pandit <parav@nvidia.com>
Cc: "virtio-comment@lists.oasis-open.org"
	<virtio-comment@lists.oasis-open.org>,
	"cohuck@redhat.com" <cohuck@redhat.com>,
	"david.edmondson@oracle.com" <david.edmondson@oracle.com>,
	"virtio-dev@lists.oasis-open.org"
	<virtio-dev@lists.oasis-open.org>,
	"sburla@marvell.com" <sburla@marvell.com>,
	"jasowang@redhat.com" <jasowang@redhat.com>,
	Yishai Hadas <yishaih@nvidia.com>,
	Maor Gottlieb <maorg@nvidia.com>,
	Shahaf Shuler <shahafs@nvidia.com>
Subject: Re: [virtio-dev] Re: [PATCH v6 4/4] transport-pci: Introduce group legacy group member config region access
Date: Mon, 19 Jun 2023 13:26:02 -0400	[thread overview]
Message-ID: <20230619132018-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <PH0PR12MB5481506017B439B07FC1253DDC5FA@PH0PR12MB5481.namprd12.prod.outlook.com>

On Mon, Jun 19, 2023 at 05:11:19PM +0000, Parav Pandit wrote:
> 
> 
> > From: virtio-dev@lists.oasis-open.org <virtio-dev@lists.oasis-open.org> On
> > Behalf Of Michael S. Tsirkin
> > Sent: Monday, June 19, 2023 1:04 PM
> 
> > On Tue, Jun 13, 2023 at 08:30:15PM +0300, Parav Pandit wrote:
> > > +Even though virtqueue driver notifications can be communicated
> > > +through administration virtqueue, if the group member device support
> > > +such notifications using a memory-mapped operation, such driver
> > > +notifications are sent using a group member device defined notification
> > region.
> > 
> > I still feel we should support sending notifications to owner at least optionally.
> > For example:
> >
> Let's not please keep discussing this yet again.
> I won't be able to.
> We have captured this alternative already in the cover letter in the alternatives section.
> 
> This optional capability can be added when there is a _real_ implementation by some hw.
>  
> > 
> > \begin{lstlisting}
> > struct virtio_pci_owner_legacy_notify_cap {
> >         struct virtio_pci_cap cap;
> >         le32 notify_off_multiplier; /* Multiplier for member id. */ }; \end{lstlisting}
> > 
> > \field{notify_off_multiplier} is combined with the \field{member id} to derive
> > an address within a BAR.
> > 
> > \begin{lstlisting}
> >         cap.offset + member_id * notify_off_multiplier \end{lstlisting}
> > 
> > 
> > 
> > We also need, as part of theory of operation, text that reads something like
> > "accessing the member device legacy interface using one of XYZ commands has
> > the same effect as accessing it using the legacy interface".
> > 
> Ack. I will add this.
> 
> > 
> > 
> > Also, do all VFs support legacy interface with these commands or none at all?
> >
> Right.
>  
> > 
> > Also these devices will use non-transitional ID but they in fact do have a legacy
> > interface so using this definition they are transitional devices. Maybe we need
> > to add when we describe the device ID text like "non transitional devices and
> > transitional devices utilizing commands XYZ" ...?
> 
> Transitional device has specific meaning, I am not sure we should muddy it.



To simplify transition from these earlier draft interfaces,
a device MAY implement:

\begin{description}
\item[Transitional Device]
        a device supporting both drivers conforming to this
        specification, and allowing legacy drivers.
\end{description}


I agree it can be read this way. The issue is a lot of text
in the spec just assumes that "has legacy interface == transitional
device".



For example:
When using the legacy interface the driver MAY access 
the device-specific configuration region using any width accesses, and
a transitional device MUST present driver with the same results as
when accessed using the ``natural'' access method (i.e.
32-bit accesses for 32-bit fields, etc).


If we break the assumption we need to audit the spec for this
assumption and again, I really would rather not.




-- 
MST


---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


  reply	other threads:[~2023-06-19 17:26 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-13 17:30 [virtio-dev] [PATCH v6 0/4] admin: Introduce legacy registers access using AQ Parav Pandit
2023-06-13 17:30 ` [virtio-dev] [PATCH v6 1/4] admin: Split opcode table rows with a line Parav Pandit
2023-06-13 17:30 ` [virtio-dev] [PATCH v6 2/4] admin: Fix section numbering Parav Pandit
2023-06-13 17:30 ` [virtio-dev] [PATCH v6 3/4] admin: Add group member legacy register access commands Parav Pandit
2023-06-19 16:20   ` [virtio-dev] " Michael S. Tsirkin
2023-06-19 16:29     ` [virtio-dev] " Parav Pandit
2023-06-19 16:40       ` [virtio-dev] " Michael S. Tsirkin
2023-06-19 16:45         ` [virtio-dev] " Parav Pandit
2023-06-19 17:10           ` [virtio-dev] " Michael S. Tsirkin
2023-06-19 17:21             ` Parav Pandit
2023-06-19 17:33               ` Michael S. Tsirkin
2023-06-19 17:38                 ` Parav Pandit
2023-06-13 17:30 ` [virtio-dev] [PATCH v6 4/4] transport-pci: Introduce group legacy group member config region access Parav Pandit
2023-06-19 16:16   ` [virtio-dev] " Michael S. Tsirkin
2023-06-19 21:07     ` [virtio-dev] " Parav Pandit
2023-06-21 20:05       ` [virtio-dev] Re: [virtio-comment] " Michael S. Tsirkin
2023-06-21 20:22         ` [virtio-dev] " Parav Pandit
2023-06-21 20:31           ` [virtio-dev] " Michael S. Tsirkin
2023-06-21 20:43             ` [virtio-dev] " Parav Pandit
2023-06-19 16:37   ` [virtio-dev] " Michael S. Tsirkin
2023-06-19 16:39     ` [virtio-dev] " Parav Pandit
2023-06-19 17:19       ` [virtio-dev] " Michael S. Tsirkin
2023-06-19 17:26         ` [virtio-dev] " Parav Pandit
2023-06-19 17:37           ` [virtio-dev] " Michael S. Tsirkin
2023-06-19 17:45             ` [virtio-dev] " Parav Pandit
2023-06-19 17:57               ` [virtio-dev] " Michael S. Tsirkin
2023-06-19 18:07                 ` [virtio-dev] " Parav Pandit
2023-06-20 14:12                   ` Parav Pandit
2023-06-21 15:50                     ` Parav Pandit
2023-06-21 15:56                       ` [virtio-dev] " Michael S. Tsirkin
2023-06-21 16:01                         ` [virtio-dev] " Parav Pandit
2023-06-21 19:43                           ` [virtio-dev] Re: [virtio-comment] " Michael S. Tsirkin
2023-06-21 20:04                             ` [virtio-dev] " Parav Pandit
2023-06-21 20:08                               ` [virtio-dev] " Michael S. Tsirkin
2023-06-19 18:00               ` [virtio-dev] " Michael S. Tsirkin
2023-06-19 18:12                 ` [virtio-dev] " Parav Pandit
2023-06-21 19:47                   ` [virtio-dev] Re: [virtio-comment] " Michael S. Tsirkin
2023-06-19 17:04   ` [virtio-dev] " Michael S. Tsirkin
2023-06-19 17:11     ` Parav Pandit
2023-06-19 17:26       ` Michael S. Tsirkin [this message]
2023-06-19 17:35         ` Parav Pandit
2023-06-19 17:46           ` Michael S. Tsirkin
2023-06-20  0:14             ` Parav Pandit
2023-06-20 10:21               ` Michael S. Tsirkin
2023-06-21  1:09                 ` Parav Pandit
2023-06-21  5:05                   ` Michael S. Tsirkin
2023-06-19 12:38 ` [virtio-dev] RE: [PATCH v6 0/4] admin: Introduce legacy registers access using AQ Parav Pandit
2023-06-19 15:18   ` [virtio-dev] " Michael S. Tsirkin
2023-06-19 15:58     ` [virtio-dev] " Parav Pandit
2023-06-19 16:28 ` [virtio-dev] " Michael S. Tsirkin

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=20230619132018-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=cohuck@redhat.com \
    --cc=david.edmondson@oracle.com \
    --cc=jasowang@redhat.com \
    --cc=maorg@nvidia.com \
    --cc=parav@nvidia.com \
    --cc=sburla@marvell.com \
    --cc=shahafs@nvidia.com \
    --cc=virtio-comment@lists.oasis-open.org \
    --cc=virtio-dev@lists.oasis-open.org \
    --cc=yishaih@nvidia.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