summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorAvi Kivity2010-03-11 12:01:59 +0100
committerAvi Kivity2010-05-17 11:15:27 +0200
commit5c1c85d08da5c257b21b0423b96fa6554aa4cb6f (patch)
tree4ee236dd52b4a534e84b45894507ee3656468609 /arch/x86/kvm/x86.c
parentKVM: Move kvm_exit tracepoint rip reading inside tracepoint (diff)
downloadkernel-qcow2-linux-5c1c85d08da5c257b21b0423b96fa6554aa4cb6f.tar.gz
kernel-qcow2-linux-5c1c85d08da5c257b21b0423b96fa6554aa4cb6f.tar.xz
kernel-qcow2-linux-5c1c85d08da5c257b21b0423b96fa6554aa4cb6f.zip
KVM: Trace exception injection
Often an exception can help point out where things start to go wrong. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 74e70d975ffa..a1cf87fe9f3a 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -4237,6 +4237,9 @@ static void inject_pending_event(struct kvm_vcpu *vcpu)
{
/* try to reinject previous events if any */
if (vcpu->arch.exception.pending) {
+ trace_kvm_inj_exception(vcpu->arch.exception.nr,
+ vcpu->arch.exception.has_error_code,
+ vcpu->arch.exception.error_code);
kvm_x86_ops->queue_exception(vcpu, vcpu->arch.exception.nr,
vcpu->arch.exception.has_error_code,
vcpu->arch.exception.error_code);