]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
QEMU: declare qemu capabilities for the Virtio Free page reporting feature
authorNico Pache <npache@redhat.com>
Mon, 12 Oct 2020 23:35:37 +0000 (19:35 -0400)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 13 Oct 2020 15:02:42 +0000 (17:02 +0200)
This patch will introduce the free-page-reporting feature capabilities
that are in qemu 5.1

Signed-off-by: Nico Pache <npache@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_5.1.0.x86_64.xml
tests/qemucapabilitiesdata/caps_5.2.0.x86_64.xml

index 02136fd3b370953067fcf1fb4c4c2280b524221a..81d9ecd886bcac468bf5f57e453ef8d9e880e8a4 100644 (file)
@@ -600,6 +600,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
 
               /* 380 */
               "usb-host.hostdevice",
+              "virtio-balloon.free-page-reporting",
     );
 
 
@@ -1341,6 +1342,7 @@ static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVirtioBalloon[]
     { "iommu_platform", QEMU_CAPS_VIRTIO_PCI_IOMMU_PLATFORM, NULL },
     { "ats", QEMU_CAPS_VIRTIO_PCI_ATS, NULL },
     { "packed", QEMU_CAPS_VIRTIO_PACKED_QUEUES, NULL },
+    { "free-page-reporting", QEMU_CAPS_VIRTIO_BALLOON_FREE_PAGE_REPORTING, NULL },
 };
 
 
index 107056ba177f5e461e09628db972478e8e5b8274..44c45589f0b15a4f12aaf92bc0012530aa6a6a3c 100644 (file)
@@ -580,6 +580,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
 
     /* 380 */
     QEMU_CAPS_USB_HOST_HOSTDEVICE, /* -device usb-host.hostdevice */
+    QEMU_CAPS_VIRTIO_BALLOON_FREE_PAGE_REPORTING, /*virtio balloon free-page-reporting */
 
     QEMU_CAPS_LAST /* this must always be the last item */
 } virQEMUCapsFlags;
index 987beb965e9264c48b1fefb6fa278c378a661792..9ebd7ea582b2fdc0c2ac9b12cd333a6169d40147 100644 (file)
   <flag name='numa.hmat'/>
   <flag name='blockdev-hostdev-scsi'/>
   <flag name='usb-host.hostdevice'/>
+  <flag name='virtio-balloon.free-page-reporting'/>
   <version>5001000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>43100242</microcodeVersion>
index 3ee678ef8f311ac7e306b447d3c952ca586ad84c..52b6a47004f188c91670c104d19dd504dd0748f7 100644 (file)
   <flag name='numa.hmat'/>
   <flag name='blockdev-hostdev-scsi'/>
   <flag name='usb-host.hostdevice'/>
+  <flag name='virtio-balloon.free-page-reporting'/>
   <version>5001050</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>43100243</microcodeVersion>