summaryrefslogtreecommitdiffstats
path: root/include/standard-headers/linux/virtio_balloon.h
diff options
context:
space:
mode:
authorCornelia Huck2020-04-27 12:24:14 +0200
committerCornelia Huck2020-04-28 12:29:01 +0200
commitdc6f8d458a4ccc360723993f31d310d06469f55f (patch)
treef9c64dbb60e9d2c45b938aa2be16164d3cf3d780 /include/standard-headers/linux/virtio_balloon.h
parentvirtio-net: fix rsc_ext compat handling (diff)
downloadqemu-dc6f8d458a4ccc360723993f31d310d06469f55f.tar.gz
qemu-dc6f8d458a4ccc360723993f31d310d06469f55f.tar.xz
qemu-dc6f8d458a4ccc360723993f31d310d06469f55f.zip
linux-headers: update against Linux 5.7-rc3
commit 6a8b55ed4056ea5559ebe4f6a4b247f627870d4c Reviewed-by: Michael S. Tsirkin <mst@redhat.com> # virtio/vhost parts Signed-off-by: Cornelia Huck <cohuck@redhat.com> Message-Id: <20200427102415.10915-3-cohuck@redhat.com>
Diffstat (limited to 'include/standard-headers/linux/virtio_balloon.h')
-rw-r--r--include/standard-headers/linux/virtio_balloon.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/standard-headers/linux/virtio_balloon.h b/include/standard-headers/linux/virtio_balloon.h
index 9375ca2a70..f343bfefd8 100644
--- a/include/standard-headers/linux/virtio_balloon.h
+++ b/include/standard-headers/linux/virtio_balloon.h
@@ -36,6 +36,7 @@
#define VIRTIO_BALLOON_F_DEFLATE_ON_OOM 2 /* Deflate balloon on OOM */
#define VIRTIO_BALLOON_F_FREE_PAGE_HINT 3 /* VQ to report free pages */
#define VIRTIO_BALLOON_F_PAGE_POISON 4 /* Guest is using page poisoning */
+#define VIRTIO_BALLOON_F_REPORTING 5 /* Page reporting virtqueue */
/* Size of a PFN in the balloon interface. */
#define VIRTIO_BALLOON_PFN_SHIFT 12
@@ -47,8 +48,15 @@ struct virtio_balloon_config {
uint32_t num_pages;
/* Number of pages we've actually got in balloon. */
uint32_t actual;
- /* Free page report command id, readonly by guest */
- uint32_t free_page_report_cmd_id;
+ /*
+ * Free page hint command id, readonly by guest.
+ * Was previously named free_page_report_cmd_id so we
+ * need to carry that name for legacy support.
+ */
+ union {
+ uint32_t free_page_hint_cmd_id;
+ uint32_t free_page_report_cmd_id; /* deprecated */
+ };
/* Stores PAGE_POISON if page poisoning is in use */
uint32_t poison_val;
};