]> git.proxmox.com Git - mirror_qemu.git/commit
spapr: convert boot CPUs into CPU core devices
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Fri, 10 Jun 2016 00:59:03 +0000 (06:29 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 17 Jun 2016 06:33:49 +0000 (16:33 +1000)
commit94a94e4c49197d10e5ee7710bb0538ddeff75ba9
tree71449bc46f1b6ef30d4dc237f4d739ebef8af360
parentafd10a0fa6e90b79bad981c7334df2995d667de2
spapr: convert boot CPUs into CPU core devices

Introduce sPAPRMachineClass.dr_cpu_enabled to indicate support for
CPU core hotplug. Initialize boot time CPUs as core deivces and prevent
topologies that result in partially filled cores. Both of these are done
only if CPU core hotplug is supported.

Note: An unrelated change in the call to xics_system_init() is done
in this patch as it makes sense to use the local variable smt introduced
in this patch instead of kvmppc_smt_threads() call here.

TODO: We derive sPAPR core type by looking at -cpu <model>. However
we don't take care of "compat=" feature yet for boot time as well
as hotplug CPUs.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
hw/ppc/spapr_cpu_core.c
include/hw/ppc/spapr.h
include/hw/ppc/spapr_cpu_core.h