Blame SOURCES/kvm-qemu-kvm-ma-define-only-pseries-rhel7.5.0-machine-ty.patch

4a2fec
From d8bf28e9ec1a5d854c3fa6f17001db2e8bc59a7a Mon Sep 17 00:00:00 2001
4a2fec
From: Laurent Vivier <lvivier@redhat.com>
4a2fec
Date: Mon, 9 Oct 2017 14:23:18 +0200
4a2fec
Subject: [PATCH 08/69] qemu-kvm-ma: define only pseries-rhel7.5.0 machine type
4a2fec
 for -ma
4a2fec
4a2fec
RH-Author: Laurent Vivier <lvivier@redhat.com>
4a2fec
Message-id: <20171009142318.6262-5-lvivier@redhat.com>
4a2fec
Patchwork-id: 77032
4a2fec
O-Subject: [RHV7.5 qemu-kvm-rhev PATCH 4/4] qemu-kvm-ma: define only pseries-rhel7.5.0 machine type for -ma
4a2fec
Bugzilla: 1478478
4a2fec
RH-Acked-by: David Gibson <dgibson@redhat.com>
4a2fec
RH-Acked-by: Thomas Huth <thuth@redhat.com>
4a2fec
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
4a2fec
4a2fec
qemu-kvm-ma doesn't support pseries-rhel7.2.0,
4a2fec
pseries-rhel7.3.0, pseries-rhel7.4.0 whereas
4a2fec
qemu-kvm-rhev does. And as the sources are shared
4a2fec
we use a configuration switch to disable this part
4a2fec
of the code.
4a2fec
4a2fec
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
4a2fec
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
4a2fec
---
4a2fec
 hw/ppc/spapr.c | 5 +++++
4a2fec
 1 file changed, 5 insertions(+)
4a2fec
4a2fec
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
4a2fec
index cb317f8..3c598fd 100644
4a2fec
--- a/hw/ppc/spapr.c
4a2fec
+++ b/hw/ppc/spapr.c
4a2fec
@@ -3734,6 +3734,7 @@ DEFINE_SPAPR_MACHINE(2_8, "2.8", false);
4a2fec
     },
4a2fec
 #endif
4a2fec
 
4a2fec
+#if defined(CONFIG_RHV)
4a2fec
 static void phb_placement_2_7(sPAPRMachineState *spapr, uint32_t index,
4a2fec
                               uint64_t *buid, hwaddr *pio,
4a2fec
                               hwaddr *mmio32, hwaddr *mmio64,
4a2fec
@@ -3782,6 +3783,7 @@ static void phb_placement_2_7(sPAPRMachineState *spapr, uint32_t index,
4a2fec
      * window into contiguous 32-bit and 64-bit windows
4a2fec
      */
4a2fec
 }
4a2fec
+#endif /* CONFIG_RHV */
4a2fec
 
4a2fec
 #if 0 /* Disabled for Red Hat Enterprise Linux */
4a2fec
 static void spapr_machine_2_7_instance_options(MachineState *machine)
4a2fec
@@ -3960,6 +3962,8 @@ static void spapr_machine_rhel750_class_options(MachineClass *mc)
4a2fec
 
4a2fec
 DEFINE_SPAPR_MACHINE(rhel750, "rhel7.5.0", true);
4a2fec
 
4a2fec
+#if defined(CONFIG_RHV)
4a2fec
+
4a2fec
 /*
4a2fec
  * pseries-rhel7.4.0
4a2fec
  * like SPAPR_COMPAT_2_9
4a2fec
@@ -4079,6 +4083,7 @@ static void spapr_machine_rhel720_class_options(MachineClass *mc)
4a2fec
 }
4a2fec
 
4a2fec
 DEFINE_SPAPR_MACHINE(rhel720, "rhel7.2.0", false);
4a2fec
+#endif /* CONFIG_RHV */
4a2fec
 
4a2fec
 static void spapr_machine_register_types(void)
4a2fec
 {
4a2fec
-- 
4a2fec
1.8.3.1
4a2fec