[libvirt] [PATCH 5/6] tests: Refresh capabilities for QEMU on ppc64

Andrea Bolognani abologna at redhat.com
Thu May 16 15:35:35 UTC 2019


Now that we're probing machine type properties using the
latest machine type rather than the "spapr-machine" parent,
we can finally discover properties that are not available
on all machine types.

This commit refreshes replies for QEMU 4.0.0 as well as
3.1.0 to show not only that we're actually discovering new
machine type properties this way, but also that the number
of available machine type properties increases with each
subsequent QEMU release.

If qom-list-properties had been available in QEMU 2.10.0,
we could now drop the explicit version number checks for
the QEMU_CAPS_MACHINE_PSERIES_MAX_CPU_COMPAT and
QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT capabilities, but
unfortunately it wasn't, so we have to keep them around
still.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 .../caps_3.1.0.ppc64.replies                  | 29 ++++++++++++
 .../caps_4.0.0.ppc64.replies                  | 44 +++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies
index c23f67e869..33666a43db 100644
--- a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies
+++ b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.replies
@@ -5841,6 +5841,35 @@
       "name": "cap-nested-hv",
       "description": "Allow Nested KVM-HV",
       "type": "bool"
+    },
+    {
+      "name": "resize-hpt",
+      "description": "Resizing of the Hash Page Table (enabled, disabled, required)",
+      "type": "string"
+    },
+    {
+      "name": "max-cpu-compat",
+      "description": "Maximum permitted CPU compatibility mode. Valid values are power6, power7, power7+, power8, power9.",
+      "type": "string"
+    },
+    {
+      "name": "modern-hotplug-events",
+      "description": "Use dedicated hotplug event mechanism in place of standard EPOW events when possible (required for memory hot-unplug support)",
+      "type": "bool"
+    },
+    {
+      "name": "vsmt",
+      "description": "Virtual SMT: KVM behaves as if this were the host's SMT mode",
+      "type": "uint32"
+    },
+    {
+      "name": "kvm-type",
+      "description": "Specifies the KVM virtualization mode (HV, PR)",
+      "type": "string"
+    },
+    {
+      "name": "vfio-no-msix-emulation",
+      "type": "bool"
     }
   ],
   "id": "libvirt-33"
diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies b/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies
index 38e4c254a4..baa8f8963d 100644
--- a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies
+++ b/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.replies
@@ -6234,6 +6234,50 @@
       "name": "cap-nested-hv",
       "description": "Allow Nested KVM-HV",
       "type": "bool"
+    },
+    {
+      "name": "vfio-no-msix-emulation",
+      "type": "bool"
+    },
+    {
+      "name": "ic-mode",
+      "description": "Specifies the interrupt controller mode (xics, xive, dual)",
+      "type": "string"
+    },
+    {
+      "name": "kvm-type",
+      "description": "Specifies the KVM virtualization mode (HV, PR)",
+      "type": "string"
+    },
+    {
+      "name": "host-model",
+      "description": "Host model to advertise in guest device tree",
+      "type": "string"
+    },
+    {
+      "name": "max-cpu-compat",
+      "description": "Maximum permitted CPU compatibility mode. Valid values are power6, power7, power7+, power8, power9.",
+      "type": "string"
+    },
+    {
+      "name": "modern-hotplug-events",
+      "description": "Use dedicated hotplug event mechanism in place of standard EPOW events when possible (required for memory hot-unplug support)",
+      "type": "bool"
+    },
+    {
+      "name": "vsmt",
+      "description": "Virtual SMT: KVM behaves as if this were the host's SMT mode",
+      "type": "uint32"
+    },
+    {
+      "name": "host-serial",
+      "description": "Host serial number to advertise in guest device tree",
+      "type": "string"
+    },
+    {
+      "name": "resize-hpt",
+      "description": "Resizing of the Hash Page Table (enabled, disabled, required)",
+      "type": "string"
     }
   ],
   "id": "libvirt-34"
-- 
2.21.0




More information about the libvir-list mailing list