]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Trace re-injected exceptions
authorSean Christopherson <seanjc@google.com>
Sun, 1 May 2022 22:07:31 +0000 (00:07 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:46:55 +0000 (04:46 -0400)
commitfa45050e2888ae26a0443b13c796785967e8ab24
tree5ff495c8c434744dea1eff9e5262f4bd30e230a6
parent8d1cd5e00a27d2225d5454d5c00901ce020a57c5
KVM: x86: Trace re-injected exceptions

Trace exceptions that are re-injected, not just those that KVM is
injecting for the first time.  Debugging re-injection bugs is painful
enough as is, not having visibility into what KVM is doing only makes
things worse.

Delay propagating pending=>injected in the non-reinjection path so that
the tracing can properly identify reinjected exceptions.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Message-Id: <25470690a38b4d2b32b6204875dd35676c65c9f2.1651440202.git.maciej.szmigiero@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/trace.h
arch/x86/kvm/x86.c