diff options
author | Avi Kivity <avi@redhat.com> | 2010-03-11 06:01:59 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:15:27 -0400 |
commit | 5c1c85d08da5c257b21b0423b96fa6554aa4cb6f (patch) | |
tree | 4ee236dd52b4a534e84b45894507ee3656468609 /arch/x86/kvm/x86.c | |
parent | 5bfd8b5455e69b37af16a2df1edae2c3b567648c (diff) |
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) | |||
4237 | { | 4237 | { |
4238 | /* try to reinject previous events if any */ | 4238 | /* try to reinject previous events if any */ |
4239 | if (vcpu->arch.exception.pending) { | 4239 | if (vcpu->arch.exception.pending) { |
4240 | trace_kvm_inj_exception(vcpu->arch.exception.nr, | ||
4241 | vcpu->arch.exception.has_error_code, | ||
4242 | vcpu->arch.exception.error_code); | ||
4240 | kvm_x86_ops->queue_exception(vcpu, vcpu->arch.exception.nr, | 4243 | kvm_x86_ops->queue_exception(vcpu, vcpu->arch.exception.nr, |
4241 | vcpu->arch.exception.has_error_code, | 4244 | vcpu->arch.exception.has_error_code, |
4242 | vcpu->arch.exception.error_code); | 4245 | vcpu->arch.exception.error_code); |