spapr: define SPAPR_COMPAT_2_3
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 14 May 2015 18:53:05 +0000 (15:53 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 31 May 2015 14:26:41 +0000 (16:26 +0200)
Don't add the pseries-2.3 machine yet, but define the corresponding
SPAPR_COMPAT macro to make sure both pseries-2.2 and pseries-2.1 will
inherit HW_COMPAT_2_3.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/ppc/spapr.c

index de1b740..a15fa3c 100644 (file)
@@ -1815,7 +1815,11 @@ static const TypeInfo spapr_machine_info = {
     },
 };
 
+#define SPAPR_COMPAT_2_3 \
+        HW_COMPAT_2_3
+
 #define SPAPR_COMPAT_2_2 \
+        SPAPR_COMPAT_2_3 \
         HW_COMPAT_2_2 \
         {\
             .driver   = TYPE_SPAPR_PCI_HOST_BRIDGE,\