aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-04-26 15:43:42 -0400
committerAlexander Graf <agraf@suse.de>2012-05-06 10:19:12 -0400
commit5b74716ebab10e7bce960d148fe6d8f6920451e5 (patch)
tree169a36d6bcf64330f5bf026d9b064bfbe5582c85 /arch/powerpc/include
parentf31e65e1170edba4a86bd8cba0318e251d3746d0 (diff)
kvm/powerpc: Add new ioctl to retreive server MMU infos
This is necessary for qemu to be able to pass the right information to the guest, such as the supported page sizes and corresponding encodings in the SLB and hash table, which can vary depending on the processor type, the type of KVM used (PR vs HV) and the version of KVM Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> [agraf: fix compilation on hv, adjust for newer ioctl numbers] Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/kvm_ppc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_ppc.h b/arch/powerpc/include/asm/kvm_ppc.h
index c1069f63dcaf..c87e3b503fdc 100644
--- a/arch/powerpc/include/asm/kvm_ppc.h
+++ b/arch/powerpc/include/asm/kvm_ppc.h
@@ -140,6 +140,8 @@ extern int kvmppc_core_prepare_memory_region(struct kvm *kvm,
140 struct kvm_userspace_memory_region *mem); 140 struct kvm_userspace_memory_region *mem);
141extern void kvmppc_core_commit_memory_region(struct kvm *kvm, 141extern void kvmppc_core_commit_memory_region(struct kvm *kvm,
142 struct kvm_userspace_memory_region *mem); 142 struct kvm_userspace_memory_region *mem);
143extern int kvm_vm_ioctl_get_smmu_info(struct kvm *kvm,
144 struct kvm_ppc_smmu_info *info);
143 145
144extern int kvmppc_bookehv_init(void); 146extern int kvmppc_bookehv_init(void);
145extern void kvmppc_bookehv_exit(void); 147extern void kvmppc_bookehv_exit(void);