Be kind to debuggers and include the expected and actual exit codes if VMRUN doesn't yield the expected exit reason. Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx> --- x86/svm_tests.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/x86/svm_tests.c b/x86/svm_tests.c index 2c85a30..df4c60a 100644 --- a/x86/svm_tests.c +++ b/x86/svm_tests.c @@ -2186,6 +2186,7 @@ static void basic_guest_main(struct svm_test *test) exit_code, test_name) \ { \ u64 tmp, mask; \ + u32 r; \ int i; \ \ for (i = start; i <= end; i = i + inc) { \ @@ -2203,8 +2204,9 @@ static void basic_guest_main(struct svm_test *test) case 4: \ vmcb->save.cr4 = tmp; \ } \ - report(svm_vmrun() == exit_code, "Test CR%d " test_name "%d:%d: %lx",\ - cr, end, start, tmp); \ + r = svm_vmrun(); \ + report(r == exit_code, "Test CR%d %s%d:%d: %lx, wanted exit 0x%x, got 0x%x",\ + cr, test_name, end, start, tmp, exit_code, r); \ } \ } -- 2.32.0.288.g62a8d224e6-goog