spapr: Add cpu_apply hook to capabilities
commite2e4f64118d128c41bd3c787afd2b9822ab758cd
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 28 Mar 2018 03:45:44 +0000 (28 14:45 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 21 Jun 2018 11:22:53 +0000 (21 21:22 +1000)
treed904644a74ce3e4b90b2de59e3c3200168a0f061
parent9f6edd066e92f61543ea561b7c3cb340f30a7017
spapr: Add cpu_apply hook to capabilities

spapr capabilities have an apply hook to actually activate (or deactivate)
the feature in the system at reset time.  However, a number of capabilities
affect the setup of cpus, and need to be applied to each of them -
including hotplugged cpus for extra complication.  To make this simpler,
add an optional cpu_apply hook that is called from spapr_cpu_reset().

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/spapr_caps.c
hw/ppc/spapr_cpu_core.c
include/hw/ppc/spapr.h