All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Nikos Dragazis <ndragazis@arrikto.com>
Cc: virtio-dev@lists.oasis-open.org, "Michael S . Tsirkin" <mst@redhat.com>
Subject: Re: [virtio-dev] [PATCH v5 03/10] vhost-user: add requirements for the notification capability
Date: Thu, 23 Jul 2020 07:16:05 +0100	[thread overview]
Message-ID: <20200723061605.GB268427@stefanha-x1.localdomain> (raw)
In-Reply-To: <2561d1a2-e57d-cab5-0fe5-7394bb6032ce@arrikto.com>

[-- Attachment #1: Type: text/plain, Size: 2335 bytes --]

On Fri, Jul 17, 2020 at 07:02:18PM +0300, Nikos Dragazis wrote:
> On 17/7/20 12:34 μ.μ., Stefan Hajnoczi wrote:
> 
> > On Mon, May 18, 2020 at 11:37:14PM +0300, Nikos Dragazis wrote:
> > > The configuration structure for the notification capability has certain
> > > device/driver requirements, similar to those of the MSI-X vector
> > > configuration. Add these requirements to the device spec.
> > > 
> > > Signed-off-by: Nikos Dragazis <ndragazis@arrikto.com>
> > > ---
> > >   virtio-vhost-user.tex | 42 ++++++++++++++++++++++++++++++++++++++++++
> > >   1 file changed, 42 insertions(+)
> > > 
> > > diff --git a/virtio-vhost-user.tex b/virtio-vhost-user.tex
> > > index 13ecd41..7a8cd9c 100644
> > > --- a/virtio-vhost-user.tex
> > > +++ b/virtio-vhost-user.tex
> > > @@ -275,6 +275,48 @@ \subsubsection{Notification structure layout}\label{sec:Device Types / Vhost-use
> > >   \field{VIRTIO_MSI_NO_VECTOR} to \field{notification_msix_vector} to change the
> > >   MSI-X vector for that notification.
> > > +\devicenormative{\paragraph}{Notification capability}{Device Types / Vhost-user Device Backend / Additional Device Resources over PCI / Notification capability}
> > > +
> > > +If MSI-X is available, device MUST support mapping any master queue
> > > +event to any valid vector 0 to MSI-X \field{Table Size}. Here
> > This section combines two things:
> > 1. vhost-user concepts -> VIRTIO notifications
> > 2. VIRTIO notifications -> VIRTIO PCI transport MSI-X implementation of
> >     notifications
> > 
> > I think this should be split:
> > 1. The virtio-vhost-user device spec should explain that vhost-user queue
> >     events are mapped to VIRTIO notifications
> > 2. The PCI transport spec should explain how notifications are mapped to
> >     MSI-X
> > 
> > This way other VIRTIO device types will be able to use notifications too
> > without everyone explaining MSI-X specifics. Also it won't tie
> > virtio-vhost-user to VIRTIO PCI.
> 
> If I understand correctly, you are suggesting that we should standardize
> the notification resource, similarly to the shared memory resource, so
> that any device can use it. Is that so?

Yes. Notifications and doorbells should become part of the core VIRTIO
device model. That way other devices can use them too.

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2020-07-23  6:16 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-18 20:37 [virtio-dev] [PATCH v5 00/10] introduce virtio vhost-user backend device type Nikos Dragazis
2020-05-18 20:37 ` [virtio-dev] [PATCH v5 01/10] vhost-user: add vhost-user " Nikos Dragazis
2020-07-16 16:45   ` Alex Bennée
2020-07-17  9:26     ` Stefan Hajnoczi
2020-07-17 10:28       ` Alex Bennée
2020-07-17 11:17       ` Nikos Dragazis
2020-07-20  9:37         ` Alex Bennée
2020-07-21 11:42           ` Nikos Dragazis
2020-07-23  6:15         ` Stefan Hajnoczi
2020-07-24 13:14           ` Nikos Dragazis
2020-07-24 14:41       ` Michael S. Tsirkin
2020-07-24 17:31         ` Nikos Dragazis
2020-07-27 12:25           ` Stefan Hajnoczi
2020-07-27 18:59             ` Nikos Dragazis
2020-07-29 13:52               ` Michael S. Tsirkin
2020-07-29 21:05                 ` Nikos Dragazis
2020-08-24 14:43                   ` Nikos Dragazis
2020-07-17 16:52     ` Nikos Dragazis
2020-05-18 20:37 ` [virtio-dev] [PATCH v5 02/10] vhost-user: minor fixes Nikos Dragazis
2020-07-16 16:48   ` Alex Bennée
2020-07-17  9:27   ` Stefan Hajnoczi
2020-05-18 20:37 ` [virtio-dev] [PATCH v5 03/10] vhost-user: add requirements for the notification capability Nikos Dragazis
2020-07-17  9:34   ` Stefan Hajnoczi
2020-07-17 16:02     ` Nikos Dragazis
2020-07-23  6:16       ` Stefan Hajnoczi [this message]
2020-05-18 20:37 ` [virtio-dev] [PATCH v5 04/10] vhost-user: update shared memory capability Nikos Dragazis
2020-07-17  9:36   ` Stefan Hajnoczi
2020-07-17 15:00     ` Nikos Dragazis
2020-05-18 20:37 ` [virtio-dev] [PATCH v5 05/10] vhost-user: add conformance targets and clauses Nikos Dragazis
2020-07-17  9:37   ` Stefan Hajnoczi
2020-07-20 15:01   ` Alex Bennée
2020-05-18 20:37 ` [virtio-dev] [PATCH v5 06/10] vhost-user: change the device id Nikos Dragazis
2020-07-20 15:03   ` Alex Bennée
2020-05-18 20:37 ` [virtio-dev] [PATCH v5 07/10] vhost-user: minor fix on status register Nikos Dragazis
2020-07-17  9:39   ` Stefan Hajnoczi
2020-05-18 20:37 ` [virtio-dev] [PATCH v5 08/10] vhost-user: remove the extra PCI capabilities Nikos Dragazis
2020-07-17  9:48   ` Stefan Hajnoczi
2020-07-17 15:03     ` Nikos Dragazis
2020-07-23  6:29       ` Stefan Hajnoczi
2020-07-24 13:41         ` Nikos Dragazis
2020-05-18 20:37 ` [virtio-dev] [PATCH v5 09/10] vhost-user: intercept slave's reply to VHOST_USER_GET_PROTOCOL_FEATURES Nikos Dragazis
2020-07-17  9:57   ` Stefan Hajnoczi
2020-07-17 15:37     ` Nikos Dragazis
2020-07-23  6:32       ` Stefan Hajnoczi
2020-05-18 20:37 ` [virtio-dev] [PATCH v5 10/10] vhost-user: clarify that we are talking about slave-initiated messages Nikos Dragazis
2020-07-17  9:59   ` Stefan Hajnoczi
2020-06-24 18:01 ` [virtio-dev] [PATCH v5 00/10] introduce virtio vhost-user backend device type Nikos Dragazis

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=20200723061605.GB268427@stefanha-x1.localdomain \
    --to=stefanha@redhat.com \
    --cc=mst@redhat.com \
    --cc=ndragazis@arrikto.com \
    --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.