You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
virtio-msg: clarify dev_num semantics for bus and transport messages
Clarify that bus messages are identified by the common-header type field,
not by dev_num, while still requiring bus messages to carry dev_num = 0.
Also state explicitly that device number 0 is not reserved for transport
messages, and require bus implementations to validate the target device
number before forwarding transport traffic.
These changes resolve ambiguity in the common-header and forwarding text
without changing message definitions or the transport model.
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Copy file name to clipboardExpand all lines: transport-msg.tex
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -124,14 +124,17 @@ \subsubsection{Relationship Between Bus and Transport}
124
124
125
125
\busnormative{\paragraph}{Transport Message Forwarding}{Virtio Transport Options / Virtio Over Messages / Basic Concepts / Relationship between bus and transport / Transport Message Forwarding}
126
126
\begin{itemize}
127
+
\item A bus implementation MUST validate the device number in each transport
128
+
message before forwarding it.
127
129
\item A bus implementation MUST relay each transport message to the device
128
130
number identified in the message header, regardless of how it
129
131
discovered or enumerated that device.
130
132
\item A bus implementation SHOULD treat transport messages as opaque apart
131
133
from enforcing generic transport limits, such as the advertised maximum
132
134
message size, and SHOULD NOT modify the transport payload.
133
-
\item If a bus implementation cannot route a transport message to a device
134
-
number, it MAY drop the message or surface a transport-visible failure.
135
+
\item If a bus implementation cannot validate or route a transport message to
136
+
a device number, it MAY drop the message or surface a
0 commit comments