Skip to contentSkip to conversation

arm/hvf: panic the guest if an unhandled exception occurs in el1

PATCH New Leesoo Ahn 1 participant 1 message Jun 22

lore
Share & tools
lore

Leesoo Ahn

author
#0 lore raw

PATCH 1/1 arm/hvf: panic the guest if an unhandled exception occurs in el1

It's better to clean up any resources that the guest taking and quit if an exception in el1 could not be resolved.

Otherwise, the guest would get in the infinite-loop black-hole by unmodified pc.

---
 target/arm/hvf/hvf.c | 1 +
 1 file changed, 1 insertion(+)
target/arm/hvf/hvf.c +1 -0
index 8b902c6882..4358cf90e8 100644
@@ -2533,6 +2533,7 @@ static int hvf_handle_exception(CPUState *cpu, hv_vcpu_exit_exception_t *excp)
         cpu_synchronize_state(cpu);
         trace_hvf_exit(syndrome, ec, env->pc);
         error_report("0x%llx: unhandled exception ec=0x%x", env->pc, ec);
+        qemu_system_guest_panicked(cpu_get_crash_info(cpu));
     }
 
     /* flush any changed cpu state back to HVF */
Signature · 1 line
2.50.1 (Apple Git-155)