summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrusty <rusty@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-03-13 03:14:08 +0000
committerrusty <rusty@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-03-13 03:14:08 +0000
commit44ea291eed62d96010108a0d11828ad58efaccf6 (patch)
treed2a8eb864c6c68d28eed704b4008cb17feacbae5
parentf7020384521e5938cdd1351270b32b143f070d00 (diff)
block: deprecate FLUSH_OUT (VIRTIO-85)
Signed-off-by: Rusty Russell <rusty@au1.ibm.com> git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@325 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
-rw-r--r--content.tex13
1 files changed, 8 insertions, 5 deletions
diff --git a/content.tex b/content.tex
index c9dd28d..0bdb861 100644
--- a/content.tex
+++ b/content.tex
@@ -3697,16 +3697,12 @@ struct virtio_blk_req {
\end{lstlisting}
The type of the request is either a read (VIRTIO_BLK_T_IN), a write
-(VIRTIO_BLK_T_OUT), or a flush (VIRTIO_BLK_T_FLUSH or
-VIRTIO_BLK_T_FLUSH_OUT\footnote{The FLUSH and FLUSH_OUT types are equivalent, the device does not
-distinguish between them
-}).
+(VIRTIO_BLK_T_OUT), or a flush (VIRTIO_BLK_T_FLUSH).
\begin{lstlisting}
#define VIRTIO_BLK_T_IN 0
#define VIRTIO_BLK_T_OUT 1
#define VIRTIO_BLK_T_FLUSH 4
-#define VIRTIO_BLK_T_FLUSH_OUT 5
\end{lstlisting}
The \field{sector} number indicates the offset (multiplied by 512) where
@@ -3753,6 +3749,13 @@ is a hint about the relative priorities of requests to the device:
higher numbers indicate more important requests.
\begin{lstlisting}
+#define VIRTIO_BLK_T_FLUSH_OUT 5
+\end{lstlisting}
+
+The command VIRTIO_BLK_T_FLUSH_OUT was a synonym for VIRTIO_BLK_T_FLUSH;
+a driver MUST treat it as a VIRTIO_BLK_T_FLUSH command.
+
+\begin{lstlisting}
#define VIRTIO_BLK_T_BARRIER 0x80000000
\end{lstlisting}