aboutsummaryrefslogtreecommitdiffstats
path: root/virtio-gpu.tex
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2019-03-11 11:58:43 -0400
committerMichael S. Tsirkin <mst@redhat.com>2019-03-21 13:24:59 -0400
commit69daf0635b883b20bd7f62dd25c187e3e8ac8db5 (patch)
treea9695ca66248c6c613051920c1e82b2e73299c20 /virtio-gpu.tex
parent0b5288f06affd912f21261fc9f3a200a534fb9a5 (diff)
downloadvirtio-spec-69daf0635b883b20bd7f62dd25c187e3e8ac8db5.tar.gz
editorial: explain each structure before use
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. Fixes: https://issues.oasis-open.org/browse/VIRTIO-166 Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'virtio-gpu.tex')
-rw-r--r--virtio-gpu.tex10
1 files changed, 8 insertions, 2 deletions
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