]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Generate SPAPR PPC64 guest device tree
authorMatt Evans <matt@ozlabs.org>
Sat, 4 Feb 2012 08:07:20 +0000 (19:07 +1100)
committerPekka Enberg <penberg@kernel.org>
Sat, 4 Feb 2012 09:19:28 +0000 (11:19 +0200)
commit93c8d2f524588780f4472c8723ee985beac7665b
treeda5155408f6ef3970b0b67a084ad5842c7c4522c
parentdb2203db77446b314d6b301a376a43e3b7f7a2ab
kvm tools: Generate SPAPR PPC64 guest device tree

The generated DT is the bare minimum structure required for SPAPR (on which
subsequent patches for VIO, XICS, PCI etc. will build); root node, cpus, memory.

The DT contains CPU-specific configuration; a very simple 'cpu info' mechanism
is added to recognise/differentiate DT entries for POWER7 and PPC970 host CPUs.
Future support of more CPUs is possible.

libfdt is included from scripts/dtc/libfdt.

Signed-off-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/Makefile
tools/kvm/powerpc/cpu_info.c [new file with mode: 0644]
tools/kvm/powerpc/cpu_info.h [new file with mode: 0644]
tools/kvm/powerpc/include/kvm/kvm-arch.h
tools/kvm/powerpc/kvm-cpu.c
tools/kvm/powerpc/kvm.c