machine: unify [pc_|spapr_]query_hotpluggable_cpus() callbacks
commitf2d672c248e359dd36081bbebc8854609cc9f112
authorIgor Mammedov <imammedo@redhat.com>
Thu, 9 Feb 2017 11:08:38 +0000 (9 12:08 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 22 Feb 2017 00:28:28 +0000 (22 11:28 +1100)
tree1c984ffa5eb16784cfa904d4dc1e5e0089dd38d3
parent535455fdee60e4e7979a5060ba7a4e4588ee1a1e
machine: unify [pc_|spapr_]query_hotpluggable_cpus() callbacks

All callbacks FOO_query_hotpluggable_cpus() are practically
the same except of setting vcpus_count to different values.
Convert them to a generic machine_query_hotpluggable_cpus()
callback by moving vcpus_count initialization to per machine
specific callback possible_cpu_arch_ids().

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/core/machine.c
hw/i386/pc.c
hw/ppc/spapr.c
include/hw/boards.h