All of lore.kernel.org
 help / color / mirror / Atom feed
From: Halil Pasic <pasic@linux.ibm.com>
To: Parav Pandit <parav@nvidia.com>
Cc: <mst@redhat.com>, <virtio-dev@lists.oasis-open.org>,
	<cohuck@redhat.com>, <sgarzare@redhat.com>,
	<virtio-comment@lists.oasis-open.org>, <shahafs@nvidia.com>,
	Halil Pasic <pasic@linux.ibm.com>
Subject: [virtio-comment] Re: [PATCH v14 02/11] content.tex Replace virtqueue number with index
Date: Wed, 19 Apr 2023 18:08:39 +0200	[thread overview]
Message-ID: <20230419180839.2add099d.pasic@linux.ibm.com> (raw)
In-Reply-To: <20230419014639.919458-3-parav@nvidia.com>

On Wed, 19 Apr 2023 04:46:30 +0300
Parav Pandit <parav@nvidia.com> wrote:

> Replace virtqueue number with index to align to rest of the
> specification.
> 
> Fixes: https://github.com/oasis-tcs/virtio-spec/issues/163
> Signed-off-by: Parav Pandit <parav@nvidia.com>
> 
> ---
> changelog:
> v11->v12:
> - new patch
> ---
>  content.tex | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/content.tex b/content.tex
> index 43be58b..e79d722 100644
> --- a/content.tex
> +++ b/content.tex
> @@ -405,7 +405,7 @@ \section{Driver Notifications} \label{sec:Basic Facilities of a Virtio Device /
>  
>  When VIRTIO_F_NOTIFICATION_DATA has not been negotiated,
>  this notification involves sending the
> -virtqueue number to the device (method depending on the transport).
> +virtqueue index to the device (method depending on the transport).

This is not entirely accurate. If VIRTIO_F_NOTIF_CONFIG_DATA was
negotiated it is not the virtqueue index that is sent but the
vq_notif_config_data.

>  
>  However, some devices benefit from the ability to find out the
>  amount of available data in the queue without accessing the virtqueue in memory:
> @@ -789,13 +789,13 @@ \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits}
>    buffer notifications.
>    As mentioned in section \ref{sec:Basic Facilities of a Virtio Device / Driver notifications}, when the
>    driver is required to send an available buffer notification to the device, it
> -  sends the virtqueue number to be notified. The method of delivering
> +  sends the virtqueue index to be notified. The method of delivering
>    notifications is transport specific.
>    With the PCI transport, the device can optionally provide a per-virtqueue value
> -  for the driver to use in driver notifications, instead of the virtqueue number.
> +  for the driver to use in driver notifications, instead of the virtqueue index.
>    Some devices may benefit from this flexibility by providing, for example,
>    an internal virtqueue identifier, or an internal offset related to the
> -  virtqueue number.
> +  virtqueue index.
>  

And the above paragraph is supposed to make that point. 

I guess this is in some sense an improvement over the current state.
Thus:
Acked-by: Halil Pasic <pasic@linux.ibm.com>

But to get this really clean, we need to do some rewording here. Which
can be done on top of this series.


>    This feature indicates the availability of such value. The definition of the
>    data to be provided in driver notification and the delivery method is


This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: virtio-comment-subscribe@lists.oasis-open.org
Unsubscribe: virtio-comment-unsubscribe@lists.oasis-open.org
List help: virtio-comment-help@lists.oasis-open.org
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/


WARNING: multiple messages have this Message-ID (diff)
From: Halil Pasic <pasic@linux.ibm.com>
To: Parav Pandit <parav@nvidia.com>
Cc: <mst@redhat.com>, <virtio-dev@lists.oasis-open.org>,
	<cohuck@redhat.com>, <sgarzare@redhat.com>,
	<virtio-comment@lists.oasis-open.org>, <shahafs@nvidia.com>,
	Halil Pasic <pasic@linux.ibm.com>
Subject: [virtio-dev] Re: [PATCH v14 02/11] content.tex Replace virtqueue number with index
Date: Wed, 19 Apr 2023 18:08:39 +0200	[thread overview]
Message-ID: <20230419180839.2add099d.pasic@linux.ibm.com> (raw)
In-Reply-To: <20230419014639.919458-3-parav@nvidia.com>

On Wed, 19 Apr 2023 04:46:30 +0300
Parav Pandit <parav@nvidia.com> wrote:

> Replace virtqueue number with index to align to rest of the
> specification.
> 
> Fixes: https://github.com/oasis-tcs/virtio-spec/issues/163
> Signed-off-by: Parav Pandit <parav@nvidia.com>
> 
> ---
> changelog:
> v11->v12:
> - new patch
> ---
>  content.tex | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/content.tex b/content.tex
> index 43be58b..e79d722 100644
> --- a/content.tex
> +++ b/content.tex
> @@ -405,7 +405,7 @@ \section{Driver Notifications} \label{sec:Basic Facilities of a Virtio Device /
>  
>  When VIRTIO_F_NOTIFICATION_DATA has not been negotiated,
>  this notification involves sending the
> -virtqueue number to the device (method depending on the transport).
> +virtqueue index to the device (method depending on the transport).

This is not entirely accurate. If VIRTIO_F_NOTIF_CONFIG_DATA was
negotiated it is not the virtqueue index that is sent but the
vq_notif_config_data.

>  
>  However, some devices benefit from the ability to find out the
>  amount of available data in the queue without accessing the virtqueue in memory:
> @@ -789,13 +789,13 @@ \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits}
>    buffer notifications.
>    As mentioned in section \ref{sec:Basic Facilities of a Virtio Device / Driver notifications}, when the
>    driver is required to send an available buffer notification to the device, it
> -  sends the virtqueue number to be notified. The method of delivering
> +  sends the virtqueue index to be notified. The method of delivering
>    notifications is transport specific.
>    With the PCI transport, the device can optionally provide a per-virtqueue value
> -  for the driver to use in driver notifications, instead of the virtqueue number.
> +  for the driver to use in driver notifications, instead of the virtqueue index.
>    Some devices may benefit from this flexibility by providing, for example,
>    an internal virtqueue identifier, or an internal offset related to the
> -  virtqueue number.
> +  virtqueue index.
>  

And the above paragraph is supposed to make that point. 

I guess this is in some sense an improvement over the current state.
Thus:
Acked-by: Halil Pasic <pasic@linux.ibm.com>

But to get this really clean, we need to do some rewording here. Which
can be done on top of this series.


>    This feature indicates the availability of such value. The definition of the
>    data to be provided in driver notification and the delivery method is


---------------------------------------------------------------------
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-04-19 16:08 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-19  1:46 [virtio-comment] [PATCH v14 00/11] Rename queue number to queue index Parav Pandit
2023-04-19  1:46 ` [virtio-dev] " Parav Pandit
2023-04-19  1:46 ` [virtio-comment] [PATCH v14 01/11] content: Add vq index text Parav Pandit
2023-04-19  1:46   ` [virtio-dev] " Parav Pandit
2023-04-19  1:46 ` [virtio-comment] [PATCH v14 02/11] content.tex Replace virtqueue number with index Parav Pandit
2023-04-19  1:46   ` [virtio-dev] " Parav Pandit
2023-04-19 16:08   ` Halil Pasic [this message]
2023-04-19 16:08     ` [virtio-dev] " Halil Pasic
2023-04-19 16:11     ` [virtio-comment] " Parav Pandit
2023-04-19 16:11       ` [virtio-dev] " Parav Pandit
2023-04-19  1:46 ` [virtio-comment] [PATCH v14 03/11] content: Rename confusing queue_notify_data and vqn names Parav Pandit
2023-04-19  1:46   ` [virtio-dev] " Parav Pandit
2023-04-21 22:37   ` [virtio-comment] " Halil Pasic
2023-04-21 22:37     ` [virtio-dev] " Halil Pasic
2023-04-24 14:00     ` [virtio-comment] " Michael S. Tsirkin
2023-04-24 14:00       ` [virtio-dev] " Michael S. Tsirkin
2023-04-24 16:11     ` [virtio-comment] " Parav Pandit
2023-04-24 16:11       ` [virtio-dev] " Parav Pandit
2023-04-19  1:46 ` [virtio-comment] [PATCH v14 04/11] transport-pci: Avoid first vq index reference Parav Pandit
2023-04-19  1:46   ` [virtio-dev] " Parav Pandit
2023-04-24 13:29   ` [virtio-comment] " Halil Pasic
2023-04-24 13:29     ` [virtio-dev] " Halil Pasic
2023-04-25  4:10     ` Parav Pandit
2023-04-25  4:10       ` [virtio-dev] " Parav Pandit
2023-04-25 13:02       ` [virtio-comment] " Halil Pasic
2023-04-25 13:02         ` Halil Pasic
2023-04-25 13:15         ` [virtio-comment] " Michael S. Tsirkin
2023-04-25 13:15           ` Michael S. Tsirkin
2023-04-25 16:20           ` [virtio-comment] " Halil Pasic
2023-04-25 16:20             ` Halil Pasic
2023-04-25 21:11             ` [virtio-comment] " Michael S. Tsirkin
2023-04-25 21:11               ` Michael S. Tsirkin
2023-04-19  1:46 ` [virtio-comment] [PATCH v14 05/11] transport-mmio: Rename QueueNum register Parav Pandit
2023-04-19  1:46   ` [virtio-dev] " Parav Pandit
2023-04-24 12:53   ` [virtio-comment] " Halil Pasic
2023-04-24 12:53     ` Halil Pasic
2023-04-19  1:46 ` [virtio-comment] [PATCH v14 06/11] transport-mmio: Avoid referring to zero based index Parav Pandit
2023-04-19  1:46   ` [virtio-dev] " Parav Pandit
2023-04-25 10:59   ` [virtio-comment] " Halil Pasic
2023-04-25 10:59     ` [virtio-dev] " Halil Pasic
2023-04-19  1:46 ` [virtio-comment] [PATCH v14 07/11] transport-ccw: Rename queue depth/size to other transports Parav Pandit
2023-04-19  1:46   ` [virtio-dev] " Parav Pandit
2023-04-24 12:58   ` [virtio-comment] " Halil Pasic
2023-04-24 12:58     ` Halil Pasic
2023-04-19  1:46 ` [virtio-comment] [PATCH v14 08/11] transport-ccw: Refer to the vq by its index Parav Pandit
2023-04-19  1:46   ` [virtio-dev] " Parav Pandit
2023-04-19  1:46 ` [virtio-comment] [PATCH v14 09/11] virtio-net: Avoid duplicate receive queue example Parav Pandit
2023-04-19  1:46   ` [virtio-dev] " Parav Pandit
2023-04-24 13:10   ` [virtio-comment] " Halil Pasic
2023-04-24 13:10     ` Halil Pasic
2023-04-19  1:46 ` [virtio-comment] [PATCH v14 10/11] virtio-net: Describe RSS using rss rq id Parav Pandit
2023-04-19  1:46   ` [virtio-dev] " Parav Pandit
2023-04-24 13:22   ` [virtio-comment] " Halil Pasic
2023-04-24 13:22     ` [virtio-dev] " Halil Pasic
2023-04-24 13:58     ` [virtio-comment] " Michael S. Tsirkin
2023-04-24 13:58       ` [virtio-dev] " Michael S. Tsirkin
2023-04-24 15:30       ` [virtio-comment] " Parav Pandit
2023-04-24 15:30         ` [virtio-dev] " Parav Pandit
2023-04-24 15:54         ` [virtio-comment] " Michael S. Tsirkin
2023-04-24 15:54           ` [virtio-dev] " Michael S. Tsirkin
2023-04-24 16:02           ` [virtio-comment] " Parav Pandit
2023-04-24 16:02             ` [virtio-dev] " Parav Pandit
2023-04-19  1:46 ` [virtio-comment] [PATCH v14 11/11] virtio-net: Update vqn to vq_index for cvq cmds Parav Pandit
2023-04-19  1:46   ` [virtio-dev] " Parav Pandit
2023-04-24 13:26   ` [virtio-comment] " Halil Pasic
2023-04-24 13:26     ` Halil Pasic

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=20230419180839.2add099d.pasic@linux.ibm.com \
    --to=pasic@linux.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=mst@redhat.com \
    --cc=parav@nvidia.com \
    --cc=sgarzare@redhat.com \
    --cc=shahafs@nvidia.com \
    --cc=virtio-comment@lists.oasis-open.org \
    --cc=virtio-dev@lists.oasis-open.org \
    /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.