Re: [Qemu-devel] [qom-cpu PATCH 7/7 v9] target-i386: CPU model subclasses

2014-02-11 Thread Paolo Bonzini
Il 10/02/2014 23:39, Andreas Färber ha scritto: I'd rather finish my investigations and discuss my v10 patches but Paolo is already asking whether Eduardo should send a PULL, so here's my textual reply informing of some thoughts and WIP. ;) Don't worry, :) I was asking you if you are fine with

Re: [Qemu-devel] [qom-cpu PATCH 7/7 v9] target-i386: CPU model subclasses

2014-02-11 Thread Eduardo Habkost
On Mon, Feb 10, 2014 at 11:39:51PM +0100, Andreas Färber wrote: > Am 10.02.2014 11:21, schrieb Eduardo Habkost: > > +static const TypeInfo x86_cpu_host_type_info = { > > +.name = CPU_CLASS_NAME("host"), > > +.parent = TYPE_X86_CPU, > > +.instance_size = sizeof(X86CPU), > > +.instanc

Re: [Qemu-devel] [qom-cpu PATCH 7/7 v9] target-i386: CPU model subclasses

2014-02-10 Thread Andreas Färber
Am 10.02.2014 11:21, schrieb Eduardo Habkost: > +static const TypeInfo x86_cpu_host_type_info = { > +.name = CPU_CLASS_NAME("host"), > +.parent = TYPE_X86_CPU, > +.instance_size = sizeof(X86CPU), > +.instance_init = x86_cpu_instance_init_host, > +.abstract = false, > +.class

[Qemu-devel] [qom-cpu PATCH 7/7 v9] target-i386: CPU model subclasses

2014-02-10 Thread Eduardo Habkost
Register separate QOM classes for each x86 CPU model. This will allow management code to more easily probe what each CPU model provides, by simply creating objects using the appropriate class name, without having to restart QEMU. This also allows us to eliminate the qdev_prop_set_globals_for_type