]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: Report unhandled exceptions on x86 as regular guest asserts
authorSean Christopherson <seanjc@google.com>
Fri, 19 Jul 2024 23:51:02 +0000 (16:51 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 29 Aug 2024 23:25:06 +0000 (16:25 -0700)
commited24ba6c2c3450c96dcd804f81893d11e52463cc
tree48c11350eab076cdabd5967aecd08a1c2e476edf
parentd1c2cdca5a08f422b791670c11f9d4e3ed0a5518
KVM: selftests: Report unhandled exceptions on x86 as regular guest asserts

Now that selftests support printf() in the guest, report unexpected
exceptions via the regular assertion framework.  Exceptions were special
cased purely to provide a better error message.  Convert only x86 for now,
as it's low-hanging fruit (already formats the assertion in the guest),
and converting x86 will allow adding asserts in x86 library code without
needing to update multiple tests.

Once all other architectures are converted, this will allow moving the
reporting to common code, which will in turn allow adding asserts in
common library code, and will also allow removing UCALL_UNHANDLED.

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