Received: from eggs.gnu.org ([2001:4830:134:3::10]:53655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anYzs-00084S-01 for qemu-devel@nongnu.org; Tue, 05 Apr 2016 17:58:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anYzn-0008NK-5y for qemu-devel@nongnu.org; Tue, 05 Apr 2016 17:58:51 -0400 Date: Tue, 5 Apr 2016 23:58:16 +0200 From: Igor Mammedov Message-ID: <20160405235816.164702b0@igors-macbook-pro.local> In-Reply-To: <20160405145557.GA32764@in.ibm.com> References: <1459413561-30745-1-git-send-email-bharata@linux.vnet.ibm.com> <20160404164427.3eed276b@igors-macbook-pro.local> <20160405145557.GA32764@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC PATCH v2.1 00/12] 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, aik@ozlabs.ru, qemu-devel@nongnu.org, agraf@suse.de, armbru@redhat.com, borntraeger@de.ibm.com, qemu-ppc@nongnu.org, afaerber@suse.de, pbonzini@redhat.com, mdroth@linux.vnet.ibm.com, david@gibson.dropbear.id.au On Tue, 5 Apr 2016 20:25:57 +0530 Bharata B Rao wrote: > On Mon, Apr 04, 2016 at 04:44:27PM +0200, Igor Mammedov wrote: > > On Thu, 31 Mar 2016 14:09:09 +0530 > > Bharata B Rao wrote: > >=20 > > > Hi, > > >=20 > > > This is v2.1 of "Core based CPU hotplug for PowerPC sPAPR". v2 was > > > posted here: > > > https://lists.gnu.org/archive/html/qemu-ppc/2016-03/msg00201.html > > >=20 > > > I am making this v2.1 instead of v3 as this introduces a change in > > > device_add semantics and if we don't want to continue this, I > > > will go back to the previous v2 semantics from v3 onwards. v2 had > > > spapr-cpu-core device that served as CPU core device for all > > > types of PowerPCCPU threads. In this version however, > > > spapr-cpu-core becomes an abstract device and we will have > > > different core devices for each of the PowerPCCPU type. So in > > > this version, the hotplug semantics looks like this: > > >=20 > > > (qemu) device_add > > > POWER8-spapr-cpu-core,id=3Dcore2,core=3D16[,threads=3D4] > > >=20 > > > cpu_model specification is gone as it becomes redundant with > > > different core types for each CPU type. CPU core types are > > > defined only for host, POWER7 and POWER8 models only (and not for > > > their variants/aliases) yet. > > >=20 > > > I have mostly taken care of all the review comments that I got > > > for v2. > > Could you rebase on top of current master, pls? >=20 > Sure, I usually update, but missed it this time. >=20 > >=20 > > and fix compile error: > > hw/cpu/core.c: In function =E2=80=98core_prop_set_core=E2=80=99: > > hw/cpu/core.c:31:9: error: implicit declaration of function > > =E2=80=98error_propagate=E2=80=99 [-Werror=3Dimplicit-function-declarat= ion] > > error_propagate(errp, local_err); >=20 > I don't see this when compiling all the targets either on x86 or PPC > systems. May be this is seen with latest master, in any case will > check this out when spinning next version. Series also breaks 'make check' gdb ./ppc64-softmmu/qemu-system-ppc64 Program received signal SIGSEGV, Segmentation fault. object_class_get_name (klass=3D0x0) at qom/object.c:748 748 return klass->type->name; (gdb) bt #0 object_class_get_name (klass=3D0x0) at qom/object.c:748 #1 0x0000555555795aff in POWER7_spapr_cpu_core_create_threads (errp=3D0x7f= ffffffdc00, threads=3D0x1, dev=3D0x5555565bf930) at /home/imammedo/builds/q= emu/hw/ppc/spapr_cpu_core.c:328 #2 POWER7_spapr_cpu_core_realize (dev=3D0x5555565bf930, errp=3D0x7fffffffd= c80) at /home/imammedo/builds/qemu/hw/ppc/spapr_cpu_core.c:328 #3 0x00005555558af84c in device_set_realized (obj=3D0x5555565bf930, value= =3D, errp=3D0x55555649fbd0 ) at hw/core/qdev.c:= 1074 #4 0x00005555559b542e in property_set_bool (obj=3D0x5555565bf930, v=3D, name=3D, opaque=3D0x5555565bfb20, errp=3D0x5555= 5649fbd0 ) at qom/object.c:1853 #5 0x00005555559b92b7 in object_property_set_qobject (obj=3Dobj@entry=3D0x= 5555565bf930, value=3Dvalue@entry=3D0x5555565bedd0, name=3Dname@entry=3D0x5= 55555ad403e "realized",=20 errp=3Derrp@entry=3D0x55555649fbd0 ) at qom/qom-qobject.c:= 26 #6 0x00005555559b7130 in object_property_set_bool (obj=3D0x5555565bf930, v= alue=3D, name=3D0x555555ad403e "realized", errp=3D0x55555649= fbd0 ) at qom/object.c:1150 #7 0x0000555555786fc1 in ppc_spapr_init (machine=3D0x55555659fe50) at /hom= e/imammedo/builds/qemu/hw/ppc/spapr.c:1859 #8 0x00005555556e54af in main (argc=3D, argv=3D, envp=3D) at vl.c:4513