diff options
author | Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> | 2008-07-14 14:00:04 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-10-15 10:15:15 +0200 |
commit | 3b4bd7969f7b61a1ab455bff084ee4f0a2411055 (patch) | |
tree | 019b375e8981e70e8b60dd43d0d9ae6927f76724 /arch/powerpc/kvm/emulate.c | |
parent | 31711f2294b38d8334efaf7dbac6da4781fd151e (diff) | |
download | blackbird-op-linux-3b4bd7969f7b61a1ab455bff084ee4f0a2411055.tar.gz blackbird-op-linux-3b4bd7969f7b61a1ab455bff084ee4f0a2411055.zip |
KVM: ppc: trace powerpc instruction emulation
This patch adds a trace point for the instruction emulation on embedded powerpc
utilizing the KVM_TRACE interface.
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/powerpc/kvm/emulate.c')
-rw-r--r-- | arch/powerpc/kvm/emulate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c index 4a3e274bac12..c3ed63b22210 100644 --- a/arch/powerpc/kvm/emulate.c +++ b/arch/powerpc/kvm/emulate.c @@ -769,6 +769,8 @@ int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu) break; } + KVMTRACE_3D(PPC_INSTR, vcpu, inst, vcpu->arch.pc, emulated, entryexit); + if (advance) vcpu->arch.pc += 4; /* Advance past emulated instruction. */ |