From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mackerras Subject: [PATCH 0/3] New PAPR hypercall plus individual hypercall enables, v2 Date: Sat, 31 May 2014 17:21:06 +1000 Message-ID: <1401520869-29364-1-git-send-email-paulus@samba.org> Cc: kvm-ppc@vger.kernel.org, kvm@vger.kernel.org To: Alexander Graf Return-path: Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org This patch series adds a way for userspace to control which PAPR hypercalls get handled by kernel handlers vs. being sent up to userspace, and then adds an implementation of a new hypercall, H_SET_MODE. This version makes the KVM_CAP_PPC_ENABLE_HCALL capability a VM capability rather than a vcpu capability, and checks that the hcall numbers in the default-enabled list have an in-kernel implementation. The series is against the queue branch of the kvm tree. I would like these patches to go into 3.16 if possible. Paul. Documentation/virtual/kvm/api.txt | 23 ++++++ arch/powerpc/include/asm/hvcall.h | 6 ++ arch/powerpc/include/asm/kvm_book3s.h | 4 + arch/powerpc/include/asm/kvm_host.h | 2 + arch/powerpc/include/asm/kvm_ppc.h | 2 +- arch/powerpc/kernel/asm-offsets.c | 1 + arch/powerpc/kvm/book3s.c | 5 ++ arch/powerpc/kvm/book3s_hv.c | 130 +++++++++++++++++++++++++++++++- arch/powerpc/kvm/book3s_hv_builtin.c | 13 ++++ arch/powerpc/kvm/book3s_hv_rmhandlers.S | 12 +++ arch/powerpc/kvm/book3s_pr.c | 8 ++ arch/powerpc/kvm/book3s_pr_papr.c | 62 +++++++++++++++ arch/powerpc/kvm/powerpc.c | 47 ++++++++++++ include/uapi/linux/kvm.h | 1 + 14 files changed, 314 insertions(+), 2 deletions(-)