diff options
author | Avi Kivity <avi@redhat.com> | 2010-03-11 13:01:59 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 12:15:27 +0300 |
commit | 5c1c85d08da5c257b21b0423b96fa6554aa4cb6f (patch) | |
tree | 4ee236dd52b4a534e84b45894507ee3656468609 /arch/x86/kvm/x86.c | |
parent | 5bfd8b5455e69b37af16a2df1edae2c3b567648c (diff) | |
download | lwn-5c1c85d08da5c257b21b0423b96fa6554aa4cb6f.tar.gz lwn-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.c | 3 |
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); |