All of lore.kernel.org
 help / color / mirror / Atom feed
* [virtio-dev] Re: [PATCH] virtio-blk: document VIRTIO_BLK_F_MQ multiqueue feature
       [not found] <1463684030-23555-1-git-send-email-stefanha@redhat.com>
@ 2019-10-07 17:29 ` Matti Moell
  2019-10-11  8:49   ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Matti Moell @ 2019-10-07 17:29 UTC (permalink / raw)
  To: Stefan Hajnoczi, virtio-dev; +Cc: Michael S. Tsirkin, Ming Lei

Hi Stefan,

I wasn't able to find any discussion about not including multiqueue in 
the spec and this patch was never applied, is there any particular 
reason why it wasn't added?

Should it even be added to the spec?

Cheers,

		Matti

On 19.05.16 20:53, Stefan Hajnoczi wrote:
> Linux 3.17 added the virtio-blk multiqueue feature to the virtio_blk
> guest driver.  The feature was never formalized in the VIRTIO
> specification.  Let's document it now.
> 
> Cc: Michael S. Tsirkin <mst@redhat.com>
> Cc: Ming Lei <ming.lei@canonical.com>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
>   trunk/content.tex | 12 +++++++++++-
>   1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/trunk/content.tex b/trunk/content.tex
> index d989d98..c8fd79c 100644
> --- a/trunk/content.tex
> +++ b/trunk/content.tex
> @@ -4023,6 +4023,8 @@ device except where noted.
>   \subsection{Virtqueues}\label{sec:Device Types / Block Device / Virtqueues}
>   \begin{description}
>   \item[0] requestq
> +\item[\ldots]
> +\item[N] requestqN
>   \end{description}
>   
>   \subsection{Feature bits}\label{sec:Device Types / Block Device / Feature bits}
> @@ -4043,6 +4045,8 @@ device except where noted.
>   
>   \item[VIRTIO_BLK_F_TOPOLOGY (10)] Device exports information on optimal I/O
>       alignment.
> +
> +\item[VIRTIO_BLK_F_MQ (12)] Number of virtqueues is in \field{num_queues}.
>   \end{description}
>   
>   \subsubsection{Legacy Interface: Feature bits}\label{sec:Device Types / Block Device / Feature bits / Legacy Interface: Feature bits}
> @@ -4090,6 +4094,8 @@ struct virtio_blk_config {
>                   le32 opt_io_size;
>           } topology;
>           u8 reserved;
> +        u8 reserved2;
> +        le16 num_queues;
>   };
>   \end{lstlisting}
>   
> @@ -4119,6 +4125,10 @@ according to the native endian of the guest rather than
>     \field{topology} struct can be read to determine the physical block size and optimal
>     I/O lengths for the driver to use. This also does not affect the units
>     in the protocol, only performance.
> +
> +\item If the VIRTIO_BLK_F_MQ feature is negotiated, \field{num_queues} can be
> +  read to determine the number of virtqueues.  There is always at least 1
> +  virtqueue even if the feature is not negotiated.
>   \end{enumerate}
>   
>   \subsubsection{Legacy Interface: Device Initialization}\label{sec:Device Types / Block Device / Device Initialization / Legacy Interface: Device Initialization}
> @@ -4137,7 +4147,7 @@ after a driver announced lack of support for VIRTIO_BLK_F_FLUSH.
>   
>   \subsection{Device Operation}\label{sec:Device Types / Block Device / Device Operation}
>   
> -The driver queues requests to the virtqueue, and they are used by
> +The driver queues requests to a virtqueue, and they are used by
>   the device (not necessarily in order). Each request is of form:
>   
>   \begin{lstlisting}
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [virtio-dev] Re: [PATCH] virtio-blk: document VIRTIO_BLK_F_MQ multiqueue feature
  2019-10-07 17:29 ` [virtio-dev] Re: [PATCH] virtio-blk: document VIRTIO_BLK_F_MQ multiqueue feature Matti Moell
@ 2019-10-11  8:49   ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2019-10-11  8:49 UTC (permalink / raw)
  To: Matti Moell; +Cc: virtio-dev, Michael S. Tsirkin, Ming Lei

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

On Mon, Oct 07, 2019 at 07:29:49PM +0200, Matti Moell wrote:
> I wasn't able to find any discussion about not including multiqueue in the
> spec and this patch was never applied, is there any particular reason why it
> wasn't added?
> 
> Should it even be added to the spec?

Yes, it should be added to the spec.  Eugenio Perez has recently sent a
new patch to fix this:
https://lists.oasis-open.org/archives/virtio-comment/201909/msg00004.html

Stefan

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-11  8:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1463684030-23555-1-git-send-email-stefanha@redhat.com>
2019-10-07 17:29 ` [virtio-dev] Re: [PATCH] virtio-blk: document VIRTIO_BLK_F_MQ multiqueue feature Matti Moell
2019-10-11  8:49   ` Stefan Hajnoczi

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.