diff options
author | Zhu Guihua <zhugh.fnst@cn.fujitsu.com> | 2015-10-15 11:12:12 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-10-22 14:34:50 +0300 |
commit | 4884b7bfe962e659c0e20c1d0de6f307d58f09be (patch) | |
tree | 95dd0e0cc071088b7a90136bf8b480c3608180bf /include | |
parent | 25a2a920dddcf72896d94b37b6048a8147bc3198 (diff) | |
download | qemu-4884b7bfe962e659c0e20c1d0de6f307d58f09be.zip qemu-4884b7bfe962e659c0e20c1d0de6f307d58f09be.tar.gz qemu-4884b7bfe962e659c0e20c1d0de6f307d58f09be.tar.bz2 |
i386: keep cpu_model field in MachineState uptodate
Update cpu_model in MachineState for i386, so that the field can be used
for cpu hotplug, instead of using a static variable.
This patch is rebased on the latest master.
Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Acked-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/i386/pc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 0503485..c5961d7 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -168,7 +168,7 @@ bool pc_machine_is_smm_enabled(PCMachineState *pcms); void pc_register_ferr_irq(qemu_irq irq); void pc_acpi_smi_interrupt(void *opaque, int irq, int level); -void pc_cpus_init(const char *cpu_model); +void pc_cpus_init(PCMachineState *pcms); void pc_hot_add_cpu(const int64_t id, Error **errp); void pc_acpi_init(const char *default_dsdt); |