From 528163d423296f02444239476876a71c520823bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=B6ning?= Date: Thu, 6 Jun 2024 13:07:30 +0000 Subject: [PATCH] virtio_pci_cap64: specify offset_hi, length_hi endianness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Parav Pandit Fixes: https://github.com/oasis-tcs/virtio-spec/issues/196 --- transport-pci.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport-pci.tex b/transport-pci.tex index a5c6719..95b08b8 100644 --- a/transport-pci.tex +++ b/transport-pci.tex @@ -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}