Discussion of the VIRTIO specification
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Parav Pandit <parav@nvidia.com>
Cc: Cornelia Huck <cohuck@redhat.com>,
	"virtio-comment@lists.oasis-open.org"
	<virtio-comment@lists.oasis-open.org>,
	"hengqi@linux.alibaba.com" <hengqi@linux.alibaba.com>,
	"xuanzhuo@linux.alibaba.com" <xuanzhuo@linux.alibaba.com>,
	Shahaf Shuler <shahafs@nvidia.com>
Subject: Re: [virtio-comment] RE: [PATCH v3 2/2] content: Support enabling virtqueue after DRIVER_OK stage
Date: Wed, 25 Oct 2023 06:24:25 -0400	[thread overview]
Message-ID: <20231025062207-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <PH0PR12MB548149234F6B8F894387FAAADCDEA@PH0PR12MB5481.namprd12.prod.outlook.com>

On Wed, Oct 25, 2023 at 09:55:20AM +0000, Parav Pandit wrote:
> Hi Cornelia,
> 
> > From: Parav Pandit <parav@nvidia.com>
> > Sent: Monday, October 23, 2023 8:52 PM
> > To: Cornelia Huck <cohuck@redhat.com>; Michael S. Tsirkin
> > <mst@redhat.com>
> > Cc: virtio-comment@lists.oasis-open.org; hengqi@linux.alibaba.com;
> > xuanzhuo@linux.alibaba.com; Shahaf Shuler <shahafs@nvidia.com>
> > Subject: RE: [virtio-comment] RE: [PATCH v3 2/2] content: Support enabling
> > virtqueue after DRIVER_OK stage
> > 
> > 
> > > From: virtio-comment@lists.oasis-open.org <virtio-comment@lists.oasis-
> > > open.org> On Behalf Of Cornelia Huck
> > > Sent: Monday, October 23, 2023 8:31 PM
> > >
> > > On Mon, Oct 23 2023, Parav Pandit <parav@nvidia.com> wrote:
> > >
> > > >> From: Cornelia Huck <cohuck@redhat.com>
> > > >> Sent: Monday, October 23, 2023 7:58 PM
> > > >
> > > >> On Mon, Oct 23 2023, Parav Pandit <parav@nvidia.com> wrote:
> > > >>
> > > >> >> From: virtio-comment@lists.oasis-open.org
> > > >> >> <virtio-comment@lists.oasis- open.org> On Behalf Of Cornelia
> > > >> >> Huck
> > > >> >> Sent: Monday, October 23, 2023 7:27 PM
> > > >> >
> > > >> >> Well, there are  still comments from me here that post-date v4
> > > >> >> (please wait for a bit before posting another version!), so I'll
> > > >> >> continue waiting for them to be addressed first.
> > > >> > The last one was [1].
> > > >> > Which I replied few days ago at [2].
> > > >> >
> > > >> > [1]
> > > >> > https://lists.oasis-open.org/archives/virtio-comment/202310/msg00
> > > >> > 24
> > > >> > 0.h
> > > >> > tml [2]
> > > >> > https://lists.oasis-open.org/archives/virtio-comment/202310/msg00
> > > >> > 24
> > > >> > 2.h
> > > >> > tml
> > > >>
> > > >> I still have some open questions from <87sf68cjn0.fsf@redhat.com>
> > > >> (first and last paragraph.)
> > > >
> > > > Above link is not accessible to me. ☹
> > >
> > > That's not a link, but a message id... many mail clients support
> > > searching by it, and you can also get it from lore:
> > >
> > > https://lore.kernel.org/all/87sf68cjn0.fsf@redhat.com/
> > >
> > > > I addressed your comments/questions in v4.
> > > > Can you please check v4 if they are addressed? I rewrote as you
> > > > suggested in
> > > v3.
> > >
> > > This was for points you did not agree with. (Again, it might be
> > > helpful to wait with posting a new version until discussion has
> > > somewhat
> > > concluded.)
> > Sure, will wait next time.
> > 
> > Your comment was,
> > =====
> > This is not really clear to me just from this text, especially if you just wrote
> > above that enabling or re-enabling is something different... my understanding
> > would be:
> > 
> > - if neither dynamic vqs nor queue reset are supported or negotiated,
> >   the only way to enable a vq is before DRIVER_OK, during setup
> > - both of these features rely on the transport supporting enabling
> >   individual queues (either a queue that has not been enabled before, or
> >   a queue that has been reset)
> > - the transport is supposed to use the same mechanism for either
> > 
> > Did I get it right? If so, I think we should make it a bit more clear.
> > =====
> > 
> > Above is clarified in below wording without complicating the queue_reset here.
> > 
> > Does that look ok to you?
> > 
> > +When VIRTIO_F_RING_DYNAMIC is not negotiated, the driver enables the
> > +virtqueues during the device initialization sequence, i.e. after the
> > +device sets the FEATURES_OK status bit

all status bits are set by driver

> and before the driver setting the


setting -> sets

> > DRIVER_OK status bit.
> > +
> > +When VIRTIO_F_RING_DYNAMIC is negotiated, the driver is not required to

try to avoid "required" outside conformance sections though pls.
And when used, we upper-case it.

> > +enable every virtqueue it wants to use before setting the DRIVER_OK
> > +status bit; the driver can choose to enable a virtqueue even after the
> > +driver has set the DRIVER_OK status bit. The virtqueue enable mechanism is
> > transport specific.
> > +
> 
> Can you please respond?
> We must make progress with this and the flow filters which are depending on this for a long time now.


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/


  parent reply	other threads:[~2023-10-25 10:24 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-02  5:15 [virtio-comment] [PATCH v3 0/2] Support enabling virtqueue after DRIVER_OK Parav Pandit
2023-10-02  5:16 ` [virtio-comment] [PATCH v3 1/2] conformance: Add missing virtqueue reset conformance references Parav Pandit
2023-10-05 16:53   ` Eugenio Perez Martin
2023-10-02  5:16 ` [virtio-comment] [PATCH v3 2/2] content: Support enabling virtqueue after DRIVER_OK stage Parav Pandit
2023-10-05 16:53   ` Eugenio Perez Martin
2023-10-12  6:39   ` [virtio-comment] " Xuan Zhuo
2023-10-17 12:25   ` Cornelia Huck
2023-10-17 12:48     ` [virtio-comment] " Parav Pandit
2023-10-18 10:25       ` Cornelia Huck
2023-10-18 10:28         ` Michael S. Tsirkin
2023-10-18 11:03           ` Cornelia Huck
2023-10-18 11:12             ` Michael S. Tsirkin
2023-10-18 11:12             ` Parav Pandit
2023-10-19 13:57               ` Parav Pandit
2023-10-23 13:29                 ` Parav Pandit
2023-10-23 13:57                   ` Cornelia Huck
2023-10-23 14:00                     ` Parav Pandit
2023-10-23 14:27                       ` Cornelia Huck
2023-10-23 14:53                         ` Parav Pandit
2023-10-23 15:01                           ` Cornelia Huck
2023-10-23 15:21                             ` Parav Pandit
2023-10-25  9:55                               ` Parav Pandit
2023-10-25 10:18                                 ` Cornelia Huck
2023-10-25 10:20                                   ` Parav Pandit
2023-10-25 10:24                                 ` Michael S. Tsirkin [this message]
2023-10-26  3:30                                   ` Parav Pandit
2023-10-26  5:39                                     ` Michael S. Tsirkin
2023-10-26  6:02                                       ` Parav Pandit
2023-10-26  6:24                                         ` Michael S. Tsirkin
2023-10-26  6:47                                           ` Parav Pandit
2023-10-26  8:27                                         ` Eugenio Perez Martin
2023-10-26  8:38                                           ` Parav Pandit
2023-10-26  9:15                                             ` Michael S. Tsirkin
2023-10-26  9:24                                               ` Parav Pandit
2023-10-26  9:27                                                 ` Michael S. Tsirkin
2023-10-26  9:45                                                   ` Parav Pandit
2023-10-27 10:13                                                     ` Cornelia Huck
2023-10-27 10:28                                                       ` Parav Pandit
2023-10-27 11:46                                                         ` Cornelia Huck
2023-10-27 11:55                                                           ` Parav Pandit
2023-10-26  9:18                                             ` Michael S. Tsirkin
2023-10-26  9:22                                               ` Parav Pandit
2023-10-26  9:26                                                 ` Michael S. Tsirkin
2023-10-02  5:20 ` [virtio-comment] RE: [PATCH v3 0/2] Support enabling virtqueue after DRIVER_OK Parav Pandit
2023-10-10  4:57   ` Parav Pandit
2023-10-16 16:30     ` Parav Pandit
2023-10-17 11:58       ` Cornelia Huck
2023-10-17 12:50         ` Parav Pandit

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=20231025062207-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=cohuck@redhat.com \
    --cc=hengqi@linux.alibaba.com \
    --cc=parav@nvidia.com \
    --cc=shahafs@nvidia.com \
    --cc=virtio-comment@lists.oasis-open.org \
    --cc=xuanzhuo@linux.alibaba.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