qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v21 QEMU 1/5] linux-headers: Update to allow renaming of free_pag


From: Alexander Duyck
Subject: [PATCH v21 QEMU 1/5] linux-headers: Update to allow renaming of free_page_report_cmd_id
Date: Wed, 22 Apr 2020 11:20:58 -0700
User-agent: StGit/0.17.1-dirty

From: Alexander Duyck <address@hidden>

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

Signed-off-by: Alexander Duyck <address@hidden>
---
 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

[Prev in Thread] Current Thread [Next in Thread]