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

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