Re: [Qemu-devel] [PATCH v2] i386: keep cpu_model field in MachineState uptodate

2015-08-26 Thread Zhu Guihua
On 08/26/2015 11:11 PM, Eduardo Habkost wrote: On Mon, Aug 24, 2015 at 05:42:09PM +0800, Zhu Guihua wrote: Update cpu_model in MachineState for i386, so that the field can be used for cpu hotplug, instead of using a static variable. Signed-off-by: Zhu Guihua [...] -void pc_cpus_init(const c

Re: [Qemu-devel] [PATCH v2] i386: keep cpu_model field in MachineState uptodate

2015-08-26 Thread Eduardo Habkost
On Mon, Aug 24, 2015 at 05:42:09PM +0800, Zhu Guihua wrote: > Update cpu_model in MachineState for i386, so that the field can be used > for cpu hotplug, instead of using a static variable. > > Signed-off-by: Zhu Guihua [...] > -void pc_cpus_init(const char *cpu_model, DeviceState *icc_bridge) >

[Qemu-devel] [PATCH v2] i386: keep cpu_model field in MachineState uptodate

2015-08-24 Thread Zhu Guihua
Update cpu_model in MachineState for i386, so that the field can be used for cpu hotplug, instead of using a static variable. Signed-off-by: Zhu Guihua --- v2: -transfer MachineState from all pc_cpus_init() callers --- hw/i386/pc.c | 16 +++- hw/i386/pc_piix.c| 2 +- hw