diff options
author | Suraj Jitindar Singh <sjitindarsingh@gmail.com> | 2019-03-22 07:05:45 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2019-04-30 06:43:12 +0200 |
commit | eadfb1c5f8c02f428a565e62e908e99900b697e4 (patch) | |
tree | 19795b2f419de0e0bd18aa76ff92ab62689b13b6 /arch/powerpc/include/asm | |
parent | KVM: PPC: Book3S HV: Implement virtual mode H_PAGE_INIT handler (diff) | |
download | linux-eadfb1c5f8c02f428a565e62e908e99900b697e4.tar.xz linux-eadfb1c5f8c02f428a565e62e908e99900b697e4.zip |
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>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r-- | arch/powerpc/include/asm/kvm_ppc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_ppc.h b/arch/powerpc/include/asm/kvm_ppc.h index ac22b28ae78d..df0b173da3e0 100644 --- a/arch/powerpc/include/asm/kvm_ppc.h +++ b/arch/powerpc/include/asm/kvm_ppc.h @@ -665,6 +665,8 @@ long kvmppc_h_clear_ref(struct kvm_vcpu *vcpu, unsigned long flags, unsigned long pte_index); long kvmppc_h_clear_mod(struct kvm_vcpu *vcpu, unsigned long flags, unsigned long pte_index); +long kvmppc_rm_h_page_init(struct kvm_vcpu *vcpu, unsigned long flags, + unsigned long dest, unsigned long src); long kvmppc_hpte_hv_fault(struct kvm_vcpu *vcpu, unsigned long addr, unsigned long slb_v, unsigned int status, bool data); unsigned long kvmppc_rm_h_xirr(struct kvm_vcpu *vcpu); |