spapr: Add ibm,processor-radix-AP-encodings to the device tree
commitc64abd1f9c732f58181d0a46a0da72168759e77b
authorSam Bobroff <sam.bobroff@au1.ibm.com>
Sun, 19 Mar 2017 23:46:43 +0000 (20 10:46 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 26 Apr 2017 02:00:41 +0000 (26 12:00 +1000)
tree8e3d4cfa06032fd6e896839267f55a8ef45cf176
parentd6ee2a7c85088d587fb0e0376fba1fa20d59c9f3
spapr: Add ibm,processor-radix-AP-encodings to the device tree

Use the new ioctl, KVM_PPC_GET_RMMU_INFO, to fetch radix MMU
information from KVM and present the page encodings in the device tree
under ibm,processor-radix-AP-encodings. This provides page size
information to the guest which is necessary for it to use radix mode.

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
[dwg: Compile fix for 32-bit targets, style nit fix]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
include/sysemu/kvm.h
target/ppc/cpu-qom.h
target/ppc/cpu.h
target/ppc/kvm.c