summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Helman <jonathan.helman@oracle.com>2018-04-18 10:10:19 -0700
committerMichael S. Tsirkin <mst@redhat.com>2018-05-23 20:24:24 +0300
commit64d1a58f3ffe37ee28c0bc0c34bece8ebd1f6356 (patch)
treec4e452a17722e1b20664b412aa92f6600055cafc
parent846540e243f1aaf17a1e4cb2644cc57c175ec8ab (diff)
content: document hugetlb page allocation counts
The Linux kernel exports the number of successful and failed hugetlb page allocations via the virtio balloon driver. These two counts need to be documented in this specification. Fixes: https://github.com/oasis-tcs/virtio-spec/issues/8 Signed-off-by: Jonathan Helman <jonathan.helman@oracle.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--content.tex8
1 files changed, 8 insertions, 0 deletions
diff --git a/content.tex b/content.tex
index 7a92cb1..110ab70 100644
--- a/content.tex
+++ b/content.tex
@@ -4516,6 +4516,8 @@ struct virtio_balloon_stat {
#define VIRTIO_BALLOON_S_MEMTOT 5
#define VIRTIO_BALLOON_S_AVAIL 6
#define VIRTIO_BALLOON_S_CACHES 7
+#define VIRTIO_BALLOON_S_HTLB_PGALLOC 8
+#define VIRTIO_BALLOON_S_HTLB_PGFAIL 9
le16 tag;
le64 val;
} __attribute__((packed));
@@ -4604,6 +4606,12 @@ first buffer.
\item[VIRTIO_BALLOON_S_CACHES (7)] The amount of memory, in bytes, that can be
quickly reclaimed without additional I/O. Typically these pages are used for
caching files from disk.
+
+\item[VIRTIO_BALLOON_S_HTLB_PGALLOC (8)] The number of successful hugetlb page
+ allocations in the guest.
+
+\item[VIRTIO_BALLOON_S_HTLB_PGFAIL (9)] The number of failed hugetlb page
+ allocations in the guest.
\end{description}
\section{SCSI Host Device}\label{sec:Device Types / SCSI Host Device}