OSDN Git Service

KVM: PPC: Book3S HV: Implement virtual mode H_PAGE_INIT handler
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Fri, 22 Mar 2019 06:05:44 +0000 (17:05 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 30 Apr 2019 04:41:20 +0000 (14:41 +1000)
commit2d34d1c3bbfd98da5e61c4caac3dda1366544aad
tree80d198ef44cb9d002d857e5c3a3423c800854194
parent345077c8e172c255ea0707214303ccd099e5656b
KVM: PPC: Book3S HV: Implement virtual mode H_PAGE_INIT handler

Implement a virtual 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 handler halves the time to handle this H_CALL compared to
handling it in userspace for a radix guest.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_hv.c