summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc/spapr.h
diff options
context:
space:
mode:
authorBharata B Rao2016-06-10 02:59:04 +0200
committerDavid Gibson2016-06-17 08:33:49 +0200
commitaf81cf323c17083a3e016f9556c521357b46ab40 (patch)
treeb024badfde2487df0f02164994895eda8fe6b101 /include/hw/ppc/spapr.h
parentspapr: convert boot CPUs into CPU core devices (diff)
downloadqemu-af81cf323c17083a3e016f9556c521357b46ab40.tar.gz
qemu-af81cf323c17083a3e016f9556c521357b46ab40.tar.xz
qemu-af81cf323c17083a3e016f9556c521357b46ab40.zip
spapr: CPU hotplug support
Set up device tree entries for the hotplugged CPU core and use the exising RTAS event logging infrastructure to send CPU hotplug notification to the guest. 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>
Diffstat (limited to 'include/hw/ppc/spapr.h')
-rw-r--r--include/hw/ppc/spapr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index 2a892bddbd..e1f8274cf4 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -587,6 +587,8 @@ void spapr_hotplug_req_add_by_count(sPAPRDRConnectorType drc_type,
void spapr_hotplug_req_remove_by_count(sPAPRDRConnectorType drc_type,
uint32_t count);
void spapr_cpu_init(sPAPRMachineState *spapr, PowerPCCPU *cpu, Error **errp);
+void *spapr_populate_hotplug_cpu_dt(CPUState *cs, int *fdt_offset,
+ sPAPRMachineState *spapr);
/* rtas-configure-connector state */
struct sPAPRConfigureConnectorState {