it's a spapr flavor of original RFC with comments taken in account
https://patchwork.ozlabs.org/patch/583036/
Changes since RFC:
- drop arch_id
- move CPU properties into separate structure
- target implements its own qmp callback version
- rebased on top of [RFC PATCH v1 00/10] Core based CPU hotplug for PowerPC
sPAPR
https://www.mail-archive.com/[email protected]/msg357567.html
- convert slot name to core id hack
- drop links
- add generic pre hotplug callback
- implement query-hotpluggable-cpus
Igor Mammedov (5):
QMP: add query-hotpluggable-cpus
spapr: convert slot name property to numeric core and links
qdev: hotplug: introduce HotplugHandler.pre_plug() callback
spapr: check if cpu core is already present
spapr: implement query-hotpluggable-cpus QMP command
hw/core/hotplug.c | 11 +++++
hw/core/qdev.c | 9 +++-
hw/cpu/core.c | 32 ++++++++----
hw/ppc/spapr.c | 97 +++++++++++++++++++++----------------
hw/ppc/spapr_cpu_core.c | 25 +---------
include/hw/cpu/core.h | 4 +-
include/hw/hotplug.h | 14 +++++-
qapi-schema.json | 39 +++++++++++++++
qmp-commands.hx | 34 +++++++++++++
stubs/Makefile.objs | 1 +
stubs/qmp_query_hotpluggable_cpus.c | 9 ++++
11 files changed, 198 insertions(+), 77 deletions(-)
create mode 100644 stubs/qmp_query_hotpluggable_cpus.c
--
1.8.3.1