KVM: PPC: BookE: Add some more trace points
Subsystems (2)
PATCH 18/56 KVM: PPC: BookE: Add some more trace points
Without trace points, debugging what exactly is going on inside guest code can be very tricky. Add a few more trace points at places that hopefully tell us more when things go wrong.
Signed-off-by Alexander Graf <[email protected]>
--- arch/powerpc/kvm/booke.c | 3 ++ arch/powerpc/kvm/e500_tlb.c | 3 ++ arch/powerpc/kvm/trace.h | 71 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 0 deletions(-)
arch/powerpc/kvm/booke.c +3 -0
@@ -143,6 +143,7 @@ void kvmppc_set_msr(struct kvm_vcpu *vcpu, u32 new_msr)static void kvmppc_booke_queue_irqprio (struct kvm_vcpu *vcpu,unsigned int priority) { +trace_kvm_booke_queue_irqprio (vcpu, priority);set_bit (priority, &vcpu->arch.pending_exceptions); }
@@ -457,6 +458,8 @@ int kvmppc_core_prepare_to_enter(struct kvm_vcpu *vcpu)static void kvmppc_check_requests (struct kvm_vcpu *vcpu) {if (vcpu->requests) { +trace_kvm_check_requests (vcpu); +if (kvm_check_request (KVM_REQ_PENDING_TIMER , vcpu))update_timer_ints (vcpu);#if defined(CONFIG_KVM_E500V2 ) || defined(CONFIG_KVM_E500MC )
arch/powerpc/kvm/e500_tlb.c +3 -0
@@ -312,6 +312,7 @@ static inline void kvmppc_e500_ref_setup(struct tlbe_ref *ref,static inline void kvmppc_e500_ref_release (struct tlbe_ref *ref) {if (ref->flags &E500_TLB_VALID ) { +trace_kvm_booke206_ref_release (ref->pfn, ref->flags); ref->flags =0 ; } }
@@ -1075,6 +1076,8 @@ void kvmppc_mmu_map(struct kvm_vcpu *vcpu, u64 eaddr, gpa_t gpaddr,int kvm_unmap_hva (struct kvm *kvm,unsigned long hva) { +trace_kvm_unmap_hva (hva); +/* * Flush all shadow tlb entries everywhere. This is slow, but * we are 100% sure that we catch the to be unmapped page
arch/powerpc/kvm/trace.h +71 -0
89 lines not on this page · raw message
Signature · 1 line
1.6.0.2