| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright IBM Corporation, 2013 |
|---|
| 3 | 4 | * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or |
|---|
| 6 | | - * modify it under the terms of the GNU General Public License as |
|---|
| 7 | | - * published by the Free Software Foundation; either version 2 of the |
|---|
| 8 | | - * License or (at your optional) any later version of the license. |
|---|
| 9 | | - * |
|---|
| 10 | 5 | */ |
|---|
| 11 | 6 | |
|---|
| 12 | 7 | #ifndef __POWERPC_KVM_BOOK3S_H__ |
|---|
| .. | .. |
|---|
| 21 | 16 | extern int kvm_test_age_hva_hv(struct kvm *kvm, unsigned long hva); |
|---|
| 22 | 17 | extern void kvm_set_spte_hva_hv(struct kvm *kvm, unsigned long hva, pte_t pte); |
|---|
| 23 | 18 | |
|---|
| 19 | +extern int kvmppc_mmu_init_pr(struct kvm_vcpu *vcpu); |
|---|
| 24 | 20 | extern void kvmppc_mmu_destroy_pr(struct kvm_vcpu *vcpu); |
|---|
| 25 | | -extern int kvmppc_core_emulate_op_pr(struct kvm_run *run, struct kvm_vcpu *vcpu, |
|---|
| 21 | +extern int kvmppc_core_emulate_op_pr(struct kvm_vcpu *vcpu, |
|---|
| 26 | 22 | unsigned int inst, int *advance); |
|---|
| 27 | 23 | extern int kvmppc_core_emulate_mtspr_pr(struct kvm_vcpu *vcpu, |
|---|
| 28 | 24 | int sprn, ulong spr_val); |
|---|
| .. | .. |
|---|
| 37 | 33 | static inline void kvmppc_emulate_tabort(struct kvm_vcpu *vcpu, int ra_val) {} |
|---|
| 38 | 34 | #endif |
|---|
| 39 | 35 | |
|---|
| 36 | +extern void kvmppc_set_msr_hv(struct kvm_vcpu *vcpu, u64 msr); |
|---|
| 37 | +extern void kvmppc_inject_interrupt_hv(struct kvm_vcpu *vcpu, int vec, u64 srr1_flags); |
|---|
| 38 | + |
|---|
| 40 | 39 | #endif |
|---|