diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2019-10-02 16:00:23 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2019-10-22 16:29:02 +1100 |
commit | 268f4ef9954cec198cd6772caadf453bcaed3e5a (patch) | |
tree | 98e2e922d2f6d10f2cd0d53bf56aa96769cf90b3 /arch/powerpc/kvm/book3s.h | |
parent | 87a45e07a5abfec4d6b0e8356718f8919d0a3c20 (diff) | |
download | linux-268f4ef9954cec198cd6772caadf453bcaed3e5a.tar.bz2 |
KVM: PPC: Book3S HV: Reuse kvmppc_inject_interrupt for async guest delivery
This consolidates the HV interrupt delivery logic into one place.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/kvm/book3s.h')
-rw-r--r-- | arch/powerpc/kvm/book3s.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/book3s.h b/arch/powerpc/kvm/book3s.h index 2ef1311a2a13..3a4613985949 100644 --- a/arch/powerpc/kvm/book3s.h +++ b/arch/powerpc/kvm/book3s.h @@ -32,4 +32,7 @@ extern void kvmppc_emulate_tabort(struct kvm_vcpu *vcpu, int ra_val); static inline void kvmppc_emulate_tabort(struct kvm_vcpu *vcpu, int ra_val) {} #endif +extern void kvmppc_set_msr_hv(struct kvm_vcpu *vcpu, u64 msr); +extern void kvmppc_inject_interrupt_hv(struct kvm_vcpu *vcpu, int vec, u64 srr1_flags); + #endif |