diff options
Diffstat (limited to 'arch/powerpc/kvm/booke.h')
-rw-r--r-- | arch/powerpc/kvm/booke.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/booke.h b/arch/powerpc/kvm/booke.h index 5fd1ba693579..09bfd9bc7cf8 100644 --- a/arch/powerpc/kvm/booke.h +++ b/arch/powerpc/kvm/booke.h | |||
@@ -99,6 +99,30 @@ enum int_class { | |||
99 | 99 | ||
100 | void kvmppc_set_pending_interrupt(struct kvm_vcpu *vcpu, enum int_class type); | 100 | void kvmppc_set_pending_interrupt(struct kvm_vcpu *vcpu, enum int_class type); |
101 | 101 | ||
102 | extern void kvmppc_mmu_destroy_44x(struct kvm_vcpu *vcpu); | ||
103 | extern int kvmppc_core_emulate_op_44x(struct kvm_run *run, struct kvm_vcpu *vcpu, | ||
104 | unsigned int inst, int *advance); | ||
105 | extern int kvmppc_core_emulate_mtspr_44x(struct kvm_vcpu *vcpu, int sprn, | ||
106 | ulong spr_val); | ||
107 | extern int kvmppc_core_emulate_mfspr_44x(struct kvm_vcpu *vcpu, int sprn, | ||
108 | ulong *spr_val); | ||
109 | extern void kvmppc_mmu_destroy_e500(struct kvm_vcpu *vcpu); | ||
110 | extern int kvmppc_core_emulate_op_e500(struct kvm_run *run, | ||
111 | struct kvm_vcpu *vcpu, | ||
112 | unsigned int inst, int *advance); | ||
113 | extern int kvmppc_core_emulate_mtspr_e500(struct kvm_vcpu *vcpu, int sprn, | ||
114 | ulong spr_val); | ||
115 | extern int kvmppc_core_emulate_mfspr_e500(struct kvm_vcpu *vcpu, int sprn, | ||
116 | ulong *spr_val); | ||
117 | extern void kvmppc_mmu_destroy_e500(struct kvm_vcpu *vcpu); | ||
118 | extern int kvmppc_core_emulate_op_e500(struct kvm_run *run, | ||
119 | struct kvm_vcpu *vcpu, | ||
120 | unsigned int inst, int *advance); | ||
121 | extern int kvmppc_core_emulate_mtspr_e500(struct kvm_vcpu *vcpu, int sprn, | ||
122 | ulong spr_val); | ||
123 | extern int kvmppc_core_emulate_mfspr_e500(struct kvm_vcpu *vcpu, int sprn, | ||
124 | ulong *spr_val); | ||
125 | |||
102 | /* | 126 | /* |
103 | * Load up guest vcpu FP state if it's needed. | 127 | * Load up guest vcpu FP state if it's needed. |
104 | * It also set the MSR_FP in thread so that host know | 128 | * It also set the MSR_FP in thread so that host know |
@@ -129,4 +153,9 @@ static inline void kvmppc_save_guest_fp(struct kvm_vcpu *vcpu) | |||
129 | giveup_fpu(current); | 153 | giveup_fpu(current); |
130 | #endif | 154 | #endif |
131 | } | 155 | } |
156 | |||
157 | static inline void kvmppc_clear_dbsr(void) | ||
158 | { | ||
159 | mtspr(SPRN_DBSR, mfspr(SPRN_DBSR)); | ||
160 | } | ||
132 | #endif /* __KVM_BOOKE_H__ */ | 161 | #endif /* __KVM_BOOKE_H__ */ |