KVM: PPC: Book3S HV: Implement real mode H_PAGE_INIT handler
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Fri, 22 Mar 2019 06:05:45 +0000 (17:05 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 30 Apr 2019 04:43:12 +0000 (14:43 +1000)
commiteadfb1c5f8c02f428a565e62e908e99900b697e4
tree19795b2f419de0e0bd18aa76ff92ab62689b13b6
parent2d34d1c3bbfd98da5e61c4caac3dda1366544aad
KVM: PPC: Book3S HV: Implement real mode H_PAGE_INIT handler

Implement a real mode handler for the H_CALL H_PAGE_INIT which can be
used to zero or copy a guest page. The page is defined to be 4k and must
be 4k aligned.

The in-kernel real mode handler halves the time to handle this H_CALL
compared to handling it in userspace for a hash guest.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s_hv_rm_mmu.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S