From: Alexander Duyck <alexander.h.du...@linux.intel.com>

Sync to the latest upstream changes for free page hinting. To be
replaced by a full linux header sync.

Signed-off-by: Alexander Duyck <alexander.h.du...@linux.intel.com>
---
 include/standard-headers/linux/virtio_balloon.h |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/include/standard-headers/linux/virtio_balloon.h 
b/include/standard-headers/linux/virtio_balloon.h
index 9375ca2a70de..af0a6b59dab2 100644
--- a/include/standard-headers/linux/virtio_balloon.h
+++ b/include/standard-headers/linux/virtio_balloon.h
@@ -47,8 +47,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 name 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;
 };


Reply via email to