Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-09 Thread David Gibson
On Fri, Jun 09, 2017 at 08:45:50AM +0200, Greg Kurz wrote: > On Fri, 9 Jun 2017 12:24:52 +1000 > David Gibson wrote: > > > On Thu, Jun 08, 2017 at 10:45:30AM +0200, Greg Kurz wrote: > > > On Thu, 8 Jun 2017 12:01:12 +1000 > > > David Gibson

Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-09 Thread Greg Kurz
On Fri, 9 Jun 2017 12:24:52 +1000 David Gibson wrote: > On Thu, Jun 08, 2017 at 10:45:30AM +0200, Greg Kurz wrote: > > On Thu, 8 Jun 2017 12:01:12 +1000 > > David Gibson wrote: > > > > > On Wed, Jun 07, 2017 at 07:17:09PM +0200, Greg

Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-08 Thread David Gibson
On Thu, Jun 08, 2017 at 10:45:30AM +0200, Greg Kurz wrote: > On Thu, 8 Jun 2017 12:01:12 +1000 > David Gibson wrote: > > > On Wed, Jun 07, 2017 at 07:17:09PM +0200, Greg Kurz wrote: > > > Until recently, spapr used to allocate ICPState objects for the lifetime > > >

Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-08 Thread Greg Kurz
On Thu, 8 Jun 2017 11:25:52 +0200 Cédric Le Goater wrote: > On 06/08/2017 11:14 AM, Greg Kurz wrote: > > On Thu, 8 Jun 2017 11:53:29 +1000 > > David Gibson wrote: > > > >> On Wed, Jun 07, 2017 at 10:55:07PM +0200, Greg Kurz wrote: > >>> On Wed, 7

Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-08 Thread Cédric Le Goater
On 06/08/2017 10:45 AM, Greg Kurz wrote: > On Thu, 8 Jun 2017 12:01:12 +1000 > David Gibson wrote: > >> On Wed, Jun 07, 2017 at 07:17:09PM +0200, Greg Kurz wrote: >>> Until recently, spapr used to allocate ICPState objects for the lifetime >>> of the machine. They

Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-08 Thread Cédric Le Goater
On 06/08/2017 11:14 AM, Greg Kurz wrote: > On Thu, 8 Jun 2017 11:53:29 +1000 > David Gibson wrote: > >> On Wed, Jun 07, 2017 at 10:55:07PM +0200, Greg Kurz wrote: >>> On Wed, 7 Jun 2017 20:11:38 +0200 >>> Cédric Le Goater wrote: >>> On

Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-08 Thread Greg Kurz
On Thu, 8 Jun 2017 11:53:29 +1000 David Gibson wrote: > On Wed, Jun 07, 2017 at 10:55:07PM +0200, Greg Kurz wrote: > > On Wed, 7 Jun 2017 20:11:38 +0200 > > Cédric Le Goater wrote: > > > > > On 06/07/2017 07:17 PM, Greg Kurz wrote: > > > > Until

Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-08 Thread Greg Kurz
On Thu, 8 Jun 2017 07:50:08 +0200 Cédric Le Goater wrote: > On 06/07/2017 10:55 PM, Greg Kurz wrote: > [...] > >>> +obj = object_new(TYPE_PNV_ICP); > >>> +object_property_add_child(child, "icp", obj, NULL); > >>> +object_unref(obj); > >>> +

Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-08 Thread Greg Kurz
On Thu, 8 Jun 2017 12:01:12 +1000 David Gibson wrote: > On Wed, Jun 07, 2017 at 07:17:09PM +0200, Greg Kurz wrote: > > Until recently, spapr used to allocate ICPState objects for the lifetime > > of the machine. They would only be associated to vCPUs in

Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-07 Thread Cédric Le Goater
On 06/07/2017 10:55 PM, Greg Kurz wrote: > On Wed, 7 Jun 2017 20:11:38 +0200 > Cédric Le Goater wrote: > >> On 06/07/2017 07:17 PM, Greg Kurz wrote: >>> Until recently, spapr used to allocate ICPState objects for the lifetime >>> of the machine. They would only be associated to

Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-07 Thread David Gibson
On Wed, Jun 07, 2017 at 10:55:07PM +0200, Greg Kurz wrote: > On Wed, 7 Jun 2017 20:11:38 +0200 > Cédric Le Goater wrote: > > > On 06/07/2017 07:17 PM, Greg Kurz wrote: > > > Until recently, spapr used to allocate ICPState objects for the lifetime > > > of the machine. They would

Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-07 Thread David Gibson
On Wed, Jun 07, 2017 at 07:17:09PM +0200, Greg Kurz wrote: > Until recently, spapr used to allocate ICPState objects for the lifetime > of the machine. They would only be associated to vCPUs in xics_cpu_setup() > when plugging a CPU core. > > Now that ICPState objects have the same lifecycle as

Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-07 Thread Greg Kurz
On Wed, 7 Jun 2017 20:11:38 +0200 Cédric Le Goater wrote: > On 06/07/2017 07:17 PM, Greg Kurz wrote: > > Until recently, spapr used to allocate ICPState objects for the lifetime > > of the machine. They would only be associated to vCPUs in xics_cpu_setup() > > when plugging a CPU

Re: [Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-07 Thread Cédric Le Goater
On 06/07/2017 07:17 PM, Greg Kurz wrote: > Until recently, spapr used to allocate ICPState objects for the lifetime > of the machine. They would only be associated to vCPUs in xics_cpu_setup() > when plugging a CPU core. > > Now that ICPState objects have the same lifecycle as vCPUs, it is >

[Qemu-devel] [PATCH v3 3/5] xics: setup cpu at realize time

2017-06-07 Thread Greg Kurz
Until recently, spapr used to allocate ICPState objects for the lifetime of the machine. They would only be associated to vCPUs in xics_cpu_setup() when plugging a CPU core. Now that ICPState objects have the same lifecycle as vCPUs, it is possible to associate them during realization. This