kvm/powerpc: Add new ioctl to retreive server MMU infos
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 26 Apr 2012 19:43:42 +0000 (19:43 +0000)
committerAlexander Graf <agraf@suse.de>
Sun, 6 May 2012 14:19:12 +0000 (16:19 +0200)
commit5b74716ebab10e7bce960d148fe6d8f6920451e5
tree169a36d6bcf64330f5bf026d9b064bfbe5582c85
parentf31e65e1170edba4a86bd8cba0318e251d3746d0
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>
Documentation/virtual/kvm/api.txt
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kernel/ppc_ksyms.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_pr.c
arch/powerpc/kvm/powerpc.c
include/linux/kvm.h