Skip to content

Commit

Permalink
Introduce virtio-msg ERROR message
Browse files Browse the repository at this point in the history
Signed-off-by: Bertrand Marquis <[email protected]>
  • Loading branch information
bertrand-marquis committed Jan 15, 2025
1 parent b634bb4 commit 823c03f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions transport-msg.tex
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ \subsection{Messages Definition}\label{sec:Virtio Transport Options / Virtio Ove
Name & ID & Sender \\
\hline
\hline
VIRTIO_MSG_ERROR & 0x0 & Any \\
\hline
VIRTIO_MSG_CONNECT & 0x1 & Driver \\
\hline
VIRTIO_MSG_DISCONNECT & 0x2 & Driver \\
Expand Down Expand Up @@ -87,6 +89,25 @@ \subsection{Messages Definition}\label{sec:Virtio Transport Options / Virtio Ove

\newcommand{\msgdef}[1]{\subsubsection{VIRTIO_MSG_#1}\label{sec:Virtio Transport Options / Virtio Over Messages / Messages Definition / VIRTIO_MSG_#1}}

\msgdef{ERROR}

The Error message is used to signal to the driver or the device that a message
it wanted to send could not be sent. The message contain an error code defined
using the Standard Posix Error Codes (TODO: add a reference).

This message can be received by the driver or the device and can be sent as an
answer to an other message by the driver or the device or any element between
them involved in the communication.

\begin{tabular}{|l|l|l|l|}
\hline
Type & Offset & Size (bytes) & Content \\
\hline \hline
Any & 0 & 4 & Posix Error Code \\
& 4 & 32 & Reserved (MBZ) \\
\hline
\end{tabular}

\msgdef{CONNECT}

The Connect message is used to signal to the device that the driver will start
Expand Down

0 comments on commit 823c03f

Please sign in to comment.