All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cornelia Huck <cohuck@redhat.com>
To: Parav Pandit <parav@nvidia.com>, "Michael S. Tsirkin" <mst@redhat.com>
Cc: Eugenio Perez Martin <eperezma@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: Fri, 27 Oct 2023 12:13:27 +0200	[thread overview]
Message-ID: <87msw4s794.fsf@redhat.com> (raw)
In-Reply-To: <PH0PR12MB5481F967B7040B19272D1253DCDDA@PH0PR12MB5481.namprd12.prod.outlook.com>

On Thu, Oct 26 2023, Parav Pandit <parav@nvidia.com> wrote:

>> From: Michael S. Tsirkin <mst@redhat.com>
>> Sent: Thursday, October 26, 2023 2:58 PM
>> 
>> On Thu, Oct 26, 2023 at 09:24:06AM +0000, Parav Pandit wrote:
>> >
>> > > From: Michael S. Tsirkin <mst@redhat.com>
>> > > Sent: Thursday, October 26, 2023 2:46 PM
>> >
>> > > > So, this will still provide the unified approach when/if needed on
>> > > > other
>> > > devices.
>> > >
>> > > What do you want to know? Whether dynamically adding/deleting queues
>> > > is useful generally? For example, queue per CPU is not uncommon to
>> > > avoid need for locks. In the presence of CPU hotplug, the natural
>> > > thing to do is to add/delete them.
>> > So for those devices who care for such performance, it is reasonable for them
>> to have the cvq providing channel for complex and dynamic commands.
>> 
>> Again, let's please not waste time adding this piecemeal to each device type,
>> this is clearly a generic thing that belongs in the core.
>
> Maybe I didn't explain well.
>
> I am proposing a generic way for all device types as following.
> 1. create cvq as main communication channel for resource create/destroy
> 2. create resource dynamically using this cvq
>
> These are common commands defined across all device types in basic facilities section.
> Those devices which has cvq, they define how to transport these generic defined commands.
> Those devices which do not have cvq, but when they need dynamic resources, they will define and create one cvq.
> As such devices will likely need more than just dynamic vq creation, for which it will need cvq anyway.

I think that is too complicated: not all devices will want to add a
control vq for resource management, especially if other mechanisms are
already in use. Just using a generic mechanism guarded by a feature bit
seems much simpler.


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/


  reply	other threads:[~2023-10-27 10:13 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
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 [this message]
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=87msw4s794.fsf@redhat.com \
    --to=cohuck@redhat.com \
    --cc=eperezma@redhat.com \
    --cc=hengqi@linux.alibaba.com \
    --cc=mst@redhat.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 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.