summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomáš Golembiovský <tgolembi@redhat.com>2018-02-22 13:50:52 +0100
committerMichael S. Tsirkin <mst@redhat.com>2018-03-20 02:58:44 +0200
commit58622197571d5160c6cb7f95a112f87ee604f703 (patch)
treea181a1044e8a61457db253452a3e6cb14a705023
parent88c8553838346b26be4460485cc57c38850b36f7 (diff)
content: document balloon memory statistics
Linux kernel provides some balloon memory statistics that were not included in the specs. Include them to avoid any ID clashes in the future. Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Fixes: https://github.com/oasis-tcs/virtio-spec/issues/4 Approved-by: https://www.oasis-open.org/apps/org/workgroup/virtio/ballot.php?id=3180
-rw-r--r--content.tex9
1 files changed, 9 insertions, 0 deletions
diff --git a/content.tex b/content.tex
index 2e75b5e..7fa9a65 100644
--- a/content.tex
+++ b/content.tex
@@ -4513,6 +4513,8 @@ struct virtio_balloon_stat {
#define VIRTIO_BALLOON_S_MINFLT 3
#define VIRTIO_BALLOON_S_MEMFREE 4
#define VIRTIO_BALLOON_S_MEMTOT 5
+#define VIRTIO_BALLOON_S_AVAIL 6
+#define VIRTIO_BALLOON_S_CACHES 7
le16 tag;
le64 val;
} __attribute__((packed));
@@ -4594,6 +4596,13 @@ first buffer.
\item[VIRTIO_BALLOON_S_MEMTOT (5)] The total amount of memory available
(in bytes).
+
+\item[VIRTIO_BALLOON_S_AVAIL (6)] An estimate of how much memory is available
+ (in bytes) for starting new applications, without pushing the system to swap.
+
+\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.
\end{description}
\section{SCSI Host Device}\label{sec:Device Types / SCSI Host Device}