arm/hvf: panic the guest if an unhandled exception occurs in el1
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.
Signed-off-by Leesoo Ahn <[email protected]>
--- target/arm/hvf/hvf.c | 1 + 1 file changed, 1 insertion(+)
target/arm/hvf/hvf.c +1 -0
@@ -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)