forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/powerpc/kvm/book3s.h
....@@ -1,12 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright IBM Corporation, 2013
34 * 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
- *
105 */
116
127 #ifndef __POWERPC_KVM_BOOK3S_H__
....@@ -21,8 +16,9 @@
2116 extern int kvm_test_age_hva_hv(struct kvm *kvm, unsigned long hva);
2217 extern void kvm_set_spte_hva_hv(struct kvm *kvm, unsigned long hva, pte_t pte);
2318
19
+extern int kvmppc_mmu_init_pr(struct kvm_vcpu *vcpu);
2420 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,
2622 unsigned int inst, int *advance);
2723 extern int kvmppc_core_emulate_mtspr_pr(struct kvm_vcpu *vcpu,
2824 int sprn, ulong spr_val);
....@@ -37,4 +33,7 @@
3733 static inline void kvmppc_emulate_tabort(struct kvm_vcpu *vcpu, int ra_val) {}
3834 #endif
3935
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
+
4039 #endif