Skip to content

Commit

Permalink
Always dump TCB/vCPU registers when failing to handle a fault
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan-Velickovic <[email protected]>
  • Loading branch information
Ivan-Velickovic committed Dec 5, 2024
1 parent d9bf333 commit 29aceb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/arch/aarch64/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,10 @@ bool fault_handle(size_t vcpu_id, microkit_msginfo msginfo)
}

if (!success) {
/* Dump the TCB and vCPU registers to hopefully get information as
* to what has gone wrong. */
tcb_print_regs(vcpu_id);
vcpu_print_regs(vcpu_id);
LOG_VMM_ERR("Failed to handle %s fault\n", fault_to_string(label));
}

Expand Down

0 comments on commit 29aceb2

Please sign in to comment.