diff options
| author | David Gibson | 2018-06-13 08:22:18 +0200 |
|---|---|---|
| committer | David Gibson | 2018-06-16 08:32:50 +0200 |
| commit | 7388efafc27c2f45d22c8edbc14b3154c0381c2e (patch) | |
| tree | 690c9d5bdea6f3d089a75e63bc2adce5912cdbe2 /scripts/switch-timer-api | |
| parent | ppc/pnv: introduce a pnv_chip_core_realize() routine (diff) | |
| download | qemu-7388efafc27c2f45d22c8edbc14b3154c0381c2e.tar.gz qemu-7388efafc27c2f45d22c8edbc14b3154c0381c2e.tar.xz qemu-7388efafc27c2f45d22c8edbc14b3154c0381c2e.zip | |
target/ppc, spapr: Move VPA information to machine_data
CPUPPCState currently contains a number of fields containing the state of
the VPA. The VPA is a PAPR specific concept covering several guest/host
shared memory areas used to communicate some information with the
hypervisor.
As a PAPR concept this is really machine specific information, although it
is per-cpu, so it doesn't really belong in the core CPU state structure.
There's also other information that's per-cpu, but platform/machine
specific. So create a (void *)machine_data in PowerPCCPU which can be
used by the machine to locate per-cpu data. Intialization, lifetime and
cleanup of machine_data is entirely up to the machine type.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Tested-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
