All of lore.kernel.org
 help / color / mirror / Atom feed
* [virtio] [PATCH] editorial: explain each structure before use
@ 2019-03-11 15:59 Michael S. Tsirkin
  2019-03-11 17:10 ` Cornelia Huck
  2019-03-13 15:40 ` Stefan Hajnoczi
  0 siblings, 2 replies; 3+ messages in thread
From: Michael S. Tsirkin @ 2019-03-11 15:59 UTC (permalink / raw)
  To: virtio, virtio-dev

Several structures are listed before they are
introduced in some way. Add a sentence before each one
so they don't appear prior to any prose.

VIRTIO-166

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 content.tex       |  3 +++
 split-ring.tex    |  4 ++++
 virtio-crypto.tex |  2 ++
 virtio-gpu.tex    | 10 ++++++++--
 virtio-vsock.tex  |  2 ++
 5 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/content.tex b/content.tex
index f40d4fc..05fcb7b 100644
--- a/content.tex
+++ b/content.tex
@@ -3660,6 +3660,9 @@ send control commands for dynamic offloads state configuration.
 
 \subparagraph{Setting Offloads State}\label{sec:Device Types / Network Device / Device Operation / Control Virtqueue / Offloads State Configuration / Setting Offloads State}
 
+To configure the offloads, the following layout structure and
+definitions are used:
+
 \begin{lstlisting}
 le64 offloads;
 
diff --git a/split-ring.tex b/split-ring.tex
index 4e373d6..123ac9f 100644
--- a/split-ring.tex
+++ b/split-ring.tex
@@ -292,6 +292,8 @@ layout is valid.
 
 \subsection{The Virtqueue Available Ring}\label{sec:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Available Ring}
 
+The available ring has the following layout structure:
+
 \begin{lstlisting}
 struct virtq_avail {
 #define VIRTQ_AVAIL_F_NO_INTERRUPT      1
@@ -385,6 +387,8 @@ For example, if \field{used_event} is 0, then a device using
 
 \subsection{The Virtqueue Used Ring}\label{sec:Basic Facilities of a Virtio Device / Virtqueues / The Virtqueue Used Ring}
 
+The used ring has the following layout structure:
+
 \begin{lstlisting}
 struct virtq_used {
 #define VIRTQ_USED_F_NO_NOTIFY  1
diff --git a/virtio-crypto.tex b/virtio-crypto.tex
index 4ae4933..4a15e14 100644
--- a/virtio-crypto.tex
+++ b/virtio-crypto.tex
@@ -183,6 +183,8 @@ operation requests, see \ref{sec:Device Types / Crypto Device / Device Operation
 
 \subsection{Device configuration layout}\label{sec:Device Types / Crypto Device / Device configuration layout}
 
+Crypto device configuration uses the following layout structure:
+
 \begin{lstlisting}
 struct virtio_crypto_config {
     le32 status;
diff --git a/virtio-gpu.tex b/virtio-gpu.tex
index 992d4e6..8687231 100644
--- a/virtio-gpu.tex
+++ b/virtio-gpu.tex
@@ -39,6 +39,9 @@ control queue.
 
 \subsection{Device configuration layout}\label{sec:Device Types / GPU Device / Device configuration layout}
 
+GPU device configuration uses the following layout structure and
+definitions:
+
 \begin{lstlisting}
 #define VIRTIO_GPU_EVENT_DISPLAY (1 << 0)
 
@@ -160,6 +163,9 @@ the shape use VIRTIO_GPU_CMD_MOVE_CURSOR instead.
 
 \subsubsection{Device Operation: Request header}\label{sec:Device Types / GPU Device / Device Operation / Device Operation: Request header}
 
+All requests and responses on the virt queues have a fixed header
+using the following layout structure and definitions:
+
 \begin{lstlisting}
 enum virtio_gpu_ctrl_type {
 
@@ -207,8 +213,8 @@ struct virtio_gpu_ctrl_hdr {
 };
 \end{lstlisting}
 
-All requests and responses on the virt queues have the fixed header
-\field{struct virtio_gpu_ctrl_hdr}.
+The fixed header \field{struct virtio_gpu_ctrl_hdr} in each
+request includes the following fields:
 
 \begin{description}
 \item[\field{type}] specifies the type of the driver request
diff --git a/virtio-vsock.tex b/virtio-vsock.tex
index 1a3ad19..da7e641 100644
--- a/virtio-vsock.tex
+++ b/virtio-vsock.tex
@@ -20,6 +20,8 @@ There are currently no feature bits defined for this device.
 
 \subsection{Device configuration layout}\label{sec:Device Types / Socket Device / Device configuration layout}
 
+Socket device configuration uses the following layout structure:
+
 \begin{lstlisting}
 struct virtio_vsock_config {
 	le64 guest_cid;
-- 
MST

---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that 
generates this mail.  Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php 


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

* Re: [virtio] [PATCH] editorial: explain each structure before use
  2019-03-11 15:59 [virtio] [PATCH] editorial: explain each structure before use Michael S. Tsirkin
@ 2019-03-11 17:10 ` Cornelia Huck
  2019-03-13 15:40 ` Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Cornelia Huck @ 2019-03-11 17:10 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: virtio, virtio-dev

On Mon, 11 Mar 2019 11:59:50 -0400
"Michael S. Tsirkin" <mst@redhat.com> wrote:

> Several structures are listed before they are
> introduced in some way. Add a sentence before each one
> so they don't appear prior to any prose.
> 
> VIRTIO-166
> 
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
>  content.tex       |  3 +++
>  split-ring.tex    |  4 ++++
>  virtio-crypto.tex |  2 ++
>  virtio-gpu.tex    | 10 ++++++++--
>  virtio-vsock.tex  |  2 ++
>  5 files changed, 19 insertions(+), 2 deletions(-)

Reviewed-by: Cornelia Huck <cohuck@redhat.com>

---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that 
generates this mail.  Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php 


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

* Re: [virtio] [PATCH] editorial: explain each structure before use
  2019-03-11 15:59 [virtio] [PATCH] editorial: explain each structure before use Michael S. Tsirkin
  2019-03-11 17:10 ` Cornelia Huck
@ 2019-03-13 15:40 ` Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2019-03-13 15:40 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: virtio, virtio-dev

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

On Mon, Mar 11, 2019 at 11:59:50AM -0400, Michael S. Tsirkin wrote:
> Several structures are listed before they are
> introduced in some way. Add a sentence before each one
> so they don't appear prior to any prose.
> 
> VIRTIO-166
> 
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
>  content.tex       |  3 +++
>  split-ring.tex    |  4 ++++
>  virtio-crypto.tex |  2 ++
>  virtio-gpu.tex    | 10 ++++++++--
>  virtio-vsock.tex  |  2 ++
>  5 files changed, 19 insertions(+), 2 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>

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

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

end of thread, other threads:[~2019-03-13 15:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-11 15:59 [virtio] [PATCH] editorial: explain each structure before use Michael S. Tsirkin
2019-03-11 17:10 ` Cornelia Huck
2019-03-13 15:40 ` 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.