Re: [Qemu-devel] [RFC PATCH v0] spapr: Introduce sPAPRCPUCoreClass

2016-09-11 Thread David Gibson
On Thu, Sep 08, 2016 at 09:56:31AM +0530, Bharata B Rao wrote: > On Thu, Sep 08, 2016 at 11:51:32AM +1000, David Gibson wrote: > > On Fri, Sep 02, 2016 at 03:06:38PM +0530, Bharata B Rao wrote: > > > Each spapr cpu core type defines an instance_init routine which just > > > populates the CPU class

Re: [Qemu-devel] [RFC PATCH v0] spapr: Introduce sPAPRCPUCoreClass

2016-09-07 Thread Bharata B Rao
On Thu, Sep 08, 2016 at 11:51:32AM +1000, David Gibson wrote: > On Fri, Sep 02, 2016 at 03:06:38PM +0530, Bharata B Rao wrote: > > Each spapr cpu core type defines an instance_init routine which just > > populates the CPU class name. This can be done in the class_init > > commonly for all core type

Re: [Qemu-devel] [RFC PATCH v0] spapr: Introduce sPAPRCPUCoreClass

2016-09-07 Thread David Gibson
On Fri, Sep 02, 2016 at 03:06:38PM +0530, Bharata B Rao wrote: > Each spapr cpu core type defines an instance_init routine which just > populates the CPU class name. This can be done in the class_init > commonly for all core types which simplifies the registration. > This is inspired by how PowerNV

[Qemu-devel] [RFC PATCH v0] spapr: Introduce sPAPRCPUCoreClass

2016-09-02 Thread Bharata B Rao
Each spapr cpu core type defines an instance_init routine which just populates the CPU class name. This can be done in the class_init commonly for all core types which simplifies the registration. This is inspired by how PowerNV core types are registered. Certain types of spapr cpu cores ('host' a