From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adHWv-0008Tn-Le for qemu-devel@nongnu.org; Tue, 08 Mar 2016 08:18:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adHWr-00049d-Go for qemu-devel@nongnu.org; Tue, 08 Mar 2016 08:18:29 -0500 From: Igor Mammedov Date: Tue, 8 Mar 2016 14:18:10 +0100 Message-Id: <1457443095-213125-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/5] spapr: QMP: add query-hotpluggable-cpus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mjrosato@linux.vnet.ibm.com, thuth@redhat.com, pkrempa@redhat.com, ehabkost@redhat.com, aik@ozlabs.ru, armbru@redhat.com, agraf@suse.de, borntraeger@de.ibm.com, qemu-ppc@nongnu.org, bharata@linux.vnet.ibm.com, pbonzini@redhat.com, mdroth@linux.vnet.ibm.com, afaerber@suse.de, david@gibson.dropbear.id.au 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/qemu-devel@nongnu.org/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