KVM: PPC: Book3S: Allow only implemented hcalls to be enabled or disabled
authorPaul Mackerras <paulus@samba.org>
Mon, 2 Jun 2014 01:03:00 +0000 (11:03 +1000)
committerAlexander Graf <agraf@suse.de>
Mon, 28 Jul 2014 13:22:18 +0000 (15:22 +0200)
commitae2113a4f1a6cd5a3cd3d75f394547922758e9ac
tree59a1dbf6369d853d0ad76c62a0333c47bb8992d0
parent699a0ea0823d32030b0666b28ff8633960f7ffa7
KVM: PPC: Book3S: Allow only implemented hcalls to be enabled or disabled

This adds code to check that when the KVM_CAP_PPC_ENABLE_HCALL
capability is used to enable or disable in-kernel handling of an
hcall, that the hcall is actually implemented by the kernel.
If not an EINVAL error is returned.

This also checks the default-enabled list of hcalls and prints a
warning if any hcall there is not actually implemented.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Documentation/virtual/kvm/api.txt
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_builtin.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S
arch/powerpc/kvm/book3s_pr.c
arch/powerpc/kvm/book3s_pr_papr.c
arch/powerpc/kvm/powerpc.c