KVM: PPC: PR: Use generic tracepoint for guest exit
Subsystems (2)
PATCH 9/56 KVM: PPC: PR: Use generic tracepoint for guest exit
We want to have tracing information on guest exits for booke as well as book3s. Since most information is identical, use a common trace point.
Signed-off-by Alexander Graf <[email protected]>
--- arch/powerpc/kvm/book3s_pr.c | 2 +- arch/powerpc/kvm/booke.c | 3 ++ arch/powerpc/kvm/trace.h | 79 +++++++++++++++++++++++++++--------------- 3 files changed, 55 insertions(+), 29 deletions(-)
arch/powerpc/kvm/book3s_pr.c +1 -1
@@ -549,7 +549,7 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu,/* We get here with MSR.EE=0, so enable it to be a nice citizen */ __hard_irq_enable (); -trace_kvm_book3s_exit (exit_nr, vcpu); +trace_kvm_exit (exit_nr, vcpu);preempt_enable ();kvm_resched (vcpu);switch (exit_nr) {
arch/powerpc/kvm/booke.c +3 -0
@@ -39,6 +39,7 @@#include "timing.h" #include "booke.h" +#include "trace.h" unsigned long kvmppc_booke_handlers;
@@ -677,6 +678,8 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu,local_irq_enable (); +trace_kvm_exit (exit_nr, vcpu); + run->exit_reason =KVM_EXIT_UNKNOWN ; run->ready_for_interrupt_injection =1 ;
arch/powerpc/kvm/trace.h +51 -28
91 lines not on this page · raw message
Signature · 1 line
1.6.0.2