ppc: spapr: Make VCPU ID handling private to SPAPR
commit2e886fb39168942ab03b91062e715946e4af8436
authorSam Bobroff <sam.bobroff@au1.ibm.com>
Wed, 9 Aug 2017 05:38:56 +0000 (9 15:38 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 7 Sep 2017 23:30:55 +0000 (8 09:30 +1000)
tree570b2f6294fc9fe07aee21ed8f2dfc87240fcb52
parent81210c2009296261879af5d58a3a499815031765
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>
hw/ppc/ppc.c
hw/ppc/spapr.c
hw/ppc/spapr_hcall.c
hw/ppc/spapr_rtas.c
include/hw/ppc/spapr.h
target/ppc/cpu.h
target/ppc/kvm.c