summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorSam Bobroff2017-08-09 07:38:56 +0200
committerDavid Gibson2017-09-08 01:30:55 +0200
commit2e886fb39168942ab03b91062e715946e4af8436 (patch)
tree570b2f6294fc9fe07aee21ed8f2dfc87240fcb52 /include/hw
parentppc: spapr: Rename cpu_dt_id to vcpu_id (diff)
downloadqemu-2e886fb39168942ab03b91062e715946e4af8436.tar.gz
qemu-2e886fb39168942ab03b91062e715946e4af8436.tar.xz
qemu-2e886fb39168942ab03b91062e715946e4af8436.zip
ppc: spapr: Make VCPU ID handling private to SPAPR
The concept of a VCPU ID that differs from the CPU's index (cpu->cpu_index) exists only within SPAPR machines so, move the functions ppc_get_vcpu_id() and ppc_get_cpu_by_vcpu_id() into spapr.c and rename them appropriately. Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/ppc/spapr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index 5d161ec580..91617e3277 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -705,4 +705,7 @@ void spapr_do_system_reset_on_cpu(CPUState *cs, run_on_cpu_data arg);
#define HTAB_SIZE(spapr) (1ULL << ((spapr)->htab_shift))
+int spapr_vcpu_id(PowerPCCPU *cpu);
+PowerPCCPU *spapr_find_cpu(int vcpu_id);
+
#endif /* HW_SPAPR_H */