KVM: selftests: Print out guest RIP on unhandled exception
authorSean Christopherson <seanjc@google.com>
Sat, 29 Jul 2023 00:36:42 +0000 (17:36 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 2 Aug 2023 21:43:17 +0000 (14:43 -0700)
commit6f321017c84b33a69f6ac131f6c91d1e8a5ff585
tree4394b529d071f59c94e3c9554cf590c9e7ceac48
parent7ce7f8e754186f71ba7daffbc99543961a613bba
KVM: selftests: Print out guest RIP on unhandled exception

Use the newfanged printf-based guest assert framework to spit out the
guest RIP when an unhandled exception is detected, which makes debugging
such failures *much* easier.

Link: https://lore.kernel.org/r/20230729003643.1053367-34-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/lib/x86_64/processor.c