summaryrefslogtreecommitdiffstats
path: root/include/standard-headers
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2016-02-24 10:50:48 +0300
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:49:36 -0600
commitf0d7b7b95ddf5a0ad8569fc7fa557fc1a17afbde (patch)
tree2bc6aabfe6521a781592f20e1b856f6ce759c24c /include/standard-headers
parentbb214819591200102e35b13b2b0145b43f362b3e (diff)
downloadhqemu-f0d7b7b95ddf5a0ad8569fc7fa557fc1a17afbde.zip
hqemu-f0d7b7b95ddf5a0ad8569fc7fa557fc1a17afbde.tar.gz
virtio-balloon: add 'available' counter
The patch for the kernel part is in linux-next already: commit ac88e7c908b920866e529862f2b2f0129b254ab2 Author: Igor Redko <redkoi@virtuozzo.com> Date: Thu Feb 18 09:23:01 2016 +1100 virtio_balloon: export 'available' memory to balloon statistics Add a new field, VIRTIO_BALLOON_S_AVAIL, to virtio_balloon memory statistics protocol, corresponding to 'Available' in /proc/meminfo. Signed-off-by: Denis V. Lunev <den@openvz.org> CC: Igor Redko <redkoi@virtuozzo.com> CC: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/standard-headers')
-rw-r--r--include/standard-headers/linux/virtio_balloon.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/standard-headers/linux/virtio_balloon.h b/include/standard-headers/linux/virtio_balloon.h
index 2e2a6dc..0df7c2e 100644
--- a/include/standard-headers/linux/virtio_balloon.h
+++ b/include/standard-headers/linux/virtio_balloon.h
@@ -51,7 +51,8 @@ struct virtio_balloon_config {
#define VIRTIO_BALLOON_S_MINFLT 3 /* Number of minor faults */
#define VIRTIO_BALLOON_S_MEMFREE 4 /* Total amount of free memory */
#define VIRTIO_BALLOON_S_MEMTOT 5 /* Total amount of memory */
-#define VIRTIO_BALLOON_S_NR 6
+#define VIRTIO_BALLOON_S_AVAIL 6 /* Amount of available memory in guest */
+#define VIRTIO_BALLOON_S_NR 7
/*
* Memory statistics structure.
OpenPOWER on IntegriCloud