aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Hahn <hahn@univention.de>2019-05-27 08:49:24 +0200
committerMichael S. Tsirkin <mst@redhat.com>2019-10-27 08:00:25 -0400
commit30d8e1ad22f7e1207664723a2815359b4992c927 (patch)
treeee3bbb28b7b9bdc34b7ff39bf20dd88f2aceb7c1
parentf459b9e0ea60392f037bc740c681980563d920fc (diff)
downloadvirtio-text-30d8e1ad22f7e1207664723a2815359b4992c927.tar.gz
Balloon: Fix Memory Statistics structure size
5.5.6.3 Memory Statistics: 6 -> 10 byte > Within the buffer, statistics are an array of 6-byte entries. ^ > Each statistic consists of a 16 bit tag and a 64 bit value. ... > struct virtio_balloon_stat { ... > le16 tag; > le64 val; > } __attribute__((packed)); If my calculation is right that is a (16 + 64) = 80 bits which is a 10-byte sized entry - not 6-byte. Fixes: https://github.com/oasis-tcs/virtio-spec/issues/45 Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--content.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/content.tex b/content.tex
index b0fe90c..b1ea9b9 100644
--- a/content.tex
+++ b/content.tex
@@ -4869,7 +4869,7 @@ as follows:
subsequent request) and consumes the statistics.
\end{enumerate}
- Within the buffer, statistics are an array of 6-byte entries.
+ Within the buffer, statistics are an array of 10-byte entries.
Each statistic consists of a 16 bit
tag and a 64 bit value. All statistics are optional and the
driver chooses which ones to supply. To guarantee backwards