Skip to content

Commit

Permalink
virtio_pci_cap64: specify offset_hi, length_hi endianness
Browse files Browse the repository at this point in the history
While the capability introduction says "This virtio structure capability uses little-endian format,"
it might be preferrable to be explicit about the endianness of offset_hi and length_hi.

Signed-off-by: Martin Kröning <[email protected]>
Reviewed-by: Parav Pandit <[email protected]>
Fixes: oasis-tcs#196
  • Loading branch information
Kröning authored and paravmellanox committed Jul 11, 2024
1 parent 6297bf6 commit 2cc4166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport-pci.tex
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ \subsection{Virtio Structure PCI Capabilities}\label{sec:Virtio Transport Option
\begin{lstlisting}
struct virtio_pci_cap64 {
struct virtio_pci_cap cap;
u32 offset_hi;
u32 length_hi;
le32 offset_hi;
le32 length_hi;
};
\end{lstlisting}

Expand Down

0 comments on commit 2cc4166

Please sign in to comment.