Blame SOURCES/0029-spapr-disable-cpu-hot-remove.patch

357786
From 695c0b884eb5e6f35023b0e32928741c044b0498 Mon Sep 17 00:00:00 2001
357786
From: Igor Mammedov <imammedo@redhat.com>
357786
Date: Thu, 19 Oct 2017 15:28:13 +0200
357786
Subject: spapr: disable cpu hot-remove
357786
357786
RH-Author: Igor Mammedov <imammedo@redhat.com>
357786
Message-id: <1508426893-172020-1-git-send-email-imammedo@redhat.com>
357786
Patchwork-id: 77378
357786
O-Subject: [RHV7.5 qemu-kvm-ma PATCH v2] spapr: disable cpu hot-remove
357786
Bugzilla: 1499320
357786
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
357786
RH-Acked-by: Thomas Huth <thuth@redhat.com>
357786
RH-Acked-by: David Gibson <dgibson@redhat.com>
357786
357786
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1499320
357786
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=14301295
357786
Upstream: RHEL-only
357786
357786
Rebase to 2.10 brought in cpu hot-remove with it, disable it
357786
for qemu-kvm-ma variant of QEMU where it hasn't been supported.
357786
Use CONFIG_RHV to switch unplug off only for qemu-kvm-ma and
357786
not to affect RHEV variant built from the same source code.
357786
357786
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
357786
357786
Conflicts:
357786
	hw/ppc/spapr.c
357786
357786
(cherry picked from commit 56c058f25caa085fb22a92d89976afb529a391d8)
357786
(cherry picked from commit c5448e8e407c2275d5b74e93fbf67eafb93b5a56)
357786
(cherry picked from commit 7556463d8bfe3f357960962c6da2f6dc692b289f)
357786
---
357786
 hw/ppc/spapr.c | 4 ++++
357786
 1 file changed, 4 insertions(+)
357786
357786
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
357786
index 3ea94de..f71a62e 100644
357786
--- a/hw/ppc/spapr.c
357786
+++ b/hw/ppc/spapr.c
357786
@@ -3315,6 +3315,7 @@ static
357786
 void spapr_core_unplug_request(HotplugHandler *hotplug_dev, DeviceState *dev,
357786
                                Error **errp)
357786
 {
357786
+#if defined(CONFIG_RHV)
357786
     sPAPRMachineState *spapr = SPAPR_MACHINE(OBJECT(hotplug_dev));
357786
     int index;
357786
     sPAPRDRConnector *drc;
357786
@@ -3337,6 +3338,9 @@ void spapr_core_unplug_request(HotplugHandler *hotplug_dev, DeviceState *dev,
357786
     spapr_drc_detach(drc);
357786
 
357786
     spapr_hotplug_req_remove_by_index(drc);
357786
+#else
357786
+    error_setg(errp, "this feature or command is not currently supported");
357786
+#endif /* CONFIG_RHV */
357786
 }
357786
 
357786
 static void spapr_core_plug(HotplugHandler *hotplug_dev, DeviceState *dev,
357786
-- 
357786
1.8.3.1
357786