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 <agraf@suse.de>
This commit is contained in:
Alexander Graf
2012-08-02 15:10:00 +02:00
parent 8e525d59d0
commit 97c9505984
3 changed files with 55 additions and 29 deletions

View File

@@ -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;