OSDN Git Service

pc: Eliminate pc_default_machine_options()
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 7 Aug 2015 19:55:48 +0000 (16:55 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 13 Aug 2015 11:08:27 +0000 (14:08 +0300)
commit4458fb3a7993249f466662b18ccae75f1a313200
treea7003d0c8d08e90021685b44b84a6c3f28919dc5
parent41742767bfa8127954b6f57b39b590adcde3ac6c
pc: Eliminate pc_default_machine_options()

The only PC machines that didn't call pc_default_machine_options() were
isaps and xenfv. Both were already overwriting max_cpus, and only isapc
was not overwriting hot_add_cpu.

After making isapc set hot_add_cpu to NULL, we can move the
pc_default_machine_options() code the PC common class_init.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
include/hw/i386/pc.h