[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 13/24] ppc: spapr: define core typ
From: |
Igor Mammedov |
Subject: |
Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 13/24] ppc: spapr: define core types statically |
Date: |
Thu, 12 Oct 2017 18:01:31 +0200 |
On Thu, 12 Oct 2017 17:20:51 +0200
Greg Kurz <address@hidden> wrote:
> On Thu, 12 Oct 2017 16:58:39 +0200
> Igor Mammedov <address@hidden> wrote:
>
> > On Thu, 12 Oct 2017 15:10:30 +0200
> > Greg Kurz <address@hidden> wrote:
> >
> > > On Tue, 10 Oct 2017 09:29:46 +0200
> > > Greg Kurz <address@hidden> wrote:
> > >
> > > > On Mon, 9 Oct 2017 21:51:00 +0200
> > > > Igor Mammedov <address@hidden> wrote:
> > > >
> > > > > spapr core type definition doesn't have any fields that
> > > > > require it to be defined at runtime. So replace code
> > > > > that fills in TypeInfo at runtime with static TypeInfo
> > > > > array that does the same at complie time.
> > > > >
> > > > > Signed-off-by: Igor Mammedov <address@hidden>
> > > > > ---
> > > > > v2:
> > > > > - fix rebase conflict: add newly added power9_v2 core
> > > > > ---
> > > >
> > > > Reviewed-by: Greg Kurz <address@hidden>
> > > >
> > >
> > > Oops, this patch causes a regression when you try to pass a sPAPR core to
> > > a non-pseries machine.
> > >
> > > Without this patch:
> > >
> > > $ ppc64-softmmu/qemu-system-ppc64 -M none -device host-spapr-cpu-core
> > > qemu-system-ppc64: -device host-spapr-cpu-core:
> > > 'host-spapr-cpu-core' is not a valid device model name
> > >
> > > With this patch:
> > >
> > > $ ppc64-softmmu/qemu-system-ppc64 -M none -device host-spapr-cpu-core
> > > **
> > > ERROR:qom/object.c:217:object_type_get_instance_size:
> > > assertion failed: (type != NULL)
> > > Aborted
> > there shouldn't be type host-spapr-cpu-core with this patch since you don't
> > have -enable-kvm on CLI
> > maybe you are talking about
> > [PATCH v2 15/24] ppc: spapr: register 'host' core type along with the
> > rest of core types
> >
>
> Oops you're right, I replied to the wrong mail... of course, I meant the
> following commit in David's staging tree:
>
> https://github.com/dgibson/qemu/commit/c18165144076cef0c17206f5231cf9787c944037
fixed by:
[PATCH v2 14/24] fixup! ppc: spapr: use cpu type name directly
also I've stumbled upon another issue, fixup also posted:
[PATCH v2 18/24] fixup! ppc: spapr: use generic cpu_model parsing
fixup well localized and didn't cause conflicts so there is no need to respin
series
- [Qemu-devel] [PATCH v2 12/24] ppc: move '-cpu foo, compat=xxx' parsing into ppc_cpu_parse_featurestr(), (continued)
- [Qemu-devel] [PATCH v2 12/24] ppc: move '-cpu foo, compat=xxx' parsing into ppc_cpu_parse_featurestr(), Igor Mammedov, 2017/10/09
- [Qemu-devel] [PATCH v2 11/24] ppc: spapr: replace ppc_cpu_parse_features() with cpu_parse_cpu_model(), Igor Mammedov, 2017/10/09
- [Qemu-devel] [PATCH v2 08/24] ppc: replace cpu_model with cpu_type on ref405ep, taihu boards, Igor Mammedov, 2017/10/09
- [Qemu-devel] [PATCH v2 13/24] ppc: spapr: define core types statically, Igor Mammedov, 2017/10/09
Re: [Qemu-devel] [PATCH v2 13/24] ppc: spapr: define core types statically, Philippe Mathieu-Daudé, 2017/10/11
[Qemu-devel] [PATCH v2 14/24] ppc: spapr: use cpu type name directly, Igor Mammedov, 2017/10/09
[Qemu-devel] [PATCH v2 15/24] ppc: spapr: register 'host' core type along with the rest of core types, Igor Mammedov, 2017/10/09
[Qemu-devel] [PATCH v2 16/24] ppc: spapr: use cpu model names as tcg defaults instead of aliases, Igor Mammedov, 2017/10/09
[Qemu-devel] [PATCH v2 17/24] ppc: move ppc_cpu_lookup_alias() before its first user, Igor Mammedov, 2017/10/09
[Qemu-devel] [PATCH v2 18/24] ppc: spapr: use generic cpu_model parsing, Igor Mammedov, 2017/10/09