mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
spapr: Prevent boot CPU core removal
Boot CPU is assumed to be always present in QEMU code. So until that assumptions are gone, deny removal request. In another words, QEMU won't support boot CPU core hot-unplug. Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com> [dwg: Tweaked error message for clarity] Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
bcd510b141
commit
62be8b044a
1 changed files with 5 additions and 0 deletions
|
@ -133,6 +133,11 @@ void spapr_core_unplug(HotplugHandler *hotplug_dev, DeviceState *dev,
|
|||
sPAPRDRConnectorClass *drck;
|
||||
Error *local_err = NULL;
|
||||
|
||||
if (index == 0) {
|
||||
error_setg(errp, "Boot CPU core may not be unplugged");
|
||||
return;
|
||||
}
|
||||
|
||||
g_assert(drc);
|
||||
|
||||
drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue