]> git.proxmox.com Git - mirror_qemu.git/commit
pc: move pcms->possible_cpus init out of pc_cpus_init()
authorIgor Mammedov <imammedo@redhat.com>
Thu, 9 Feb 2017 11:08:33 +0000 (12:08 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 22 Feb 2017 00:28:28 +0000 (11:28 +1100)
commitc96a1c0ba6b88fb47ca734013ae9b9248f78fbb4
treef72e411e67e38ace1439a2e2d58b86ff225230b4
parent38690a1ca7cd4771800b1581329f09fafad3f2d6
pc: move pcms->possible_cpus init out of pc_cpus_init()

possible_cpus could be initialized earlier then cpu objects,
i.e. when -smp is parsed so move init code to possible_cpu_arch_ids()
interface func and do initialization on the first call.

it should help later with making -numa cpu/-smp parsing a machine state
properties.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/i386/pc.c