]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
machine: replace query_hotpluggable_cpus() callback with has_hotpluggable_cpus flag
authorIgor Mammedov <imammedo@redhat.com>
Fri, 10 Feb 2017 10:20:57 +0000 (11:20 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 22 Feb 2017 00:28:28 +0000 (11:28 +1100)
commitc5514d0e4bafde751ec09439ba042b1f1cda37a7
treee9dac28948c2c02109c09f0faa1421ca41d24c0e
parentf2d672c248e359dd36081bbebc8854609cc9f112
machine: replace query_hotpluggable_cpus() callback with has_hotpluggable_cpus flag

Generic helper machine_query_hotpluggable_cpus() replaced
target specific query_hotpluggable_cpus() callbacks so
there is no need in it anymore. However inon NULL callback
value is used to detect/report hotpluggable cpus support,
therefore it can be removed completely.
Replace it with MachineClass.has_hotpluggable_cpus boolean
which is sufficient for the task.

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