Re: [libvirt] [PATCH 13/18] cpu: Support multiple PVRs in the ppc64 driver

2015-08-06 Thread Jiri Denemark
On Thu, Aug 06, 2015 at 16:30:37 +0200, Andrea Bolognani wrote: > On Thu, 2015-08-06 at 13:53 +0200, Jiri Denemark wrote: > > > > > model = map->models; > > > while (model) { > > > -if (model->data->pvr == pvr) > > > -return model; > > > +for (i = 0; i < model

Re: [libvirt] [PATCH 13/18] cpu: Support multiple PVRs in the ppc64 driver

2015-08-06 Thread Andrea Bolognani
On Thu, 2015-08-06 at 13:53 +0200, Jiri Denemark wrote: > > > model = map->models; > > while (model) { > > -if (model->data->pvr == pvr) > > -return model; > > +for (i = 0; i < model->data->len; i++) > > +if (model->data->pvr[i].value == pvr) > > +

Re: [libvirt] [PATCH 13/18] cpu: Support multiple PVRs in the ppc64 driver

2015-08-06 Thread Jiri Denemark
On Tue, Aug 04, 2015 at 11:38:04 +0200, Andrea Bolognani wrote: > This will allow us to perform PVR matching more broadly, eg. consider > both POWER8 and POWER8E CPUs to be the same even though they have > different PVR values. > --- > src/cpu/cpu_ppc64.c | 73 > +

[libvirt] [PATCH 13/18] cpu: Support multiple PVRs in the ppc64 driver

2015-08-04 Thread Andrea Bolognani
This will allow us to perform PVR matching more broadly, eg. consider both POWER8 and POWER8E CPUs to be the same even though they have different PVR values. --- src/cpu/cpu_ppc64.c | 73 src/cpu/cpu_ppc64_data.h | 8 +- 2 files changed, 6