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