Signed-off-by: Tomáš Golembiovský <
tgolembi@redhat.com>
---
hw/virtio/virtio-balloon.c | 2 ++
include/standard-headers/linux/virtio_balloon.h | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c
index a705e0ec55..0434784c14 100644
--- a/hw/virtio/virtio-balloon.c
+++ b/hw/virtio/virtio-balloon.c
@@ -49,6 +49,8 @@ static const char *balloon_stat_names[] = {
[VIRTIO_BALLOON_S_MEMFREE] = "stat-free-memory",
[VIRTIO_BALLOON_S_MEMTOT] = "stat-total-memory",
[VIRTIO_BALLOON_S_AVAIL] = "stat-available-memory",
+ [VIRTIO_BALLOON_S_BUFFERS] = "stat-linux-buffers",
+ [VIRTIO_BALLOON_S_CACHED] = "stat-linux-cached",
[VIRTIO_BALLOON_S_NR] = NULL
};
diff --git a/include/standard-headers/linux/virtio_balloon.h b/include/standard-headers/linux/virtio_balloon.h
index 9d06ccd066..d61efbfcee 100644
--- a/include/standard-headers/linux/virtio_balloon.h
+++ b/include/standard-headers/linux/virtio_balloon.h
@@ -52,7 +52,9 @@ struct virtio_balloon_config {
#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_AVAIL 6 /* Available memory as in /proc */
-#define VIRTIO_BALLOON_S_NR 7
+#define VIRTIO_BALLOON_S_BUFFERS 7 /* Buffers memory as in /proc */
+#define VIRTIO_BALLOON_S_CACHED 8 /* Cached memory as in /proc */
+#define VIRTIO_BALLOON_S_NR 9
/*
* Memory statistics structure.
--
2.14.1
---------------------------------------------------------------------
To unsubscribe, e-mail:
virtio-dev-unsubscribe@lists.oasis-open.orgFor additional commands, e-mail:
virtio-dev-help@lists.oasis-open.org