diff options
author | Sam Bobroff <sam.bobroff@au1.ibm.com> | 2017-03-20 10:46:43 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-04-26 12:00:41 +1000 |
commit | c64abd1f9c732f58181d0a46a0da72168759e77b (patch) | |
tree | 8e3d4cfa06032fd6e896839267f55a8ef45cf176 /include | |
parent | d6ee2a7c85088d587fb0e0376fba1fa20d59c9f3 (diff) | |
download | qemu-c64abd1f9c732f58181d0a46a0da72168759e77b.zip qemu-c64abd1f9c732f58181d0a46a0da72168759e77b.tar.gz qemu-c64abd1f9c732f58181d0a46a0da72168759e77b.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index 24281fc..5cc83f2 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -527,5 +527,6 @@ int kvm_set_one_reg(CPUState *cs, uint64_t id, void *source); * Returns: 0 on success, or a negative errno on failure. */ int kvm_get_one_reg(CPUState *cs, uint64_t id, void *target); +struct ppc_radix_page_info *kvm_get_radix_page_info(void); int kvm_get_max_memslots(void); #endif |