Skip to contentSkip to conversation

KVM: PPC: Book3S HV: Reuse kvmppc_inject_interrupt for async guest delivery

PATCH New Nicholas Piggin 1 participant 1 message Oct 2, 2019

Subsystems (2)
lore
Share & tools
lore

Nicholas Piggin

author reviewer
#0 lore raw

PATCH v2 3/5 KVM: PPC: Book3S HV: Reuse kvmppc_inject_interrupt for async guest delivery

This consolidates the HV interrupt delivery logic into one place.

---
 arch/powerpc/kvm/book3s.h            |  3 ++
 arch/powerpc/kvm/book3s_hv.c         | 43 ------------------
 arch/powerpc/kvm/book3s_hv_builtin.c | 67 ++++++++++++++++++++++------
 3 files changed, 56 insertions(+), 57 deletions(-)
arch/powerpc/kvm/book3s.h +3 -0
index 2ef1311a2a13..3a4613985949 100644
@@ -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
arch/powerpc/kvm/book3s_hv.c +0 -43

61 lines not on this page · raw message

arch/powerpc/kvm/book3s_hv_builtin.c +53 -14

92 lines not on this page · raw message

Signature · 1 line
2.23.0