]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: add capability check for memballoon 'deflate-on-oom' feature
authorDmitry Andreev <dandreev@virtuozzo.com>
Fri, 8 Jan 2016 10:45:06 +0000 (13:45 +0300)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Jan 2016 15:48:21 +0000 (10:48 -0500)
Add appropriate capability check and new virQEMUCaps flag for the new
virtio balloon feature. QEMU commit with the complete feature description:
http://git.qemu.org/?p=qemu.git;a=commit;h=e3816255bf4b6377bb405331e2ee0dc14d841b80

15 files changed:
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_1.2.2-1.replies
tests/qemucapabilitiesdata/caps_1.3.1-1.replies
tests/qemucapabilitiesdata/caps_1.4.2-1.replies
tests/qemucapabilitiesdata/caps_1.5.3-1.replies
tests/qemucapabilitiesdata/caps_1.6.0-1.replies
tests/qemucapabilitiesdata/caps_1.6.50-1.replies
tests/qemucapabilitiesdata/caps_2.1.1-1.replies
tests/qemucapabilitiesdata/caps_2.4.0-1.caps
tests/qemucapabilitiesdata/caps_2.4.0-1.replies
tests/qemucapabilitiesdata/caps_2.5.0-1.caps
tests/qemucapabilitiesdata/caps_2.5.0-1.replies
tests/qemucapabilitiesdata/caps_2.6.0-1.caps
tests/qemucapabilitiesdata/caps_2.6.0-1.replies

index 4583a8a53e44007b483086a5616b42caca559fba..3099e344b0951927f31fadf237874e3b56d4f598 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * qemu_capabilities.c: QEMU capabilities generation
  *
- * Copyright (C) 2006-2015 Red Hat, Inc.
+ * Copyright (C) 2006-2016 Red Hat, Inc.
  * Copyright (C) 2006 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -313,6 +313,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
               "ich9-disable-s4",
 
               "vserport-change-event", /* 210 */
+              "virtio-balloon-pci.deflate-on-oom",
     );
 
 
@@ -1568,6 +1569,10 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
     { "virtio-input-host-pci", QEMU_CAPS_VIRTIO_INPUT_HOST },
 };
 
+static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioBalloon[] = {
+    { "deflate-on-oom", QEMU_CAPS_VIRTIO_BALLOON_AUTODEFLATE },
+};
+
 static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioBlk[] = {
     { "multifunction", QEMU_CAPS_PCI_MULTIFUNCTION },
     { "bootindex", QEMU_CAPS_BOOTINDEX },
@@ -1717,6 +1722,12 @@ static struct virQEMUCapsObjectTypeProps virQEMUCapsObjectProps[] = {
       ARRAY_CARDINALITY(virQEMUCapsObjectPropsVirtioGpu) },
     { "ICH9-LPC", virQEMUCapsObjectPropsICH9,
       ARRAY_CARDINALITY(virQEMUCapsObjectPropsICH9) },
+    { "virtio-balloon-pci", virQEMUCapsObjectPropsVirtioBalloon,
+      ARRAY_CARDINALITY(virQEMUCapsObjectPropsVirtioBalloon) },
+    { "virtio-balloon-ccw", virQEMUCapsObjectPropsVirtioBalloon,
+      ARRAY_CARDINALITY(virQEMUCapsObjectPropsVirtioBalloon) },
+    { "virtio-balloon-device", virQEMUCapsObjectPropsVirtioBalloon,
+      ARRAY_CARDINALITY(virQEMUCapsObjectPropsVirtioBalloon) },
 };
 
 
index d0b941e85e84a8c90429c003e3feebe1bc6065a1..e5353dee34a6cff247663fdb19b75800e1ddc552 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * qemu_capabilities.h: QEMU capabilities generation
  *
- * Copyright (C) 2006-2015 Red Hat, Inc.
+ * Copyright (C) 2006-2016 Red Hat, Inc.
  * Copyright (C) 2006 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -341,6 +341,8 @@ typedef enum {
 
     /* 210 */
     QEMU_CAPS_VSERPORT_CHANGE, /* VSERPORT_CHANGE event */
+    QEMU_CAPS_VIRTIO_BALLOON_AUTODEFLATE, /* virtio-balloon-{device,pci,ccw}.
+                                           * deflate-on-oom */
 
     QEMU_CAPS_LAST /* this must always be the last item */
 } virQEMUCapsFlags;
index e6cf089a05ba07e947effea00b61b1b33ae61c45..fbddf3db309284fc088f003e073b08c90e272e77 100644 (file)
 }
 
 
+{
+    "return": [
+        {
+             "name": "command_serr_enable",
+             "type": "on/off"
+        },
+        {
+            "name": "multifunction",
+            "type": "on/off"
+        },
+        {
+            "name": "rombar",
+            "type": "uint32"
+        },
+        {
+            "name": "romfile",
+            "type": "string"
+        },
+        {
+            "name": "addr",
+            "type": "pci-devfn"
+        },
+        {
+            "name": "class",
+            "type": "hex32"
+        },
+        {
+            "name": "event_idx",
+            "type": "on/off"
+        },
+        {
+            "name": "indirect_desc",
+            "type": "on/off"
+        }
+    ],
+    "id": "libvirt-33"
+}
+
+{
+    "id": "libvirt-34",
+    "error": {
+        "class": "DeviceNotFound",
+        "desc": "Device 'virtio-balloon-ccw' not found"
+    }
+}
+
+{
+    "id": "libvirt-35",
+    "error": {
+        "class": "DeviceNotFound",
+        "desc": "Device 'virtio-balloon-device' not found"
+    }
+}
+
 {
     "return": [
         {
             "name": "none"
         }
     ],
-    "id": "libvirt-33"
+    "id": "libvirt-36"
 }
 
 {
             "name": "Opteron_G4"
         }
     ],
-    "id": "libvirt-34"
+    "id": "libvirt-37"
 }
 
 {
         "enabled": false,
         "present": true
     },
-    "id": "libvirt-35"
+    "id": "libvirt-38"
 }
 
 {
-    "id": "libvirt-36",
+    "id": "libvirt-39",
     "error": {
         "class": "CommandNotFound",
         "desc": "The command query-tpm-models has not been found"
 }
 
 {
-    "id": "libvirt-37",
+    "id": "libvirt-40",
     "error": {
         "class": "CommandNotFound",
         "desc": "The command query-tpm-types has not been found"
 }
 
 {
-    "id": "libvirt-38",
+    "id": "libvirt-41",
     "error": {
         "class": "CommandNotFound",
         "desc": "The command query-command-line-options has not been found"
             "state": false
         }
     ],
-    "id": "libvirt-39"
+    "id": "libvirt-42"
 }
index cd48ead4a79f6d051099c49ab3ecd09950ac2fa0..2542b67b49cd3b0b553a95844b1cd9f8b2d7cd10 100644 (file)
     }
 }
 
+{
+    "return": [
+        {
+             "name": "command_serr_enable",
+             "type": "on/off"
+        },
+        {
+            "name": "multifunction",
+            "type": "on/off"
+        },
+        {
+            "name": "rombar",
+            "type": "uint32"
+        },
+        {
+            "name": "romfile",
+            "type": "string"
+        },
+        {
+            "name": "addr",
+            "type": "pci-devfn"
+        },
+        {
+            "name": "class",
+            "type": "hex32"
+        },
+        {
+            "name": "event_idx",
+            "type": "on/off"
+        },
+        {
+            "name": "indirect_desc",
+            "type": "on/off"
+        }
+    ],
+    "id": "libvirt-34"
+}
+
+{
+    "id": "libvirt-35",
+    "error": {
+        "class": "DeviceNotFound",
+        "desc": "Device 'virtio-balloon-ccw' not found"
+    }
+}
+
+{
+    "id": "libvirt-36",
+    "error": {
+        "class": "DeviceNotFound",
+        "desc": "Device 'virtio-balloon-device' not found"
+    }
+}
+
 {
     "return": [
         {
             "name": "none"
         }
     ],
-    "id": "libvirt-34"
+    "id": "libvirt-37"
 }
 
 {
             "name": "Opteron_G5"
         }
     ],
-    "id": "libvirt-35"
+    "id": "libvirt-38"
 }
 
 {
         "enabled": false,
         "present": true
     },
-    "id": "libvirt-36"
+    "id": "libvirt-39"
 }
 
 {
-    "id": "libvirt-37",
+    "id": "libvirt-40",
     "error": {
         "class": "CommandNotFound",
         "desc": "The command query-tpm-models has not been found"
 }
 
 {
-    "id": "libvirt-38",
+    "id": "libvirt-41",
     "error": {
         "class": "CommandNotFound",
         "desc": "The command query-tpm-types has not been found"
 }
 
 {
-    "id": "libvirt-39",
+    "id": "libvirt-42",
     "error": {
         "class": "CommandNotFound",
         "desc": "The command query-command-line-options has not been found"
             "state": false
         }
     ],
-    "id": "libvirt-40"
+    "id": "libvirt-43"
 }
index 5e8bdb4032eea8c32aa2942318b2cd5fc15b05d0..46c329272f29c23c0b0dad9f7f03a7d60bf51860 100644 (file)
 }
 
 
+{
+    "return": [
+        {
+             "name": "command_serr_enable",
+             "type": "on/off"
+        },
+        {
+            "name": "multifunction",
+            "type": "on/off"
+        },
+        {
+            "name": "rombar",
+            "type": "uint32"
+        },
+        {
+            "name": "romfile",
+            "type": "string"
+        },
+        {
+            "name": "addr",
+            "type": "pci-devfn"
+        },
+        {
+            "name": "class",
+            "type": "hex32"
+        },
+        {
+            "name": "event_idx",
+            "type": "on/off"
+        },
+        {
+            "name": "indirect_desc",
+            "type": "on/off"
+        }
+    ],
+    "id": "libvirt-34"
+}
+
+{
+    "id": "libvirt-35",
+    "error": {
+        "class": "DeviceNotFound",
+        "desc": "Device 'virtio-balloon-ccw' not found"
+    }
+}
+
+{
+    "id": "libvirt-36",
+    "error": {
+        "class": "DeviceNotFound",
+        "desc": "Device 'virtio-balloon-device' not found"
+    }
+}
+
 {
     "return": [
         {
             "name": "none"
         }
     ],
-    "id": "libvirt-34"
+    "id": "libvirt-37"
 }
 
 {
             "name": "qemu64"
         }
     ],
-    "id": "libvirt-35"
+    "id": "libvirt-38"
 }
 
 {
         "enabled": false,
         "present": true
     },
-    "id": "libvirt-36"
+    "id": "libvirt-39"
 }
 
 {
-    "id": "libvirt-37",
+    "id": "libvirt-40",
     "error": {
         "class": "CommandNotFound",
         "desc": "The command query-tpm-models has not been found"
 }
 
 {
-    "id": "libvirt-38",
+    "id": "libvirt-41",
     "error": {
         "class": "CommandNotFound",
         "desc": "The command query-tpm-types has not been found"
 }
 
 {
-    "id": "libvirt-39",
+    "id": "libvirt-42",
     "error": {
         "class": "CommandNotFound",
         "desc": "The command query-command-line-options has not been found"
             "state": false
         }
     ],
-    "id": "libvirt-40"
+    "id": "libvirt-43"
 }
index 1f4081eaec8fad5aff389cc90b84e00c771a3a98..37a735f6c1630fcf7763f36abe7483fb56c3379d 100644 (file)
     }
 }
 
+{
+    "return": [
+        {
+             "name": "command_serr_enable",
+             "type": "on/off"
+        },
+        {
+            "name": "multifunction",
+            "type": "on/off"
+        },
+        {
+            "name": "rombar",
+            "type": "uint32"
+        },
+        {
+            "name": "romfile",
+            "type": "string"
+        },
+        {
+            "name": "addr",
+            "type": "pci-devfn"
+        },
+        {
+            "name": "class",
+            "type": "hex32"
+        },
+        {
+            "name": "event_idx",
+            "type": "on/off"
+        },
+        {
+            "name": "indirect_desc",
+            "type": "on/off"
+        }
+    ],
+    "id": "libvirt-34"
+}
+
+{
+    "id": "libvirt-35",
+    "error": {
+        "class": "DeviceNotFound",
+        "desc": "Device 'virtio-balloon-ccw' not found"
+    }
+}
+
+{
+    "return": [
+    ],
+    "id": "libvirt-36"
+}
+
 {
     "return": [
         {
             "cpu-max": 1
         }
     ],
-    "id": "libvirt-34"
+    "id": "libvirt-37"
 }
 
 {
             "name": "qemu64"
         }
     ],
-    "id": "libvirt-35"
+    "id": "libvirt-38"
 }
 
 {
         "enabled": false,
         "present": true
     },
-    "id": "libvirt-36"
+    "id": "libvirt-39"
 }
 
 {
     "return": [
     ],
-    "id": "libvirt-37"
+    "id": "libvirt-40"
 }
 
 {
     "return": [
     ],
-    "id": "libvirt-38"
+    "id": "libvirt-41"
 }
 
 {
             "option": "drive"
         }
     ],
-    "id": "libvirt-39"
+    "id": "libvirt-42"
 }
 
 {
             "state": false
         }
     ],
-    "id": "libvirt-40"
+    "id": "libvirt-43"
 }
index 63dcde60c378731f3259b0e64ea1ccc5ed4273bf..89327022ba9d5c048bcac12e6638ca72deb4f514 100644 (file)
     }
 }
 
+{
+    "return": [
+        {
+             "name": "command_serr_enable",
+             "type": "on/off"
+        },
+        {
+            "name": "multifunction",
+            "type": "on/off"
+        },
+        {
+            "name": "rombar",
+            "type": "uint32"
+        },
+        {
+            "name": "romfile",
+            "type": "string"
+        },
+        {
+            "name": "addr",
+            "type": "pci-devfn"
+        },
+        {
+            "name": "class",
+            "type": "hex32"
+        },
+        {
+            "name": "event_idx",
+            "type": "on/off"
+        },
+        {
+            "name": "indirect_desc",
+            "type": "on/off"
+        }
+    ],
+    "id": "libvirt-34"
+}
+
+{
+    "id": "libvirt-35",
+    "error": {
+        "class": "DeviceNotFound",
+        "desc": "Device 'virtio-balloon-ccw' not found"
+    }
+}
+
+{
+    "return": [
+    ],
+    "id": "libvirt-36"
+}
+
 {
     "return": [
         {
             "cpu-max": 1
         }
     ],
-    "id": "libvirt-34"
+    "id": "libvirt-37"
 }
 
 {
             "name": "qemu64"
         }
     ],
-    "id": "libvirt-35"
+    "id": "libvirt-38"
 }
 
 {
         "enabled": false,
         "present": true
     },
-    "id": "libvirt-36"
+    "id": "libvirt-39"
 }
 
 {
     "return": [
     ],
-    "id": "libvirt-37"
+    "id": "libvirt-40"
 }
 
 {
     "return": [
     ],
-    "id": "libvirt-38"
+    "id": "libvirt-41"
 }
 
 {
             "option": "drive"
         }
     ],
-    "id": "libvirt-39"
+    "id": "libvirt-42"
 }
 
 {
             "state": false
         }
     ],
-    "id": "libvirt-40"
+    "id": "libvirt-43"
 }
index 869b5ed00d2db056101423e31741269bc5eab474..b9bb9a327d76787bf78ed453f1f4629bf9530d82 100644 (file)
     }
 }
 
+{
+    "return": [
+        {
+             "name": "command_serr_enable",
+             "type": "on/off"
+        },
+        {
+            "name": "multifunction",
+            "type": "on/off"
+        },
+        {
+            "name": "rombar",
+            "type": "uint32"
+        },
+        {
+            "name": "romfile",
+            "type": "string"
+        },
+        {
+            "name": "addr",
+            "type": "pci-devfn"
+        },
+        {
+            "name": "class",
+            "type": "hex32"
+        },
+        {
+            "name": "event_idx",
+            "type": "on/off"
+        },
+        {
+            "name": "indirect_desc",
+            "type": "on/off"
+        }
+    ],
+    "id": "libvirt-34"
+}
+
+{
+    "id": "libvirt-35",
+    "error": {
+        "class": "DeviceNotFound",
+        "desc": "Device 'virtio-balloon-ccw' not found"
+    }
+}
+
+{
+    "return": [
+    ],
+    "id": "libvirt-36"
+}
+
 {
     "return": [
         {
             "cpu-max": 1
         }
     ],
-    "id": "libvirt-34"
+    "id": "libvirt-37"
 }
 
 {
             "name": "qemu64"
         }
     ],
-    "id": "libvirt-35"
+    "id": "libvirt-38"
 }
 
 {
         "enabled": false,
         "present": true
     },
-    "id": "libvirt-36"
+    "id": "libvirt-39"
 }
 
 {
     "return": [
     ],
-    "id": "libvirt-37"
+    "id": "libvirt-40"
 }
 
 {
     "return": [
     ],
-    "id": "libvirt-38"
+    "id": "libvirt-41"
 }
 
 {
             "option": "drive"
         }
     ],
-    "id": "libvirt-39"
+    "id": "libvirt-42"
 }
 
 {
             "state": false
         }
     ],
-    "id": "libvirt-40"
+    "id": "libvirt-43"
 }
index 86047c162b46639629c7a8e7ef83f034954c94fa..fabda5572f5d7eb17015cfaf9ff667bef9a1bd29 100644 (file)
     }
 }
 
+{
+  "return": [
+    {
+      "name": "guest-stats-polling-interval",
+      "type": "int"
+    },
+    {
+      "name": "guest-stats",
+      "type": "guest statistics"
+    },
+    {
+      "name": "virtio-backend",
+      "type": "child<virtio-balloon-device>"
+    },
+    {
+      "name": "command_serr_enable",
+      "type": "on/off"
+    },
+    {
+      "name": "multifunction",
+      "type": "on/off"
+    },
+    {
+      "name": "rombar",
+      "type": "uint32"
+    },
+    {
+      "name": "romfile",
+      "type": "str"
+    },
+    {
+      "name": "addr",
+      "type": "pci-devfn"
+    },
+    {
+      "name": "event_idx",
+      "type": "on/off"
+    },
+    {
+      "name": "indirect_desc",
+      "type": "on/off"
+    },
+    {
+      "name": "class",
+      "type": "uint32"
+    }
+  ],
+  "id": "libvirt-34"
+}
+
+{
+  "id": "libvirt-35",
+  "error": {
+    "class": "DeviceNotFound",
+    "desc": "Device 'virtio-balloon-ccw' not found"
+  }
+}
+
+{
+  "return": [
+  ],
+  "id": "libvirt-36"
+}
+
 {
   "return": [
     {
       "cpu-max": 255
     }
   ],
-  "id": "libvirt-34"
+  "id": "libvirt-37"
 }
 
 {
       "name": "qemu64"
     }
   ],
-  "id": "libvirt-35"
+  "id": "libvirt-38"
 }
 
 {
     "enabled": false,
     "present": true
   },
-  "id": "libvirt-36"
+  "id": "libvirt-39"
 }
 
 {
   "return": [
     "tpm-tis"
   ],
-  "id": "libvirt-37"
+  "id": "libvirt-40"
 }
 
 {
   "return": [
     "passthrough"
   ],
-  "id": "libvirt-38"
+  "id": "libvirt-41"
 }
 
 {
       "option": "drive"
     }
   ],
-  "id": "libvirt-39"
+  "id": "libvirt-42"
 }
 
 {
       "capability": "zero-blocks"
     }
   ],
-  "id": "libvirt-40"
+  "id": "libvirt-43"
 }
index 97ac90118fbdf60bc7969e579b3261c2e0939df2..e411542762918e8cc42c53486ad24720471b9818 100644 (file)
     <flag name='ich9-disable-s3'/>
     <flag name='ich9-disable-s4'/>
     <flag name='vserport-change-event'/>
+    <flag name='virtio-balloon-pci.deflate-on-oom'/>
   </qemuCaps>
index 8d25759cda8b01da03c737f261268e6ba3709ee2..299fdfc58c2a8a20e2ad0dc39da4f27500fa91ca 100644 (file)
 }
 
 
+{
+  "return": [
+    {
+      "name": "guest-stats-polling-interval",
+      "type": "int"
+    },
+    {
+      "name": "guest-stats",
+      "type": "guest statistics"
+    },
+    {
+      "name": "any_layout",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "notify_on_empty",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "event_idx",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "indirect_desc",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "deflate-on-oom",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "virtio-backend",
+      "type": "child<virtio-balloon-device>"
+    },
+    {
+      "name": "command_serr_enable",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "multifunction",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "rombar",
+      "type": "uint32"
+    },
+    {
+      "name": "romfile",
+      "type": "str"
+    },
+    {
+      "name": "addr",
+      "description": "Slot and optional function number, example: 06.0 or 06",
+      "type": "int32"
+    },
+    {
+      "name": "disable-modern",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "disable-legacy",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "virtio-pci-bus-master-bug-migration",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "class",
+      "type": "uint32"
+    }
+  ],
+  "id": "libvirt-34"
+}
+
+{
+  "id": "libvirt-35",
+  "error": {
+    "class": "DeviceNotFound",
+    "desc": "Device 'virtio-balloon-ccw' not found"
+  }
+}
+
+{
+  "return": [
+    {
+      "name": "guest-stats-polling-interval",
+      "type": "int"
+    },
+    {
+      "name": "guest-stats",
+      "type": "guest statistics"
+    },
+    {
+      "name": "any_layout",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "notify_on_empty",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "event_idx",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "indirect_desc",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "deflate-on-oom",
+      "description": "on/off",
+      "type": "bool"
+    }
+  ],
+  "id": "libvirt-36"
+}
+
 {
   "return": [
     {
       "cpu-max": 255
     }
   ],
-  "id": "libvirt-34"
+  "id": "libvirt-37"
 }
 
 {
       "name": "qemu64"
     }
   ],
-  "id": "libvirt-35"
+  "id": "libvirt-38"
 }
 
 {
     "enabled": false,
     "present": true
   },
-  "id": "libvirt-36"
+  "id": "libvirt-39"
 }
 
 {
   "return": [
     "tpm-tis"
   ],
-  "id": "libvirt-37"
+  "id": "libvirt-40"
 }
 
 {
   "return": [
     "passthrough"
   ],
-  "id": "libvirt-38"
+  "id": "libvirt-41"
 }
 
 {
       "option": "drive"
     }
   ],
-  "id": "libvirt-39"
+  "id": "libvirt-42"
 }
 
 {
       "capability": "events"
     }
   ],
-  "id": "libvirt-40"
+  "id": "libvirt-43"
 }
index 1d49d9d236ee2bb9a74ffaa858c9d3f54e070361..931bc4fbcc5832e61f2d0d6f6c4cfd1c6e604005 100644 (file)
     <flag name='ich9-disable-s3'/>
     <flag name='ich9-disable-s4'/>
     <flag name='vserport-change-event'/>
+    <flag name='virtio-balloon-pci.deflate-on-oom'/>
   </qemuCaps>
index fc3f6991953035af793490509cdebdb031e4b9cc..7b692b5017a35f40cc9b59bf2e354277a88c84b8 100644 (file)
 }
 
 
+{
+  "return": [
+    {
+      "name": "disable-modern",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "rombar",
+      "type": "uint32"
+    },
+    {
+      "name": "virtio-pci-bus-master-bug-migration",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "class",
+      "type": "uint32"
+    },
+    {
+      "name": "indirect_desc",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "guest-stats-polling-interval",
+      "type": "int"
+    },
+    {
+      "name": "guest-stats",
+      "type": "guest statistics"
+    },
+    {
+      "name": "multifunction",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "migrate-extra",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "event_idx",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "modern-pio-notify",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "romfile",
+      "type": "str"
+    },
+    {
+      "name": "virtio-backend",
+      "type": "child<virtio-balloon-device>"
+    },
+    {
+      "name": "disable-legacy",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "command_serr_enable",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "x-disable-pcie",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "addr",
+      "description": "Slot and optional function number, example: 06.0 or 06",
+      "type": "int32"
+    },
+    {
+      "name": "any_layout",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "notify_on_empty",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "deflate-on-oom",
+      "description": "on/off",
+      "type": "bool"
+    }
+  ],
+  "id": "libvirt-34"
+}
+
+{
+  "id": "libvirt-35",
+  "error": {
+    "class": "DeviceNotFound",
+    "desc": "Device 'virtio-balloon-ccw' not found"
+  }
+}
+
+{
+  "return": [
+    {
+      "name": "notify_on_empty",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "any_layout",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "indirect_desc",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "guest-stats-polling-interval",
+      "type": "int"
+    },
+    {
+      "name": "guest-stats",
+      "type": "guest statistics"
+    },
+    {
+      "name": "event_idx",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "deflate-on-oom",
+      "description": "on/off",
+      "type": "bool"
+    }
+  ],
+  "id": "libvirt-36"
+}
+
 {
   "return": [
     {
       "cpu-max": 255
     }
   ],
-  "id": "libvirt-34"
+  "id": "libvirt-37"
 }
 
 {
       "name": "qemu64"
     }
   ],
-  "id": "libvirt-35"
+  "id": "libvirt-38"
 }
 
 {
     "enabled": false,
     "present": true
   },
-  "id": "libvirt-36"
+  "id": "libvirt-39"
 }
 
 {
   "return": [
     "tpm-tis"
   ],
-  "id": "libvirt-37"
+  "id": "libvirt-40"
 }
 
 {
   "return": [
     "passthrough"
   ],
-  "id": "libvirt-38"
+  "id": "libvirt-41"
 }
 
 {
       "option": "drive"
     }
   ],
-  "id": "libvirt-39"
+  "id": "libvirt-42"
 }
 
 {
       "capability": "events"
     }
   ],
-  "id": "libvirt-40"
+  "id": "libvirt-43"
 }
index 10c07cdf27d5e6403197f8ca6708622c562df126..f32d5aaa474205763560a4c80709b2430d56573e 100644 (file)
     <flag name='ich9-disable-s3'/>
     <flag name='ich9-disable-s4'/>
     <flag name='vserport-change-event'/>
+    <flag name='virtio-balloon-pci.deflate-on-oom'/>
   </qemuCaps>
index 304f9185f28c82acd44d8321424dc514c8ee9e25..8ee4bec76de51345a4319abf4c947534c4217862 100644 (file)
 }
 
 
+{
+  "return": [
+    {
+      "name": "disable-modern",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "rombar",
+      "type": "uint32"
+    },
+    {
+      "name": "virtio-pci-bus-master-bug-migration",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "class",
+      "type": "uint32"
+    },
+    {
+      "name": "indirect_desc",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "guest-stats-polling-interval",
+      "type": "int"
+    },
+    {
+      "name": "guest-stats",
+      "type": "guest statistics"
+    },
+    {
+      "name": "multifunction",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "migrate-extra",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "event_idx",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "modern-pio-notify",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "romfile",
+      "type": "str"
+    },
+    {
+      "name": "virtio-backend",
+      "type": "child<virtio-balloon-device>"
+    },
+    {
+      "name": "disable-legacy",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "command_serr_enable",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "x-disable-pcie",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "addr",
+      "description": "Slot and optional function number, example: 06.0 or 06",
+      "type": "int32"
+    },
+    {
+      "name": "any_layout",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "notify_on_empty",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "deflate-on-oom",
+      "description": "on/off",
+      "type": "bool"
+    }
+  ],
+  "id": "libvirt-34"
+}
+
+{
+  "id": "libvirt-35",
+  "error": {
+    "class": "DeviceNotFound",
+    "desc": "Device 'virtio-balloon-ccw' not found"
+  }
+}
+
+{
+  "return": [
+    {
+      "name": "notify_on_empty",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "any_layout",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "indirect_desc",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "guest-stats-polling-interval",
+      "type": "int"
+    },
+    {
+      "name": "guest-stats",
+      "type": "guest statistics"
+    },
+    {
+      "name": "event_idx",
+      "description": "on/off",
+      "type": "bool"
+    },
+    {
+      "name": "deflate-on-oom",
+      "description": "on/off",
+      "type": "bool"
+    }
+  ],
+  "id": "libvirt-36"
+}
+
 {
   "return": [
     {
       "cpu-max": 255
     }
   ],
-  "id": "libvirt-34"
+  "id": "libvirt-37"
 }
 
 {
       "name": "qemu64"
     }
   ],
-  "id": "libvirt-35"
+  "id": "libvirt-38"
 }
 
 {
     "enabled": false,
     "present": true
   },
-  "id": "libvirt-36"
+  "id": "libvirt-39"
 }
 
 {
   "return": [
     "tpm-tis"
   ],
-  "id": "libvirt-37"
+  "id": "libvirt-40"
 }
 
 {
   "return": [
     "passthrough"
   ],
-  "id": "libvirt-38"
+  "id": "libvirt-41"
 }
 
 {
       "option": "drive"
     }
   ],
-  "id": "libvirt-39"
+  "id": "libvirt-42"
 }
 
 {
       "capability": "events"
     }
   ],
-  "id": "libvirt-40"
+  "id": "libvirt-43"
 }