summary refs log tree commit diff stats
path: root/hw/ppc
diff options
context:
space:
mode:
authorCornelia Huck <cohuck@redhat.com>2020-04-29 16:46:05 +0200
committerStefan Berger <stefanb@linux.vnet.ibm.com>2020-05-06 10:12:16 -0400
commit541aaa1df80df465c7dc934dc8cf57c0e3dfd6c3 (patch)
tree6b4ce0b9f7f8cff0a3694487c15cb944e8dd4405 /hw/ppc
parentb13d31ca17cc22c79b2dc29abd030802e4cc36f4 (diff)
downloadfocaccia-qemu-541aaa1df80df465c7dc934dc8cf57c0e3dfd6c3.tar.gz
focaccia-qemu-541aaa1df80df465c7dc934dc8cf57c0e3dfd6c3.zip
hw: add compat machines for 5.1
Add 5.1 machine types for arm/i440fx/q35/s390x/spapr.

Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Message-id: 20200429144605.7262-1-cohuck@redhat.com
Diffstat (limited to 'hw/ppc')
-rw-r--r--hw/ppc/spapr.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 9a2bd501aa..fd5bfd11a8 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -4600,14 +4600,25 @@ static void spapr_machine_latest_class_options(MachineClass *mc)
     type_init(spapr_machine_register_##suffix)
 
 /*
+ * pseries-5.1
+ */
+static void spapr_machine_5_1_class_options(MachineClass *mc)
+{
+    /* Defaults for the latest behaviour inherited from the base class */
+}
+
+DEFINE_SPAPR_MACHINE(5_1, "5.1", true);
+
+/*
  * pseries-5.0
  */
 static void spapr_machine_5_0_class_options(MachineClass *mc)
 {
-    /* Defaults for the latest behaviour inherited from the base class */
+    spapr_machine_5_1_class_options(mc);
+    compat_props_add(mc->compat_props, hw_compat_5_0, hw_compat_5_0_len);
 }
 
-DEFINE_SPAPR_MACHINE(5_0, "5.0", true);
+DEFINE_SPAPR_MACHINE(5_0, "5.0", false);
 
 /*
  * pseries-4.2