From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 13 Jan 2022 12:56:14 -0500 From: "Michael S. Tsirkin" Subject: Re: [PATCH 4/5] virtio-net: add support for VIRTIO_F_ADMIN_VQ Message-ID: <20220113125409-mutt-send-email-mst@kernel.org> References: <20220113145103.26894-1-mgurtovoy@nvidia.com> <20220113145103.26894-5-mgurtovoy@nvidia.com> MIME-Version: 1.0 In-Reply-To: <20220113145103.26894-5-mgurtovoy@nvidia.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline To: Max Gurtovoy Cc: virtio-comment@lists.oasis-open.org, cohuck@redhat.com, virtio-dev@lists.oasis-open.org, jasowang@redhat.com, parav@nvidia.com, shahafs@nvidia.com, oren@nvidia.com, stefanha@redhat.com List-ID: On Thu, Jan 13, 2022 at 04:51:02PM +0200, Max Gurtovoy wrote: > Set the relevant index in case of VIRTIO_F_ADMIN_VQ negotiation. > > Reviewed-by: Parav Pandit > Signed-off-by: Max Gurtovoy So admin VQ # is only known when all features are negotiated. Which is quite annoying if hypervisor wants to partition things e.g. handling admin q in process and handling vqs by an external process or by hardware. I think we can allow devices to set the VQ# for the admin queue instead. Would that work? > --- > content.tex | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/content.tex b/content.tex > index 0ae4b68..e9c2383 100644 > --- a/content.tex > +++ b/content.tex > @@ -3034,6 +3034,7 @@ \subsection{Virtqueues}\label{sec:Device Types / Network Device / Virtqueues} > \item[2(N-1)] receiveqN > \item[2(N-1)+1] transmitqN > \item[2N] controlq > +\item[2N + 1] adminq (or \textbf{2N} in case VIRTIO_NET_F_CTRL_VQ is not set) > \end{description} > > N=1 if neither VIRTIO_NET_F_MQ nor VIRTIO_NET_F_RSS are negotiated, otherwise N is set by > @@ -3041,6 +3042,8 @@ \subsection{Virtqueues}\label{sec:Device Types / Network Device / Virtqueues} > > controlq only exists if VIRTIO_NET_F_CTRL_VQ set. > > + adminq only exists if VIRTIO_F_ADMIN_VQ set. > + > \subsection{Feature bits}\label{sec:Device Types / Network Device / Feature bits} > > \begin{description} > -- > 2.21.0