Received: from eggs.gnu.org ([2001:4830:134:3::10]:43563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD4IP-0007Q4-MF for qemu-devel@nongnu.org; Wed, 15 Jun 2016 02:27:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bD4IL-0004rl-EU for qemu-devel@nongnu.org; Wed, 15 Jun 2016 02:27:24 -0400 Date: Wed, 15 Jun 2016 16:04:14 +1000 From: David Gibson Message-ID: <20160615060414.GG21472@voom.fritz.box> References: <1465520348-13964-1-git-send-email-bharata@linux.vnet.ibm.com> <20160610051414.GP9226@voom.fritz.box> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eVzOFob/8UvintSX" Content-Disposition: inline In-Reply-To: <20160610051414.GP9226@voom.fritz.box> Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 0/9] Core based CPU hotplug for PowerPC sPAPR List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bharata B Rao Cc: mjrosato@linux.vnet.ibm.com, thuth@redhat.com, pkrempa@redhat.com, ehabkost@redhat.com, qemu-devel@nongnu.org, borntraeger@de.ibm.com, qemu-ppc@nongnu.org, pbonzini@redhat.com, imammedo@redhat.com, eblake@redhat.com, mdroth@linux.vnet.ibm.com --eVzOFob/8UvintSX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 10, 2016 at 03:14:14PM +1000, David Gibson wrote: > On Fri, Jun 10, 2016 at 06:28:59AM +0530, Bharata B Rao wrote: > > Hi, > >=20 > > This is the next version of the CPU hotplug patchset for PowerPC > > sPAPR target. The hotplug semantics looks like this: > >=20 > > (qemu) device_add POWER8E-spapr-cpu-core,id=3Dcore2,core-id=3D16[,threa= ds=3D4] > > (qemu) device_add host-spapr-cpu-core,id=3Dcore2,core-id=3D16[,threads= =3D4] > > (qemu) device_add > > POWER8E_v2.1-spapr-cpu-core,id=3Dcore2,core-id=3D16[,threads=3D4] >=20 > I've merged these to my ppc-cpu-hotplug branch, and I'm doing some > testing. It it checks out, I hope to send a pull request. I've now merged this into my main ppc-for-2.7 branch. I'll be doing some testing, obviously, but I'd certain appreciate any other tests of this branch with the hotplug code. >=20 > >=20 > > Changes in v4 > > ------------- > > - Rebased against David Gibson's ppc-cpu-hotplug and hence dropped those > > patches that are already part of that tree. > > - We were assuming the CPU thread to be always of type PowerPCCPU which > > needn't be true. Hence use actual CPU type's instance_size when > > object_initialize'ing the threads as per David's suggestion. This req= uires > > us to know the instance_size for a given type for which a new QOM API > > object_type_get_size() has been introduced in this version. > > - Consolidate CPU init related routines in spapr_cpu_core.c. As part of= this > > move spapr_cpu_init() and its dependencies to spapr_cpu_core.c. > > - Got rid of the temporary unplug list when removing CPU cores. > > - Folded spapr_cpu_core_create_threads() into spapr_cpu_core_realize() = and > > fixed the error path in in spapr_cpu_core_realize(). > > - Add support for -cpu host. > >=20 > > TODOs remaining > > --------------- > > - Work on David's suggestion of intializing CPU's ObjectClass in > > class_init rather than instance_init. > > - Use object_initialize_with_type instead of object_initialize when > > creating CPU threads of a core. > > - Use vcpu_dt_id logic when populating core id in > > spapr_query_hotpluggable_cpus(). > > - Handle CPU compat properly (-cpu host,compat=3DPOWER7) > >=20 > > v3: https://lists.gnu.org/archive/html/qemu-devel/2016-05/msg01829.html > >=20 > > Bharata B Rao (7): > > qom: API to get instance_size of a type > > spapr: Abstract CPU core device and type specific core devices > > spapr: Move spapr_cpu_init() to spapr_cpu_core.c > > spapr: convert boot CPUs into CPU core devices > > spapr: CPU hotplug support > > spapr: CPU hot unplug support > > hmp: Add 'info hotpluggable-cpus' HMP command > >=20 > > Igor Mammedov (2): > > QMP: Add query-hotpluggable-cpus > > spapr: implement query-hotpluggable-cpus callback > >=20 > > hmp-commands-info.hx | 14 ++ > > hmp.c | 41 ++++ > > hmp.h | 1 + > > hw/ppc/Makefile.objs | 1 + > > hw/ppc/spapr.c | 215 +++++++++++++++------ > > hw/ppc/spapr_cpu_core.c | 405 ++++++++++++++++++++++++++++++++= ++++++++ > > hw/ppc/spapr_events.c | 3 + > > hw/ppc/spapr_rtas.c | 24 +++ > > include/hw/boards.h | 5 + > > include/hw/ppc/spapr.h | 7 + > > include/hw/ppc/spapr_cpu_core.h | 36 ++++ > > include/qom/object.h | 8 +- > > monitor.c | 13 ++ > > qapi-schema.json | 55 ++++++ > > qmp-commands.hx | 23 +++ > > qom/object.c | 8 + > > target-ppc/kvm.c | 28 +++ > > 17 files changed, 828 insertions(+), 59 deletions(-) > > create mode 100644 hw/ppc/spapr_cpu_core.c > > create mode 100644 include/hw/ppc/spapr_cpu_core.h > >=20 >=20 --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --eVzOFob/8UvintSX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJXYO/eAAoJEGw4ysog2bOSnasQAJJEgv6unkB+26cUeLmME/5K Cs9nGAD6qHHiaPhPUL3jYKJT7wOeGsYiEqO0g6DogMukjmd7Uo01FKHSNE0a7rQL aiFEzmdZYLdCEtuej6W6MrWVwNkTWN8+tTitiPzTkAa9DxatyY+sn11641qMUJ2j Ytl8PnZC4ADebWhxH3Oydcn3NnAyRQbcE6v92lxxMO+oL1gpSkXqDmBMaYxgNGnf AdLecPyQrIB3DB7IljcsrwDCuf13nqQnfN0kB73RyXv+B2vWNzDRjU8+UwXv1o/J l0sNyzxAbPZ2HtNO9owx+3o+kol3PqTdrbckkFUmskVLUbaLdkKr8R7KQa0wWDKx gcGZ6bjrPW9AotksMnhQyN0jqETM3xldX3sphLbSvzc12AbYbHD0mLIVYiHpa6Mw C9+xzu7XM57v9qG8cHHhbiMWebQ7CeNrc3JwrYeCfRcVGvg6mSdkuD9lmyaGFcPH TJTSFPvwfL4ZnRWlzDT7OhMA+lbyYX6RRc5S2MhZjCiF11EMQmEk/0hNgLMgPu+h g8Qpajag/EtEu/23Kg93S3if/dDaGkWH5gvahnR25QFNEUmGQjVxxZoKmtm8WYxM lefLLwDIwaG3FKk4gbT15pxtMGfpli047k9XWQWX7UJPk6w+WVwbfy5IwPz3Li3w spY60lC2WX6RAWn6o7bv =DRhf -----END PGP SIGNATURE----- --eVzOFob/8UvintSX--