]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S: Add infrastructure to implement kernel-side RTAS calls
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 17 Apr 2013 20:30:00 +0000 (20:30 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 26 Apr 2013 18:27:29 +0000 (20:27 +0200)
commitd88dc3c0455db63e020df3ed38aa05ee1b1b9f67
tree3fa76d3875c8133eeafc2e36372aaf83232fc54f
parent66fc5181822d23c9ad43daf4d26484f16ea44e37
KVM: PPC: Book3S: Add infrastructure to implement kernel-side RTAS calls

For pseries machine emulation, in order to move the interrupt
controller code to the kernel, we need to intercept some RTAS
calls in the kernel itself.  This adds an infrastructure to allow
in-kernel handlers to be registered for RTAS services by name.
A new ioctl, KVM_PPC_RTAS_DEFINE_TOKEN, then allows userspace to
associate token values with those service names.  Then, when the
guest requests an RTAS service with one of those token values, it
will be handled by the relevant in-kernel handler rather than being
passed up to userspace as at present.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
[agraf: fix warning]
Signed-off-by: Alexander Graf <agraf@suse.de>
12 files changed:
Documentation/virtual/kvm/api.txt
arch/powerpc/include/asm/hvcall.h
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/include/uapi/asm/kvm.h
arch/powerpc/kvm/Makefile
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_pr.c
arch/powerpc/kvm/book3s_pr_papr.c
arch/powerpc/kvm/book3s_rtas.c [new file with mode: 0644]
arch/powerpc/kvm/powerpc.c
include/uapi/linux/kvm.h